/* ==================================
   THE SUN CHURCH — TESTIMONY PAGE
   ================================== */

.form-page {
    padding: 38px 20px 55px;
}

.form-container {
    max-width: 720px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(32, 55, 101, 0.06);
}

/* Page heading */

.form-heading {
    margin-bottom: 28px;
    padding-bottom: 23px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.form-heading .eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;

    color: var(--wine);
    background: #fbeaf0;
    border-radius: 20px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.form-heading h1 {
    margin-bottom: 12px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.3;
}

.form-heading > p:last-child {
    max-width: 530px;
    margin-inline: auto;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

/* Form layout */

#testimony-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#testimony-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

#testimony-form .form-group label {
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
}

/* Fields */

#testimony-form input,
#testimony-form select,
#testimony-form textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 13px;

    color: var(--text);
    background: #fffefa;

    border: 1px solid #d9d4ce;
    border-radius: 8px;
    outline: none;

    font-size: 14px;
    line-height: 1.5;
}

#testimony-form input,
#testimony-form select {
    min-height: 46px;
}

#testimony-form textarea {
    min-height: 170px;
    resize: vertical;
}

#testimony-form input::placeholder,
#testimony-form textarea::placeholder {
    color: #92929a;
}

#testimony-form input:focus,
#testimony-form select:focus,
#testimony-form textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(32, 55, 101, 0.1);
}

#testimony-form .field-hint {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

/* Other category field */

#other-category-group[hidden] {
    display: none;
}

/* Submit button */

#testimony-submit {
    margin-top: 2px;
    background: var(--wine);
    border-color: var(--wine);
}

#testimony-submit:hover:not(:disabled) {
    background: #741c36;
    border-color: #741c36;
}

/* Submission messages */

#testimony-message {
    font-size: 13px;
    line-height: 1.7;
}

/* Supporting note */

#testimony-form .form-note {
    margin-top: -5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

/* Mobile */

@media (max-width: 560px) {
    .form-page {
        padding: 24px 12px 35px;
    }

    .form-container {
        padding: 23px 17px;
    }

    .form-heading {
        margin-bottom: 23px;
        padding-bottom: 19px;
    }

    .form-heading h1 {
        font-size: 29px;
    }

    #testimony-form {
        gap: 18px;
    }

    #testimony-form input,
    #testimony-form select,
    #testimony-form textarea {
        font-size: 16px;
    }
}