/* =====================================================
   Series Circuits Contact Form – sc-contact-form.css
   Styled to match Astra "Birch" colour palette
   =====================================================
   Birch palette:
     #737880  – mid grey (borders, muted text)
     #65696F  – darker mid grey
     #151616  – near-black (headings)
     #393C40  – dark charcoal (body text)
     #FFFFFF  – white (input backgrounds)
     #F6F6F6  – light grey (page/form background tint)
     #232529  – very dark charcoal (button bg)
     #F1F0F0  – soft off-white (hover/focus tint)
     #222222  – true dark (strong text)
   ===================================================== */

/* ── Container ───────────────────────────────────── */
.sc-cf-wrap {
    max-width: 680px;
    margin: 0 auto;
    font-family: inherit;
    color: #393C40;
}

/* ── Form layout ─────────────────────────────────── */
.sc-cf-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sc-cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

@media (max-width: 560px) {
    .sc-cf-row {
        grid-template-columns: 1fr;
    }
}

/* ── Labels & inputs ─────────────────────────────── */
.sc-cf-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: relative;
}

.sc-cf-field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #151616;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sc-cf-req {
    color: #65696F;
    margin-left: 2px;
}

.sc-cf-field input[type="text"],
.sc-cf-field input[type="email"],
.sc-cf-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #737880;
    border-radius: 3px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #222222;
    background: #FFFFFF;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
}

.sc-cf-field input[type="text"]::placeholder,
.sc-cf-field input[type="email"]::placeholder,
.sc-cf-field textarea::placeholder {
    color: #737880;
    font-weight: 400;
}

.sc-cf-field input[type="text"]:focus,
.sc-cf-field input[type="email"]:focus,
.sc-cf-field textarea:focus {
    border-color: #232529;
    background: #F6F6F6;
    box-shadow: 0 0 0 3px rgba(35, 37, 41, 0.1);
}

.sc-cf-field textarea {
    resize: vertical;
    min-height: 148px;
    line-height: 1.65;
}

/* ── Character count ─────────────────────────────── */
.sc-cf-char-count {
    font-size: 0.75rem;
    color: #737880;
    text-align: right;
    margin-top: 2px;
}

/* ── Submit row ──────────────────────────────────── */
.sc-cf-submit-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}

.sc-cf-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 30px;
    background: #232529;
    color: #FFFFFF;
    border: none;
    border-radius: 3px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.sc-cf-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.85;
}

.sc-cf-btn:hover {
    background: #151616;
    box-shadow: 0 4px 14px rgba(21, 22, 22, 0.25);
    transform: translateY(-1px);
}

.sc-cf-btn:active {
    transform: translateY(0);
    box-shadow: none;
    background: #151616;
}

.sc-cf-privacy {
    font-size: 0.8rem;
    color: #737880;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

/* ── Success message ─────────────────────────────── */
.sc-cf-success {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 20px;
    background: #F6F6F6;
    border: 1.5px solid #737880;
    border-radius: 3px;
    color: #232529;
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-bottom: 8px;
}

.sc-cf-success-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1.35;
    color: #393C40;
}

/* ── Error messages ──────────────────────────────── */
.sc-cf-errors {
    padding: 14px 18px;
    background: #F1F0F0;
    border: 1.5px solid #65696F;
    border-radius: 3px;
    color: #151616;
    font-size: 0.875rem;
    line-height: 1.55;
}

.sc-cf-errors strong {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.sc-cf-errors ul {
    margin: 0;
    padding-left: 18px;
}

.sc-cf-errors li + li {
    margin-top: 4px;
}

/* ── Honeypot (must stay visually hidden) ────────── */
.sc-cf-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    tab-size: 0 !important;
}
