/* Cultivate Speaking Request Form — Cultivate Brand Styling */

.csr-form-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 40px 60px;
    background: #F3EEE3;
}

.csr-form {
    font-family: var(--cv-font-body, 'Literata'), Georgia, serif;
}

.csr-section {
    border: none;
    padding: 0;
    margin-bottom: 48px;
}

.csr-section-title {
    font-family: var(--cv-font-headline, 'Bricolage Grotesque'), 'Liberation Sans', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #1A1A1A;
    text-transform: none;
    letter-spacing: -0.02em;
    padding-bottom: 12px;
    border-bottom: 2px solid #D6806A;
    margin-bottom: 28px;
}

.csr-field {
    margin-bottom: 22px;
}

.csr-field label {
    display: block;
    font-family: var(--cv-font-headline, 'Bricolage Grotesque'), 'Liberation Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1A1A1A;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.csr-req { color: #A64E3A; }

.csr-field input,
.csr-field select,
.csr-field textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--cv-font-body, 'Literata'), Georgia, serif;
    font-size: 15px;
    color: #1A1A1A !important;
    background: #F3EEE3;
    border: 1px solid #d4cfc7;
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.csr-field input:focus,
.csr-field select:focus,
.csr-field textarea:focus {
    border-color: #D6806A;
    box-shadow: 0 0 0 2px rgba(214, 128, 106,0.1);
}
/* Keyboard focus: visible ring (terracotta-ink clears AA on white/cream);
   mouse-click focus drops it. */
.csr-field input:focus-visible,
.csr-field select:focus-visible,
.csr-field textarea:focus-visible {
    outline: 2px solid #A64E3A;
    outline-offset: 2px;
}
.csr-field input:focus:not(:focus-visible),
.csr-field select:focus:not(:focus-visible),
.csr-field textarea:focus:not(:focus-visible) {
    outline: none;
}

.csr-field input::placeholder,
.csr-field textarea::placeholder {
    color: #56677A;
    font-style: normal;
}

.csr-field textarea {
    resize: vertical;
    min-height: 80px;
}

.csr-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238C8279' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

.csr-field select option {
    background: #F3EEE3;
    color: #1A1A1A;
}

.csr-field-hint {
    font-size: 13px;
    color: #56677A;
    margin-top: -4px;
    margin-bottom: 12px;
    font-style: normal;
}

/* Checkbox group for travel expenses */
.csr-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 8px;
}

.csr-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--cv-font-body, 'Literata'), Georgia, serif;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #1A1A1A !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.csr-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    padding: 0;
    border: 1px solid #d4cfc7;
    border-radius: 0;
    accent-color: #D6806A;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-appearance: checkbox;
    appearance: checkbox;
}

/* Radio group for worship team */
.csr-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 8px;
}

.csr-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--cv-font-body, 'Literata'), Georgia, serif;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #1A1A1A !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.csr-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    padding: 0;
    accent-color: #D6806A;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-appearance: radio;
    appearance: radio;
}

/* Row layouts */
.csr-row {
    display: flex;
    gap: 20px;
}
.csr-half { flex: 1; }
.csr-third { flex: 1; }

/* Conditional fields */
.csr-conditional { display: none; }
.csr-conditional.csr-visible { display: block; }
.csr-row .csr-conditional.csr-visible { display: block; flex: 1; }

/* Submit */
.csr-submit-wrap {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #d4cfc7;
}

