/* ============================================================
   Block: cta-form  (light surface, no glass)
   Simple white-background lead-capture form. Black-bordered
   fields. Pink eyebrow + accent + submit button stay (those
   are the section's brand cues); everything else uses the
   theme's neutral foreground.
   ============================================================ */

.cta-form-section {
    padding: 75px 0;
    background-color: var(--wp--preset--color--background, #fff);
    color: var(--wp--preset--color--foreground);
    overflow: hidden;
}

.cta-form-section .ctaf-inner {
    position: relative;
    text-align: center;
}

/* ---- Eyebrow ---- */

.ctaf-eyebrow {
    /* Block-level flex container so it spans full width; children
       (the dot + the label) hug the left edge via justify-content,
       overriding the parent's text-align:center centering. */
    /* display: flex;
    justify-content: flex-start;
    align-items: center; */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--wp--preset--color--secondary) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    /* text-align: left;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto; */
}

.ctaf-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--wp--preset--color--secondary);
    flex-shrink: 0;
    display: none;
}

/* ---- Heading + sub ---- */

.ctaf-heading {
    margin: 0 auto 18px;
    color: var(--wp--preset--color--foreground);
    font-size: clamp(28px, 4.2vw, 44px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
    max-width: 880px;
}

.ctaf-heading-accent { color: var(--wp--preset--color--secondary); }

.ctaf-sub {
    margin: 0 auto 36px;
    max-width: 740px;
    color: var(--wp--preset--color--foreground);
    font-size: 18px;
    line-height: 1.5;
    opacity: 0.85;
}

/* ---- Form container ----
   Pure transparent. No background, no border, no shadow, no
   blur. The page surface shows through. */
.ctaf-form {
    max-width: 760px;
    margin: 0 auto;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-align: left;
}

/* ---- Field rows ---- */

.ctaf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.ctaf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--wp--preset--color--foreground);
}

/* Above-field label (matches dev-handoff .leadform label > span:
   13px / 600 / 0.01em — but in foreground/copy colour since our
   CTA form sits on a white surface rather than the dark glass
   card in the handoff). */
.ctaf-field > span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: var(--wp--preset--color--foreground);
}

/* Faded "(optional)" tag inside the label. */
.ctaf-field > span em {
    font-style: normal;
    font-weight: 500;
    color: rgba(53, 52, 52, 0.55);
    margin-left: 4px;
}

/* ---- Field controls — BLACK borders ---- */

.ctaf-field input,
.ctaf-field select,
.ctaf-field textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--wp--preset--color--background, #fff);
    border: 1px solid #000;
    border-radius: 8px;
    color: var(--wp--preset--color--foreground);
    font-size: 15px;
    font-family: inherit;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.ctaf-field input::placeholder,
.ctaf-field textarea::placeholder {
    color: rgba(53, 52, 52, 0.55);
    opacity: 1;
}

.ctaf-field input:focus,
.ctaf-field select:focus,
.ctaf-field textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--secondary);
    box-shadow: 0 0 0 3px rgba(208, 45, 176, 0.18);
}

.ctaf-field textarea {
    resize: vertical;
    min-height: 130px;
}

.ctaf-field--full {
    margin-bottom: 22px;
}

/* ---- Validation error state (jQuery Validate hooks) ---- */

.ctaf-field input.ctaf-invalid,
.ctaf-field select.ctaf-invalid,
.ctaf-field textarea.ctaf-invalid {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

.ctaf-field .ctaf-error {
    display: block;
    margin-top: 6px;
    color: #d32f2f;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

/* ---- Submit row ---- */

.ctaf-submit-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.ctaf-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    background-color: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--background);
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ctaf-submit:hover {
    background-color: var(--wp--preset--color--dark-pink, #b50592);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px -10px rgba(208, 45, 176, 0.55);
}

.ctaf-submit-arrow { font-size: 16px; }

.ctaf-note {
    color: var(--wp--preset--color--foreground);
    opacity: 0.6;
    font-size: 13px;
}

.ctaf-note--error {
    color: #c2410c;
    opacity: 1;
}

.ctaf-success {
    padding: 28px 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--wp--preset--color--foreground);
    text-align: left;
}

.ctaf-success-title {
    margin: 0 0 8px 0;
    font-weight: 600;
    font-size: 18px;
}

.ctaf-success-body {
    margin: 0;
    opacity: 0.75;
    font-size: 14px;
    line-height: 1.6;
}

.ctaf-submit[aria-busy="true"] {
    opacity: 0.7;
    cursor: progress;
}

.cta-form-section.alignfull,
.wp-block-pixacore-cta-form.alignfull {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 700px) {
    .ctaf-row { grid-template-columns: 1fr; gap: 14px; }
    .ctaf-form { padding: 0; }
    .cta-form-section { padding: 64px 0; }
}
