:root {
    --teal: #2A9D8F;
    --navy: #264653;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

header {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 12px 0 0;
    max-height: 80px;
    height: 100%;
}

header .logo img {
    max-width: 200px;
}

.form-container {
    max-width: 600px;
    width: 100%;
    margin: 0 24px;
}

.form-container h2 {
    text-align: center;
    font-size: 44px;
}

form {
    padding: 24px 52px 52px;
    border: 4px solid var(--teal);
    border-radius: 70px;
    color: var(--navy);
}

form .disclaimer {
    font-size: 20px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 24px;
}

form .disclaimer span { font-size: 16px }

form label {
    font-size: 24px;
    font-weight: bold;
    margin-left: 8px;
}

form button {
    margin-top: 24px;
}

form .form-content>div {
    margin-bottom: 32px;
}

form .success-content {
    display: none;
}

form input,
form .dropdown-outer {
    height: 52px;
    border-radius: 70px;
    border: 2px solid var(--navy);
    padding: 0 12px;
}

form button {
    height: 70px;
    background-color: var(--teal);
    border-radius: 70px;
    color: #fff;
    font-size: 44px;
    font-weight: 500;
    border: none;
}

form textarea {
    border: 2px solid var(--navy);
    border-radius: 40px;
    height: 164px;
    padding: 12px;
}

/* dropdown */
form .dropdown-outer {
    cursor: pointer;
}
form .dropdown-outer .selected .option {
    font-weight: 500;
    font-size: 18px;
}

form .dropdown-outer .options,
form .dropdown-outer hr {
    display: none;
}

form .dropdown-outer .arrow {
    width: 0;
    height: 0;
    margin-right: 4px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid var(--teal);
}

/* dropdown - open */
form .dropdown-outer.open {
    height: unset;
    border-radius: 30px;
}

form .dropdown-outer.open .options {
    display: block;
    background-color: #fff;
    height: 100%;
    border-radius: 30px;
    padding: 4px;
}

form .dropdown-outer.open .option {
    height: 32px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

form .dropdown-outer.open .option:hover { font-weight: 600; }

form .dropdown-outer.open hr {
    display: block;
    height: 1px; 
    background-color: #d9d9d9;
    margin: 4px 12px;
}

form .dropdown-outer.open .selected .option{
    height: 48px;
    font-weight: 700;
}

form .dropdown-outer.open .selected .arrow {
    transform: rotate(180deg);
}

/* smaller form text */
form span {
    font-size: 24px;
    font-weight: 500;
}

/* radio btns */
form .radio-btn-container {
    padding: 0 24px;
}

form .radio-btn-container label {
    display: flex;
    flex-direction: column;
}

form .radio-btn-container .radio-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--navy);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
}

form .radio-btn-container .radio-btn.active::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50px;
    border: 8px solid var(--teal)
}

/* form error text */

form .error {
    color: #c60303;
    text-align: center;
    margin-top: 12px;
    font-size: 18px;
}

/* successful email sent */
form.success {
    padding: 24px;
}

form.success .form-content {
    display: none !important;
}

form.success .success-content {
    display: block;
    text-align: center;
    color: var(--navy);
    font-size: 32px;
    font-weight: 600
}

@media screen and (max-width: 767px) {
    .form-container h2 {
        font-size: 36px;
    }

    form {
        padding: 24px;
    }
    

}

@media screen and (max-width: 530px) {
    /* small font */
    form span {
        display: block;
        font-size: 20px;
    }

    /* successful email sent */
    form.success .success-content {
        font-size: 24px;
    }
}

@media screen and (max-width: 375px) {
    form {
        padding: 16px;
    }
}
