/*
 * Forms style: review form and camp registration form.
 */

.formSection {
    padding: 125px var(--gutter) 100px;
}

.formSection h1 {
    margin-bottom: 50px;
    font-size: clamp(34px, 3.6vw, 50px);
    text-align: center;
}

.formSection input[type="text"],
.formSection input[type="email"],
.formSection input[type="tel"],
.formSection input[type="date"],
.formSection select,
.formSection textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cfcfcf;
    border-radius: 0;
    background: var(--white);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    font-weight: 400;
}

.formSection textarea {
    height: 14em;
    resize: vertical;
}

.formSection input:focus,
.formSection select:focus,
.formSection textarea:focus {
    outline: 2px solid var(--yellow);
    outline-offset: -1px;
    border-color: var(--yellow);
}

.formSection ::placeholder {
    color: #777;
    text-transform: uppercase;
}

.formSection .check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.35;
    cursor: pointer;
}

.formSection .check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--yellow);
}

.formSection .check a {
    text-decoration: underline;
}

.formSection .check a:hover {
    color: var(--yellow);
}

.formSection .trap {
    position: absolute;
    left: -9999px;
}

.formSection .cf-turnstile {
    margin-top: 20px;
}

.formSection button.button {
    margin-top: 24px;
    font-size: 18px;
}

.notice {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 16px 20px;
    border-left: 5px solid;
    list-style: none;
    font-weight: 400;
}

.notice.success {
    border-color: var(--yellow);
    background: #fbf5e6;
}

.notice.error {
    border-color: #c0392b;
    background: #fbeceb;
    color: #8e1f14;
}

.notice.error li + li {
    margin-top: 4px;
}

/* Review form */
#feedback {
    background: var(--yellow);
}

#feedback h1, #feedback .side, #feedback legend {
    color: var(--white);
}

#feedback input[type="text"], #feedback input[type="email"], #feedback textarea {
    border-color: var(--white);
}

#feedback ::placeholder {
    color: var(--yellow);
    font-weight: 700;
}

#feedback input:focus, #feedback textarea:focus {
    outline-color: var(--black);
    border-color: var(--black);
}

#feedback .check a:hover {
    color: var(--black);
}

#feedback .check input {
    accent-color: var(--black);
}

#feedback .rating label {
    color: var(--white);
}

#feedback .rating label:hover,
#feedback .rating label:hover ~ label,
#feedback .rating input:checked ~ label {
    color: var(--black);
}

#feedback button.button {
    float: right;
    border-color: var(--black);
    background: var(--black);
}

#feedback button.button:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}

.feedbackForm {
    display: grid;
    grid-template-columns: 62fr 32fr;
    gap: 6%;
    max-width: 1100px;
    margin: 0 auto;
}

.feedbackForm .fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feedbackForm .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.feedbackForm label {
    display: block;
}

.ratingBox {
    margin: 10px 0 0;
    padding: 0;
    border: 0;
    text-align: center;
}

.ratingBox legend {
    width: 100%;
    margin-bottom: 10px;
    font-weight: 400;
    text-align: center;
}

.rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 6px;
}

.rating input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating label {
    color: #d6d6d6;
    font-size: 2.2em;
    line-height: 1;
    cursor: pointer;
    transition: color .15s;
}

.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
    color: var(--yellow);
}

.rating input:focus-visible + label {
    outline: 2px solid var(--black);
    outline-offset: 2px;
}

.feedbackForm .side .text p + p {
    margin-top: .6em;
}

@media screen and (max-width: 900px) {

    .formSection {
        padding: 70px 24px;
    }

    .feedbackForm {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media screen and (max-width: 560px) {

    .feedbackForm .row {
        grid-template-columns: 1fr;
    }
}

/* Camp registration form */
#sign-up .formIntro {
    max-width: 900px;
    margin: -20px auto 40px;
    text-align: center;
}

#sign-up .formIntro a {
    color: var(--yellow);
    font-weight: 700;
    text-decoration: underline;
}

#sign-up .formIntro a:hover {
    color: var(--black);
}

.signUpForm {
    max-width: 1000px;
    margin: 0 auto;
}

.signUpForm fieldset {
    margin: 0 0 52px;
    padding: 0;
    border: 0;
}

.signUpForm legend {
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--yellow);
    color: var(--yellow);
    font-size: clamp(20px, 1.8vw, 24px);
    font-weight: 700;
    text-transform: uppercase;
}

.signUpForm .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
}

/* Addresses, emails and long fields take the full row */
.signUpForm .field.wide {
    grid-column: 1 / -1;
}

.signUpForm .field {
    display: block;
}

.signUpForm .field > span {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.signUpForm .field.choice,
.signUpForm .field.transfer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 26px;
}

.signUpForm .legal .field.choice {
    padding: 4px 0 8px;
}

.signUpForm .field.choice > span {
    width: 100%;
    margin: 0;
}

.signUpForm .field.transfer {
    flex-direction: column;
    align-items: flex-start;
    margin: 20px 0;
    padding: 18px 20px;
    background: var(--grey-bg);
}

.signUpForm .choice label,
.signUpForm .transfer label {
    display: flex;
    gap: 8px;
    align-items: baseline;
    cursor: pointer;
}

.signUpForm input[type="radio"] {
    accent-color: var(--yellow);
}

.signUpForm .transfer input.inline {
    display: inline-block;
    width: 220px;
    margin: 4px 6px;
    padding: 6px 10px;
}

.signUpForm .legal .legalText {
    max-width: none;
    margin: 20px 0;
    padding: 20px 24px;
    background: var(--grey-bg);
    font-size: 15px;
    line-height: 1.5;
}

.signUpForm .legal .legalText h2,
.signUpForm .legal .legalText h3,
.signUpForm .legal .legalText h4 {
    margin: 1em 0 .4em;
    font-size: 1em;
}

.signUpForm .deposit {
    padding: 14px 18px;
    background: #fbf5e6;
    font-weight: 700;
}

.signUpForm .hint {
    margin-bottom: 14px;
    font-size: 15px;
}

.signUpForm .files {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.signUpForm .file input {
    width: 100%;
    padding: 14px;
    border: 1px dashed #bdbdbd;
    background: var(--grey-bg);
    font-family: var(--font);
    font-size: 15px;
}

.signUpForm .submit {
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.signUpForm .submit .cf-turnstile {
    display: flex;
    justify-content: center;
}

.signUpForm .note {
    margin-top: 16px;
    font-size: 15px;
}

@media screen and (max-width: 700px) {

    .signUpForm .grid,
    .signUpForm .files {
        grid-template-columns: 1fr;
    }
}
