/* ============================================================
   West Cornwall Pasty Co — Contact Form
   /lets-talk/contact-form.css
   ============================================================ */

/* ── Hide support notice (form is live) ───────────────────── */
.letsTalkHero_supportNotice__1Kq1I {
    display: none !important;
}

/* ── Sticky form panel ────────────────────────────────────── */
/* position:sticky is blocked by overflow:hidden on the
   Next.js .overflowFix ancestor; scroll-based JS transform
   is used instead — see inline <script> in index.html.      */

@media (max-width: 1200px) {
    .cf-sticky-inner {
        margin-bottom: 80px;
    }
}

/* ── Heading & intro ─────────────────────────────────────── */
.cf-heading {
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.cf-intro {
    font-family: Inter, sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.65;
    margin: 0 0 2rem;
}

/* ── Form wrapper ─────────────────────────────────────────── */
#wcpc-contact-form {
    margin-top: 2rem;
    width: 100%;
}

/* ── Layout ───────────────────────────────────────────────── */
.cf-field {
    margin-bottom: 1.5rem;
    position: relative;
}

.cf-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 2rem;
}

@media (min-width: 46.25em) {
    .cf-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Labels ───────────────────────────────────────────────── */
#wcpc-contact-form label,
#wcpc-contact-form .cf-label {
    display: block;
    font-family: Inter, sans-serif;
    font-size: 13px;
    color: #fff;
    margin-bottom: 0.375rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
}

/* Override for checkbox labels — they need normal casing */
#wcpc-contact-form .cf-checkbox-wrap {
    text-transform: none;
    letter-spacing: normal;
    font-size: 15px;
}

/* ── Select ───────────────────────────────────────────────── */
.cf-select-wrap {
    position: relative;
}

.cf-select-wrap::after {
    content: '';
    pointer-events: none;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #fff;
}

#wcpc-contact-form select {
    width: 100%;
    background: none;
    border: 0;
    border-bottom: 1px solid #fff;
    padding: 0.75rem 0;
    font-size: 18px;
    color: #fff;
    font-family: Inter, sans-serif;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-bottom 0.2s ease;
}

#wcpc-contact-form select option {
    color: #1e1b1d;
    background: #fff;
}

#wcpc-contact-form select:focus {
    outline: 0;
    border-bottom: 1px solid #fdb71a;
}

/* ── Text / email / tel / date inputs ─────────────────────── */
#wcpc-contact-form input[type="text"],
#wcpc-contact-form input[type="email"],
#wcpc-contact-form input[type="tel"],
#wcpc-contact-form input[type="date"] {
    width: 100%;
    background: none;
    border: 0;
    border-bottom: 1px solid #fff;
    padding: 0.75rem 0;
    font-size: 18px;
    color: #fff;
    font-family: Inter, sans-serif;
    transition: border-bottom 0.2s ease;
}

#wcpc-contact-form input[type="text"]::placeholder,
#wcpc-contact-form input[type="email"]::placeholder,
#wcpc-contact-form input[type="tel"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

#wcpc-contact-form input[type="date"] {
    color-scheme: dark;
}

#wcpc-contact-form input[type="text"]:focus,
#wcpc-contact-form input[type="email"]:focus,
#wcpc-contact-form input[type="tel"]:focus,
#wcpc-contact-form input[type="date"]:focus {
    outline: 0;
    border-bottom: 1px solid #fdb71a;
}

/* ── Textarea ─────────────────────────────────────────────── */
#wcpc-contact-form textarea {
    width: 100%;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 0.75rem;
    font-size: 18px;
    line-height: 1.5;
    color: #fff;
    font-family: Inter, sans-serif;
    resize: vertical;
    min-height: 130px;
    transition: border-color 0.2s ease;
}

#wcpc-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

#wcpc-contact-form textarea:focus {
    outline: 0;
    border-color: #fdb71a;
}

/* ── File inputs ──────────────────────────────────────────── */
#wcpc-contact-form input[type="file"] {
    width: 100%;
    background: none;
    border: 1px dashed rgba(255, 255, 255, 0.5);
    padding: 0.75rem;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

#wcpc-contact-form input[type="file"]::file-selector-button {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 13px;
    margin-right: 0.75rem;
    transition: background 0.15s ease;
}

#wcpc-contact-form input[type="file"]::file-selector-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

#wcpc-contact-form input[type="file"]:hover,
#wcpc-contact-form input[type="file"]:focus {
    outline: 0;
    border-color: #fdb71a;
}

/* ── Checkbox ─────────────────────────────────────────────── */
.cf-checkbox-wrap {
    display: block;
    position: relative;
    padding-left: 32px;
    padding-top: 2px;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: #fff;
    margin-top: 0.25rem;
}

.cf-checkbox-wrap input[type="checkbox"] {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.cf-checkbox-indicator {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background: none;
    border: 1px solid #fff;
    border-radius: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cf-checkbox-indicator::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid #1e1b1d;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cf-checkbox-wrap:hover .cf-checkbox-indicator {
    border-color: #fdb71a;
}

.cf-checkbox-wrap input[type="checkbox"]:checked~.cf-checkbox-indicator {
    background: #fdb71a;
    border-color: #fdb71a;
}

.cf-checkbox-wrap input[type="checkbox"]:checked~.cf-checkbox-indicator::after {
    display: block;
}

/* ── Conditional sections (hidden until type selected) ────── */
.cf-section {
    display: none;
}

/* ── Error message ────────────────────────────────────────── */
.cf-error {
    color: #f89921;
    font-family: Inter, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    margin-top: 0.25rem;
    min-height: 1.4em;
}

/* ── Submit button ────────────────────────────────────────── */
.cf-submit {
    display: inline-block;
    position: relative;
    z-index: 999999999;
    background: #fdb71a;
    color: #1e1b1d;
    border: none;
    padding: 0.75rem 2.5rem;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    margin-top: 1rem;
    letter-spacing: 0.01em;
}

.cf-submit:hover:not(:disabled) {
    background: #fdca1a;
    box-shadow: 0 0.4px 2.5px rgba(0, 0, 0, .032),
        0 1.3px 8.3px rgba(0, 0, 0, .048),
        0 6px 37px rgba(0, 0, 0, .08);
}

.cf-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── Success message ──────────────────────────────────────── */
.cf-success {
    padding: 2rem 0 1rem;
}

.cf-success p {
    font-family: Inter, sans-serif;
    font-size: 18px;
    color: #fff;
    line-height: 1.6;
}