/**
 * Simple Forms — front-end styles.
 * Accent color is per-form via the --sf-accent CSS variable (set on the wrapper).
 */

.simple-form-wrapper {
    --sf-accent: #ef5241;
    max-width: 860px;
    margin: 0 auto;
    color: #1a1a1a;
    font-family: inherit;
}

/* --- Header ------------------------------------------------------------ */
.simple-form-header {
    text-align: center;
    margin-bottom: 2rem;
}
.simple-form-header h3 {
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
    color: #111;
}
.simple-form-header .simple-form-subhead {
    color: var(--sf-accent);
    font-size: 1.05rem;
    margin: 0;
    font-weight: 700;
}
.simple-form-header .simple-form-subhead strong { font-weight: 700; }

/* --- Thank-you banner -------------------------------------------------- */
.simple-form-thanks {
    background: #fff4f1;
    border: 1px solid #f7c7bd;
    color: #8a2a1a;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}
.simple-form-thanks strong { display: block; font-size: 1.05rem; }

/* --- Layout ------------------------------------------------------------ */
.simple-form { display: block; }

.simple-form-field {
    margin-bottom: 1.35rem;
}

.simple-form-row {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 0;
}
.simple-form-row-2 {
    grid-template-columns: 1fr 1fr;
}
.simple-form-row .simple-form-field { margin-bottom: 1.35rem; }

@media (max-width: 600px) {
    .simple-form-row-2 { grid-template-columns: 1fr; gap: 0; }
}

/* --- Labels ------------------------------------------------------------ */
.simple-form label {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: .5rem;
    color: #111;
}
.simple-form-req {
    color: var(--sf-accent);
    font-weight: 700;
    margin-left: 2px;
}

/* --- Inputs / selects / textarea -------------------------------------- */
.simple-form input[type="text"],
.simple-form input[type="email"],
.simple-form input[type="tel"],
.simple-form textarea,
.simple-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    line-height: 1.3;
    color: #333;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: inherit;
}
.simple-form textarea { resize: vertical; min-height: 120px; }
.simple-form input::placeholder,
.simple-form textarea::placeholder { color: #b8b8b8; }

.simple-form input:focus,
.simple-form textarea:focus,
.simple-form select:focus {
    outline: none;
    border-color: var(--sf-accent);
    box-shadow: 0 0 0 3px rgba(239, 82, 65, 0.15);
}

/* Native select caret */
.simple-form select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23999' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 8px;
    padding-right: 2.5rem;
}
.simple-form select:invalid { color: #8a8a8a; } /* keeps "- Select -" looking like a placeholder */
.simple-form select option { color: #333; }

/* --- Submit button ----------------------------------------------------- */
.simple-form-submit-wrap {
    margin-top: 1.75rem;
}
.simple-form-submit {
    display: inline-block;
    background: var(--sf-accent);
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.95rem 2rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: filter .15s ease, transform .05s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
}
.simple-form-submit:hover { filter: brightness(0.92); }
.simple-form-submit:active { transform: translateY(1px); }
.simple-form-submit:focus-visible {
    outline: 3px solid rgba(239, 82, 65, 0.35);
    outline-offset: 2px;
}

/* --- Honeypot (hidden without JS) ------------------------------------- */
.simple-form-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