.csr-submit-btn {
    display: inline-block;
    padding: 18px 56px;
    font-family: var(--cv-font-headline, 'Bricolage Grotesque'), 'Liberation Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--cv-text-on-accent, #1A1A1A) !important;
    background: #D6806A !important;
    border: none !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s;
}
.csr-submit-btn:hover { background: #E39A86 !important; }
.csr-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.csr-form-message {
    margin-top: 16px;
    font-size: 15px;
    font-family: var(--cv-font-body, 'Literata'), Georgia, serif;
}
.csr-form-message.csr-error { color: #A64E3A; }
.csr-form-message.csr-success { color: #1A1A1A; }

/* Dollar prefix input */
.csr-input-prefix-wrap {
    display: flex;
    align-items: stretch;
}
.csr-input-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-family: var(--cv-font-body, 'Literata'), Georgia, serif;
    font-size: 15px;
    font-weight: 500;
    color: #56677A;
    background: #f0ece3;
    border: 1px solid #d4cfc7;
    border-right: none;
}
.csr-input-prefix-wrap input {
    flex: 1;
    border-radius: 0;
}
/* Hide number spinners */
.csr-input-prefix-wrap input[type="number"]::-webkit-inner-spin-button,
.csr-input-prefix-wrap input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.csr-input-prefix-wrap input[type="number"] {
    -moz-appearance: textfield;
}

/* Inline hint text (e.g. "(minus honorarium)") */
.csr-hint-inline {
    font-size: 12px;
    font-weight: 400;
    color: #56677A;
    text-transform: none;
    letter-spacing: 0;
}

/* Travel agreement block */
.csr-travel-agreement {
    margin-top: 8px;
}
.csr-agreement-text {
    font-family: var(--cv-font-body, 'Literata'), Georgia, serif;
    font-size: 13px;
    line-height: 1.7;
    color: #56677A;
    padding: 16px 20px;
    background: rgba(0,0,0,0.03);
    border-left: 3px solid #D6806A;
}

/* Field error state */
.csr-field-error input,
.csr-field-error select,
.csr-field-error textarea {
    border-color: #D6806A !important;
    box-shadow: 0 0 0 2px rgba(214, 128, 106,0.15) !important;
}
.csr-field-error-msg {
    font-size: 12px;
    color: #A64E3A;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 600px) {
    .csr-form-wrap {
        padding: 24px 20px 40px;
    }
    .csr-row { flex-direction: column; gap: 0; }
    .csr-submit-btn { width: 100%; }
    .csr-checkbox-group { flex-direction: column; gap: 10px; }
}

/* ===== Multi-step wizard (progressive enhancement; JS adds .csr-wizard) ===== */

/* Hidden until the script enables wizard mode */
.csr-progress,
.csr-wizard-nav { display: none; }

.csr-wizard .csr-progress {
    display: block;
    margin-bottom: 36px;
}

.csr-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.csr-progress-step {
    font-family: var(--cv-font-headline, 'Bricolage Grotesque'), 'Liberation Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #56677A;
}

.csr-progress-track {
    display: flex;
    gap: 6px;
}

.csr-progress-seg {
    flex: 1;
    height: 4px;
    background: #d4cfc7;
}

.csr-progress-seg.csr-done,
.csr-progress-seg.csr-current { background: #D6806A; }

/* One panel at a time */
.csr-wizard .csr-step { display: none; }
.csr-wizard .csr-step.csr-step-active { display: block; }
.csr-wizard .csr-step:focus { outline: none; }
.csr-wizard .csr-section { margin-bottom: 36px; }

/* Nav row */
.csr-wizard .csr-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid #d4cfc7;
}

/* ID-scoped: must outrank the cultivate-brand button override
   (body:not(.cultivate-portal) ... !important), which otherwise paints
   every button terracotta */
#cultivate-speaking-form-wrap .csr-back-btn {
    padding: 16px 36px;
    font-family: var(--cv-font-headline, 'Bricolage Grotesque'), 'Liberation Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1A1A1A !important;
    background: transparent !important;
    border: 1px solid #1A1A1A !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
#cultivate-speaking-form-wrap .csr-back-btn:hover {
    background: #1A1A1A !important;
    color: #F3EEE3 !important;
}
.csr-back-btn.csr-nav-hidden { visibility: hidden; }

#cultivate-speaking-form-wrap .csr-next-btn {
    padding: 16px 48px;
    font-family: var(--cv-font-headline, 'Bricolage Grotesque'), 'Liberation Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--cv-text-on-accent, #1A1A1A) !important;
    background: #D6806A !important;
    border: none !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s;
}
#cultivate-speaking-form-wrap .csr-next-btn:hover { background: #E39A86 !important; }

.csr-back-btn:focus-visible,
.csr-next-btn:focus-visible,
.csr-submit-btn:focus-visible {
    outline: 2px solid #A64E3A;
    outline-offset: 2px;
}

/* In wizard mode the submit button moves into the nav row; the old wrap
   only carries the status message */
.csr-wizard .csr-wizard-nav .csr-submit-btn { padding: 16px 48px; }
.csr-wizard .csr-submit-wrap {
    border-top: none;
    padding-top: 0;
}
.csr-wizard .csr-form-message { margin-top: 20px; }

@media (max-width: 600px) {
    .csr-wizard .csr-wizard-nav { gap: 12px; }
    /* ID-scoped so these beat the id-scoped desktop padding above */
    #cultivate-speaking-form-wrap .csr-back-btn,
    #cultivate-speaking-form-wrap .csr-next-btn { flex: 1; padding: 16px 12px; }
    #cultivate-speaking-form-wrap .csr-wizard-nav .csr-submit-btn {
        flex: 1;
        width: auto;
        padding: 16px 12px;
    }
}

/* v3.1 - text on a coral fill is charcoal (5.9:1). Cream on coral is 2.5:1 and is never used. */
.csr-submit-btn,
.csr-submit-btn:hover,
.csr-progress-seg.csr-done,
.csr-progress-seg.csr-current,
#cultivate-speaking-form-wrap .csr-next-btn,
#cultivate-speaking-form-wrap .csr-next-btn:hover {
    color: var(--cv-text-on-accent, #1A1A1A) !important;
}
