/**
 * FFLP Quick Listing Form Styles
 * Mobile-first, large touch targets, minimal scrolling
 *
 * @since 4.2.0
 */

/* ═══════════════════════════════════════════
   RESET & WRAPPER
   ═══════════════════════════════════════════ */
.fflp-ql-wrap {
    position: relative;
    max-width: 880px;
    margin: -40px auto 0;
    padding: 50px 56px 56px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 10;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.fflp-ql-wrap *,
.fflp-ql-wrap *::before,
.fflp-ql-wrap *::after {
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════ */
.fflp-ql-progress {
    margin-bottom: 28px;
}

.fflp-ql-progress-bar {
    height: 8px;
    background: #d1d5db;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.fflp-ql-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B00, #FF8533);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.fflp-ql-progress-labels {
    display: flex;
    justify-content: space-between;
}

.fflp-ql-step-label {
    font-size: 15px;
    font-weight: 600;
    color: #adb5bd;
    transition: color 0.3s;
}

.fflp-ql-step-label.active {
    color: #FF6B00;
}

/* ═══════════════════════════════════════════
   HEADINGS
   ═══════════════════════════════════════════ */
.fflp-ql-heading {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #0a1c2c;
}

.fflp-ql-subheading {
    font-size: 17px;
    color: #6c757d;
    margin: 0 0 32px;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════
   FORM FIELDS
   ═══════════════════════════════════════════ */
.fflp-ql-field {
    margin-bottom: 24px;
}

.fflp-ql-field label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.fflp-ql-field label i {
    margin-right: 4px;
    color: #6c757d;
}

.fflp-ql-field .req {
    color: #dc3545;
}

.fflp-ql-field input[type="text"],
.fflp-ql-field input[type="email"],
.fflp-ql-field input[type="tel"],
.fflp-ql-field input[type="url"],
.fflp-ql-field select,
.fflp-ql-field textarea {
    display: block;
    width: 100%;
    padding: 16px 18px;
    font-size: 17px;
    line-height: 1.4;
    min-height: 56px;
    color: #333;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.fflp-ql-field input:focus,
.fflp-ql-field select:focus,
.fflp-ql-field textarea:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.fflp-ql-field input.fflp-ql-invalid,
.fflp-ql-field select.fflp-ql-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.fflp-ql-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

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

.fflp-ql-error {
    font-size: 13px;
    color: #dc3545;
    margin-top: 4px;
    min-height: 0;
}

/* ═══════════════════════════════════════════
   ROW LAYOUT (side by side)
   ═══════════════════════════════════════════ */
.fflp-ql-row {
    display: flex;
    gap: 12px;
}

.fflp-ql-half {
    flex: 1;
    min-width: 0;
}

@media (max-width: 480px) {
    .fflp-ql-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ═══════════════════════════════════════════
   DIVIDERS
   ═══════════════════════════════════════════ */
.fflp-ql-divider {
    display: flex;
    align-items: center;
    margin: 28px 0 18px;
    gap: 12px;
}

.fflp-ql-divider::before,
.fflp-ql-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dee2e6;
}

.fflp-ql-divider span {
    font-size: 15px;
    font-weight: 700;
    color: #495057;
    white-space: nowrap;
}

.fflp-ql-helper {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 12px;
}

/* ═══════════════════════════════════════════
   CHECKBOX CARDS (festivals + privacy)
   ═══════════════════════════════════════════ */
.fflp-ql-checkboxes {
    display: grid;
    gap: 10px;
}

.fflp-ql-festival-grid {
    grid-template-columns: 1fr 1fr;
}

.fflp-ql-privacy-list {
    grid-template-columns: 1fr;
}

@media (max-width: 480px) {
    .fflp-ql-festival-grid {
        grid-template-columns: 1fr;
    }
}

.fflp-ql-checkbox-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.fflp-ql-checkbox-card:hover {
    border-color: #adb5bd;
}

.fflp-ql-checkbox-card:has(input:checked) {
    border-color: #28a745;
    background: #e8f5e9;
}

.fflp-ql-checkbox-card input[type="checkbox"] {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    accent-color: #28a745;
    cursor: pointer;
}

.fflp-ql-checkbox-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.fflp-ql-actions {
    margin-top: 28px;
}

.fflp-ql-actions-dual {
    display: flex;
    gap: 12px;
}

.fflp-ql-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.fflp-ql-btn:active {
    transform: scale(0.97);
}

.fflp-ql-btn-next,
.fflp-ql-btn-submit {
    flex: 1;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    box-shadow: 0 4px 14px rgba(40, 167, 69, 0.3);
}

.fflp-ql-btn-next:hover,
.fflp-ql-btn-submit:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838, #1baa80);
}

.fflp-ql-btn-back {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
    padding: 16px 22px;
}

.fflp-ql-btn-back:hover {
    background: #e9ecef;
}

.fflp-ql-btn-home {
    background: #1a1a2e;
    color: #fff;
    margin-top: 16px;
    padding: 14px 28px;
    font-size: 16px;
}

.fflp-ql-btn:disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   REVIEW SUMMARY (Step 2)
   ═══════════════════════════════════════════ */
.fflp-ql-summary {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.fflp-ql-summary h3 {
    font-size: 17px;
    margin: 0 0 14px;
    color: #1a1a2e;
}

.fflp-ql-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fflp-ql-summary-wide {
    grid-column: 1 / -1;
}

.fflp-ql-summary-item {
    font-size: 14px;
}

.fflp-ql-summary-item strong {
    color: #6c757d;
    font-weight: 600;
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.fflp-ql-summary-item span {
    color: #333;
    font-weight: 500;
}

@media (max-width: 480px) {
    .fflp-ql-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════
   SUCCESS SCREEN
   ═══════════════════════════════════════════ */
.fflp-ql-success {
    text-align: center;
    padding: 40px 20px;
}

.fflp-ql-success-inner {
    max-width: 440px;
    margin: 0 auto;
}

.fflp-ql-success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.fflp-ql-success-heading {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
}

.fflp-ql-success-message {
    font-size: 16px;
    color: #6c757d;
    margin: 0 0 24px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   LOADING OVERLAY
   ═══════════════════════════════════════════ */
.fflp-ql-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 12px;
}

.fflp-ql-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e9ecef;
    border-top-color: #28a745;
    border-radius: 50%;
    animation: fflp-ql-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes fflp-ql-spin {
    to { transform: rotate(360deg); }
}

.fflp-ql-loading p {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

/* ═══════════════════════════════════════════
   PHONE FORMATTING HINT
   ═══════════════════════════════════════════ */
.fflp-ql-field .phone-hint {
    font-size: 12px;
    color: #adb5bd;
    margin-top: 4px;
}

/* ── Suggest Category / Service Area Fields ── */
.fflp-ql-suggest-field {
    margin-top: -4px;
}
.fflp-ql-suggest-field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
}
.fflp-ql-optional {
    font-weight: 400;
    color: #999;
    font-size: 0.8rem;
}
.fflp-ql-help {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: #888;
    line-height: 1.3;
}
.fflp-ql-suggest-field input[type="text"] {
    font-size: 0.9rem;
    padding: 8px 12px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    background: #fafafa;
    transition: border-color 0.2s;
}
.fflp-ql-suggest-field input[type="text"]:focus {
    border-color: #2271b1;
    border-style: solid;
    background: #fff;
}


/* ═══════════════════════════════════════════════════════
   HERO SECTION — WUS Premium Branding
   ═══════════════════════════════════════════════════════ */

/* Hide the default WordPress page title */
.page-id-7235 .single-title,
.page-id-7235 .entry-title,
.page-id-7235 .page-title {
    display: none !important;
}

/* Remove default page padding so hero goes full-bleed */
.page-id-7235 .site-content,
.page-id-7235 .entry-content,
.page-id-7235 .content-area,
.page-id-7235 .site-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Full-bleed hero — darkened overlay for text pop */
.fflp-ql-hero {
    position: relative;
    background:
        linear-gradient(
            180deg,
            rgba(8, 20, 55, 0.78) 0%,
            rgba(8, 20, 55, 0.72) 100%
        ),
        url('/wp-content/uploads/2026/01/BPL-2023-Summerville-SC-4.jpg') center center / cover no-repeat;
    padding: 80px 24px 70px;
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -30px;
    margin-bottom: 0;
    overflow: hidden;
}

/* Remove the separate overlay div — gradient is baked into background now */
.fflp-ql-hero-overlay {
    display: none;
}

.fflp-ql-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}

/* Eyebrow — WUS Orange */
.fflp-ql-hero-eyebrow {
    display: inline-block;
    font-size: 22px !important;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #FF6B00;
    margin-bottom: 18px;
}

/* Heading — Big, white, commanding */
.fflp-ql-hero-heading {
    font-size: 76px !important;
    font-weight: 900;
    color: #fff;
    margin: 0 0 22px;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

/* Subheading — white, generous */
.fflp-ql-hero-sub {
    font-size: 34px !important;
    line-height: 1.55;
    color: #fff;
    margin: 0 auto 16px;
    max-width: 700px;
}

/* Supporting detail — softer */
.fflp-ql-hero-sub--detail {
    font-size: 19px !important;
    color: rgba(255, 255, 255, 0.80);
    margin: 0 auto 32px;
    max-width: 800px;
    line-height: 1.6;
}

/* Callout row */
.fflp-ql-hero-callouts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 40px;
    margin-top: 16px;
}

/* Checks — orange icon, white text */
.fflp-ql-hero-check {
    font-size: 15px !important;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fflp-ql-hero-check .check-icon {
    color: #FF6B00;
    font-size: 1.1em;
}

/* ── Hero responsive ─────────────────────────── */
@media (max-width: 600px) {
    .fflp-ql-hero {
        padding: 60px 20px 50px;
        margin-top: -16px;
    }
    .fflp-ql-hero-eyebrow {
        font-size: 17px !important;
        letter-spacing: 2.5px;
    }
    .fflp-ql-hero-heading {
        font-size: 42px !important;
    }
    .fflp-ql-hero-sub {
        font-size: 22px !important;
    }
    .fflp-ql-hero-sub--detail {
        font-size: 16px !important;
    }
    .fflp-ql-hero-check {
        font-size: 13px !important;
    }
    .fflp-ql-hero-callouts {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

@media (min-width: 768px) {
    .fflp-ql-hero {
        padding: 95px 40px 80px;
    }
}

@media (min-width: 1200px) {
    .fflp-ql-hero {
        padding: 100px 60px 85px;
    }
    .fflp-ql-hero-heading {
        font-size: 82px !important;
    }
    .fflp-ql-hero-sub {
        font-size: 37px !important;
    }
    .fflp-ql-hero-sub--detail {
        font-size: 21px !important;
    }
}

/* ═══════════════════════════════════════════════════════
   WUS BRAND OVERRIDES — Buttons & Credibility
   ═══════════════════════════════════════════════════════ */

/* Primary buttons → WUS Orange */
.fflp-ql-wrap .fflp-ql-btn-next,
.fflp-ql-wrap .fflp-ql-btn-submit,
.fflp-ql-wrap button[type="submit"] {
    background: #FF6B00 !important;
    border-color: #FF6B00 !important;
    color: #fff !important;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    min-height: 56px;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.15s;
}

.fflp-ql-wrap .fflp-ql-btn-next:hover,
.fflp-ql-wrap .fflp-ql-btn-submit:hover,
.fflp-ql-wrap button[type="submit"]:hover {
    background: #E65C00 !important;
    border-color: #E65C00 !important;
    transform: translateY(-1px);
}

/* Credibility bar between hero and form */
.fflp-ql-credibility {
    text-align: center;
    padding: 28px 20px 0;
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    z-index: 11;
}

.fflp-ql-credibility p {
    font-size: 18px !important;
    font-weight: 600;
    color: #4a5568;
    margin: 0;
    line-height: 1.5;
}

.fflp-ql-credibility strong {
    color: #0a1c2c;
}

/* ── Card responsive adjustments ─────────────── */
@media (max-width: 600px) {
    .fflp-ql-wrap {
        margin: -24px 12px 0;
        padding: 32px 24px 36px;
        border-radius: 12px;
    }
    .fflp-ql-credibility {
        padding: 20px 16px 0;
    }
    .fflp-ql-credibility p {
        font-size: 16px !important;
    }
}

@media (min-width: 768px) {
    .fflp-ql-wrap {
        margin-top: -50px;
    }
}

@media (min-width: 1200px) {
    .fflp-ql-wrap {
        max-width: 940px;
        padding: 56px 64px 60px;
        margin-top: -60px;
    }
}

/* ── Newsletter Opt-In ── */
.fflp-ql-newsletter-optin {
    margin: 24px 0 8px;
    padding: 16px 20px;
    background: #f0faf4;
    border: 1px solid #d1e7dd;
    border-radius: 10px;
}
.fflp-ql-newsletter-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 15px !important;
    line-height: 1.5;
    color: #333;
}
.fflp-ql-newsletter-label input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: #f15a29;
    cursor: pointer;
}
.fflp-ql-newsletter-text {
    flex: 1;
}
.fflp-ql-newsletter-text strong {
    color: #f15a29;
}
@media (max-width: 600px) {
    .fflp-ql-newsletter-optin {
        padding: 12px 14px;
    }
    .fflp-ql-newsletter-label {
        font-size: 14px !important;
    }
}
