html {
    font-size: 20px;
}

@media (min-width: 768px) {
    html {
        font-size: 18px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

@font-face {
    font-family: 'Roobert';
    src: url('../fonts/Roobert-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roobert';
    src: url('../fonts/Roobert-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}


body {
    margin: 0;
    padding: 0;
    margin-bottom: 60px;
    color: white;
    font-family: proxima-nova, sans-serif;
    background-color: #111111;
    background-image: url(../images/Raptors_Texture.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ed002e;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    width: 100%;
    height: 60px; 
    margin: 0;
    padding: 0; 
}

.header-logo {
    max-height: 50px; 
    width: auto;
    filter: brightness(0) invert(1); /* Converts red logo to white, TO DO: Get new logo from Jay */
    /* TODO: Ensure iPhone dynamic island does not cut off the GoodLife Logo */
}


@media (max-width: 768px) { 
    .header-logo {
        max-height: 40px; 
    }
}

@media (max-width: 480px) { 
    .header-logo {
        max-height: 30px; 
    }
}

.sub-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1b1c1f;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    width: 100%;
    height: 80px;
    margin: 0;
    padding: 0;
    color: white;
    font-family: 'Roobert', sans-serif;
    font-size: 26px;
    font-weight: 600;
}

.card {
    /* Maximum three columns of form fields */
    box-sizing: border-box;
    width: calc(240px * 3 + 16px * 2 + 20px * 2);
    /* Prevent card from touching screen edge */
    max-width: calc(100% - 20px);
    /* Center-align card */
    margin: 10px auto;

    border: 2px solid #ed002e;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-custom-wrapper-1 {
    position: relative;
    margin: 60px 10px 0;

}

.card-custom-1 {
    position: relative;
    margin: 40px auto 10px;
    max-width: calc(240px * 3 + 16px * 2);
    padding: 30px 20px;
    border: 5px solid #ed002e;
    border-radius: 40px;
    background-color: transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #ed002e;
}

.card-custom-title-1 {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 20px;
    font-size: 30px;
    font-weight: 600;
    z-index: 2;
    line-height: 1.2;
    background-color: #ed002e;
    border-radius: 12px;
    white-space: nowrap;
    font-family: 'Roobert', sans-serif;
}
.dgr-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media screen and (min-width: 768px) {
    .dgr-form {
        margin: auto;
        margin-top: 10px;
    }
}

.dgr-form__fields {
    font-family: 'Roobert', sans-serif;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
}

.dgr-field {
    display: flex;
    flex-direction: column;
    min-width: 240px;
    flex-basis: 240px;
    flex-grow: 1;
}

.dgr-field__input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: proxima-nova, sans-serif;
    font-size: 18px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: black;
}

.dgr-field__input.relationship {
    background: url("../images/drop_down_arrow.svg") no-repeat right 12px center;
    background-size: 12px;
    padding-right: 40px; 
    background-color: white;
}

.dgr-field__label {
    /* We use padding here so clicking on the gap still focuses the <input> */
    padding-bottom: 4px;
    font-size: 18px;
    font-family: 'Roobert', sans-serif;
    font-weight: 400;
}

.dgr-field__label:has(+ .dgr-field__input[data-val-required])::after {
    content: " *";
    color: red;
    font-weight: bold;
}

.dgr-field__validation-error {
    color: red;
    font-family: proxima-nova, sans-serif;
}

.dgr-field__validation-error:not(:empty) {
    margin-top: 8px;
}

.dgr-terms {
    display: grid;
    grid-template-columns: min-content auto;
    grid-template-areas:
        "checkbox text"
        ".        validation-error";
    gap: 0 16px;
    justify-content: start;
    align-items: start;
}

.dgr-terms__input {
    grid-area: checkbox;
}

.dgr-terms__text {
    grid-area: text;
    margin: 0;
}

.dgr-terms__text::after {
    content: " *";
    color: red;
    font-weight: bold;
}

.dgr-terms__validation-error {
    grid-area: validation-error;
    color: red;
    margin-top: 8px;
}

.dgr-terms__validation-error:empty {
    display: none;
}

.dgr-suggestion-bar {
    box-sizing: border-box;

    display: none;
    flex-direction: row;
    justify-content: start;
    align-items: center;

    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;

    height: 50px;
    background-color: #333;
    padding: 5px;
    border-top: 2px solid #555;

    overflow-x: auto;
}

.dgr-suggestion-bar--visible {
    display: flex;
}

.dgr-suggestion-bar__button {
    background-color: #444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;

    margin: 0 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dgr-suggestion-bar__button:hover {
    background-color: #555; /* Slightly darker gray on hover */
}

.dgr-suggestion-bar__button:active {
    background-color: #222; /* Even darker gray when active */
}

.dgr-form__section {
    margin-top: 20px;
}

.dgr-form__section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: 'Roobert', sans-serif;
}

.custom-red-button {
    font-family: 'Roobert', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: #fff;
    background-color: #ed002e;
    border: none;
    border-radius: 4px;
    padding: 10px;
    text-decoration: none;
    display: block;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
}

.not-interested-button {
    display: block;
    text-align: center;
    margin: auto;
    color: white;
    font-family: 'Roobert', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0 5px;
    cursor: pointer;
}

.thanks-message {
    text-align: center;
    font-family: 'Roobert', sans-serif;
    font-weight: 600;
}

.thanks-message-paragraph {
    text-align: center;
}

.image-container {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    /* Prevent gap at the bottom */
    font-size: 0;
}

.image {
    max-width: 100%;
    height: auto;
}