/*
 * ce-wizard.css — combineestate.pk
 * Houzez 4.3.5 child theme — Phase 1
 * Clean rewrite — body.ce-wizard-page confirmed working
 */

/* ── Accessibility ─────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   MOBILE MENU HIDE
   Confirmed: body.ce-wizard-page = true
   Hiding all mobile nav elements with maximum specificity
   ============================================================ */
html body.ce-wizard-page #header-mobile { display: none !important; }
html body.ce-wizard-page .header-mobile { display: none !important; }
html body.ce-wizard-page nav.nav-mobile { display: none !important; }
html body.ce-wizard-page .nav-mobile    { display: none !important; }
html body.ce-wizard-page .main-nav      { display: none !important; }
html body.ce-wizard-page #main-nav      { display: none !important; }

/* Show desktop nav only */
html body.ce-wizard-page #header-section { display: block !important; }
html body.ce-wizard-page .header-desktop { display: block !important; }

/* ── Page layout ───────────────────────────────────────────── */
body.ce-wizard-page .ce-submit-page {
    padding-top: 40px;
    padding-bottom: 80px;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

/* ============================================================
   WIZARD BACKGROUND — white solid, covers any drawer behind
   ============================================================ */
body.ce-wizard-page .houzez-dashboard-page {
    background: #ffffff;
    position: relative;
    z-index: 50;
}

body.ce-wizard-page .ce-wizard-wrap,
body.ce-wizard-page .ce-landing-screen {
    background: #ffffff;
    position: relative;
    z-index: 51;
}

body.ce-wizard-page .ce-step,
body.ce-wizard-page .ce-landing-inner {
    background: #ffffff;
    position: relative;
    z-index: 52;
}

/* ============================================================
   LANDING SCREEN
   ============================================================ */
.ce-landing-screen {
    display: flex;
    justify-content: center;
    padding: 8px 16px 32px;
}

.ce-landing-inner {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px 28px 32px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.ce-landing-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.ce-landing-headline {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px !important;
    line-height: 1.3;
}

.ce-landing-sub {
    font-size: 14px;
    color: #64748b !important;
    margin: 0 0 24px;
    line-height: 1.6;
}

.ce-benefits {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 28px !important;
    text-align: left;
}

.ce-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9;
}

.ce-benefit:last-child { border-bottom: none; }

.ce-benefit-icon { flex-shrink: 0; }

.ce-landing-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

@media (min-width: 480px) {
    .ce-landing-actions { flex-direction: row; }
    .ce-btn-primary,
    .ce-btn-secondary { flex: 1; }
}

.ce-btn-primary,
.ce-btn-secondary {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    min-height: 50px;
    transition: all 0.15s;
    border: 2px solid #1a6fc4 !important;
}

.ce-btn-primary {
    background: #1a6fc4 !important;
    color: #ffffff !important;
}

.ce-btn-primary:hover {
    background: #155da8 !important;
    color: #ffffff !important;
}

.ce-btn-secondary {
    background: #ffffff !important;
    color: #1a6fc4 !important;
}

.ce-btn-secondary:hover {
    background: #eef5fd !important;
    color: #1a6fc4 !important;
}

.ce-landing-trust {
    font-size: 12px;
    color: #94a3b8 !important;
    margin: 0;
}

/* ============================================================
   WIZARD WRAPPER
   ============================================================ */
.ce-wizard-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .ce-wizard-wrap { padding: 0; }
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.ce-progress {
    margin-bottom: 40px;
    padding: 0 8px;
}

.ce-progress-track {
    display: flex;
    align-items: flex-start;
}

.ce-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 60px;
}

.ce-progress-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

.ce-progress-dot span {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
}

.ce-progress-step.is-active .ce-progress-dot {
    background: #1a6fc4;
    border-color: #1a6fc4;
    box-shadow: 0 0 0 4px rgba(26,111,196,0.15);
}

.ce-progress-step.is-active .ce-progress-dot span { color: #ffffff; }

.ce-progress-step.is-done .ce-progress-dot {
    background: #1a6fc4;
    border-color: #1a6fc4;
}

.ce-progress-step.is-done .ce-progress-dot span { font-size: 0; }

.ce-progress-step.is-done .ce-progress-dot::after {
    content: '';
    display: block;
    width: 10px;
    height: 6px;
    border-left: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(-45deg) translate(1px,-1px);
}

.ce-progress-label {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    font-weight: 500;
}

.ce-progress-step.is-active .ce-progress-label {
    color: #1a6fc4;
    font-weight: 700;
}

.ce-progress-step.is-done .ce-progress-label { color: #1a6fc4; }

.ce-progress-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin-top: 17px;
    transition: background 0.25s;
}

.ce-progress-line.is-done { background: #1a6fc4; }

/* ============================================================
   STEP STYLES
   ============================================================ */
.ce-step-heading {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px !important;
}

.ce-step-sub {
    font-size: 14px;
    color: #64748b !important;
    margin: 0 0 28px;
    line-height: 1.6;
}

.ce-step-back-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.ce-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #64748b !important;
    text-decoration: none !important;
    padding: 6px 10px 6px 6px;
    border-radius: 6px;
    transition: all 0.15s;
}

.ce-back-link:hover {
    background: #f1f5f9;
    color: #1a6fc4 !important;
}

.ce-step-context {
    font-size: 12px;
    color: #1a6fc4 !important;
    background: #eef5fd;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid #bfdbfe;
}

/* ============================================================
   TYPE CARDS
   ============================================================ */
.ce-step-form { margin: 0; }

.ce-type-grid {
    display: grid;
    gap: 14px;
}

.ce-type-grid--2col { grid-template-columns: 1fr 1fr; }

.ce-type-grid--3col { grid-template-columns: 1fr; }

@media (min-width: 520px) {
    .ce-type-grid--3col { grid-template-columns: 1fr 1fr 1fr; }
}

.ce-type-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 16px;
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    min-height: 130px;
    -webkit-appearance: none;
    appearance: none;
    color: #475569 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.ce-type-card:hover {
    border-color: #1a6fc4 !important;
    background: #f8fbff !important;
    box-shadow: 0 4px 16px rgba(26,111,196,0.12) !important;
    transform: translateY(-2px);
    color: #1a6fc4 !important;
    text-decoration: none !important;
}

.ce-type-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ce-type-card__label {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: inherit !important;
    margin: 0;
}

.ce-type-card__sub {
    font-size: 12px;
    color: #94a3b8 !important;
    margin: 0;
}

@media (max-width: 400px) {
    .ce-type-card { min-height: 110px; padding: 16px 10px; }
    .ce-type-card__sub { display: none; }
}

@media (min-width: 560px) {
    .ce-step-heading { font-size: 28px !important; }
}


/* ============================================================
   PHASE 2 + 3 — PREMIUM FORM DESIGN SYSTEM
   Reference: Zameen.pk · Graana.com · Bayut · Dubizzle
   CombineEstate.pk · Houzez 4.3.5
   ============================================================ */

/* ── Design tokens ───────────────────────────────────────── */
:root {
    --ce-brand:        #1a6fc4;
    --ce-brand-dark:   #155da8;
    --ce-brand-light:  #eef5fd;
    --ce-brand-ring:   rgba(26,111,196,0.15);
    --ce-text-dark:    #0f172a;
    --ce-text-mid:     #374151;
    --ce-text-light:   #64748b;
    --ce-text-muted:   #94a3b8;
    --ce-border:       #e2e8f0;
    --ce-border-focus: #1a6fc4;
    --ce-bg:           #f8fafc;
    --ce-white:        #ffffff;
    --ce-success:      #10b981;
    --ce-error:        #ef4444;
    --ce-shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --ce-shadow-md:    0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    --ce-shadow-focus: 0 0 0 4px rgba(26,111,196,0.12);
    --ce-radius-sm:    8px;
    --ce-radius-md:    12px;
    --ce-radius-lg:    16px;
    --ce-radius-xl:    20px;
}

/* ── Page background ─────────────────────────────────────── */
body.ce-wizard-page .ce-submit-page {
    background: var(--ce-bg);
    padding-top: 32px;
    padding-bottom: 80px;
}

body.ce-wizard-page .houzez-dashboard-page {
    background: var(--ce-bg);
}

/* ── Form wrapper ────────────────────────────────────────── */
.ce-plot-form-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ce-form-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: var(--ce-text-dark) !important;
    margin: 0 0 4px !important;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

/* ── Section cards ───────────────────────────────────────── */
.ce-form-section {
    background: var(--ce-white);
    border: 1px solid var(--ce-border);
    border-radius: var(--ce-radius-lg);
    box-shadow: var(--ce-shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.ce-form-section:focus-within {
    box-shadow: var(--ce-shadow-md);
}

.ce-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--ce-border);
}

.ce-section-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ce-brand);
    color: var(--ce-white);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(26,111,196,0.3);
}

.ce-section-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--ce-text-dark) !important;
    margin: 0 !important;
    letter-spacing: -0.1px;
}

.ce-section-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Field grid ──────────────────────────────────────────── */
.ce-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ce-field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 560px) {
    .ce-field-row {
        grid-template-columns: 1fr 1fr;
    }
    .ce-field-row--size {
        grid-template-columns: 1fr 140px;
    }
}

@media (min-width: 720px) {
    .ce-field-row.ce-field-row--3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ── Labels ──────────────────────────────────────────────── */
.ce-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ce-text-mid);
    letter-spacing: 0.1px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ce-required {
    color: var(--ce-error);
    font-size: 14px;
    line-height: 1;
}

.ce-label-optional {
    font-size: 11px;
    font-weight: 400;
    color: var(--ce-text-muted);
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 4px;
}

.ce-field-hint {
    font-size: 12px;
    color: var(--ce-text-light);
    line-height: 1.4;
}

/* ── Inputs ──────────────────────────────────────────────── */
.ce-input,
.ce-select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid var(--ce-border);
    border-radius: var(--ce-radius-md);
    font-size: 14px;
    font-weight: 400;
    color: var(--ce-text-dark);
    background: var(--ce-white);
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.ce-input::placeholder { color: var(--ce-text-muted); }

.ce-input:hover,
.ce-select:hover {
    border-color: #b0bec5;
}

.ce-input:focus,
.ce-select:focus {
    border-color: var(--ce-brand);
    box-shadow: var(--ce-shadow-focus);
    background: #fdfeff;
}

.ce-input-error {
    border-color: var(--ce-error) !important;
    box-shadow: 0 0 0 4px rgba(239,68,68,0.1) !important;
}

/* Select arrow */
.ce-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Prefix input (+92) */
.ce-input-prefix-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--ce-border);
    border-radius: var(--ce-radius-md);
    overflow: hidden;
    height: 52px;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: var(--ce-white);
}

.ce-input-prefix-wrap:focus-within {
    border-color: var(--ce-brand);
    box-shadow: var(--ce-shadow-focus);
}

.ce-input-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: #f1f5f9;
    border-right: 1.5px solid var(--ce-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--ce-text-mid);
    white-space: nowrap;
    flex-shrink: 0;
}

.ce-input--prefixed {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
    height: 100%;
    padding: 0 16px;
    font-size: 14px;
    color: var(--ce-text-dark);
    background: transparent;
    outline: none;
}

/* ── Society selector cards ──────────────────────────────── */
.ce-society-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 520px) {
    .ce-society-grid { grid-template-columns: repeat(3, 1fr); }
}

.ce-society-card { cursor: pointer; }

.ce-society-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.ce-society-card__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    border: 2px solid var(--ce-border);
    border-radius: var(--ce-radius-md);
    background: var(--ce-white);
    transition: all 0.15s;
    text-align: center;
    min-height: 82px;
    position: relative;
}

.ce-society-card__inner::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--ce-border);
    background: var(--ce-white);
    transition: all 0.15s;
}

.ce-society-card:hover .ce-society-card__inner {
    border-color: var(--ce-brand);
    background: var(--ce-brand-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,111,196,0.12);
}

.ce-society-card.is-selected .ce-society-card__inner {
    border-color: var(--ce-brand);
    background: var(--ce-brand-light);
    box-shadow: 0 0 0 3px rgba(26,111,196,0.15);
}

.ce-society-card.is-selected .ce-society-card__inner::after {
    border-color: var(--ce-brand);
    background: var(--ce-brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6L5 8.5L9.5 3.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.ce-society-card__icon { font-size: 0; line-height: 0; }
.ce-society-card__icon svg { display: block; }

.ce-society-card__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ce-text-mid);
    line-height: 1.3;
}

.ce-society-card.is-selected .ce-society-card__label { color: var(--ce-brand); }

.ce-error .ce-society-card__inner { border-color: var(--ce-error); }

/* ── Payment type radios ─────────────────────────────────── */
.ce-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ce-radio-card { cursor: pointer; flex: 1; min-width: 120px; }

.ce-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ce-radio-card__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: 2px solid var(--ce-border);
    border-radius: var(--ce-radius-md);
    background: var(--ce-white);
    font-size: 14px;
    font-weight: 500;
    color: var(--ce-text-mid);
    transition: all 0.15s;
    height: 52px;
}

.ce-radio-card:hover .ce-radio-card__inner {
    border-color: var(--ce-brand);
    background: var(--ce-brand-light);
}

.ce-radio-card input:checked + .ce-radio-card__inner {
    border-color: var(--ce-brand);
    background: var(--ce-brand-light);
    color: var(--ce-brand);
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(26,111,196,0.1);
}

.ce-radio-card__dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--ce-border);
    flex-shrink: 0;
    transition: all 0.15s;
    position: relative;
}

.ce-radio-card input:checked + .ce-radio-card__inner .ce-radio-card__dot {
    border-color: var(--ce-brand);
    background: var(--ce-brand);
}

.ce-radio-card input:checked + .ce-radio-card__inner .ce-radio-card__dot::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ce-white);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ── Installment panel ───────────────────────────────────── */
.ce-installment-fields {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f2ff 100%);
    border: 1.5px solid #bfdbfe;
    border-radius: var(--ce-radius-md);
    padding: 20px;
    margin-top: 4px;
}

/* ── Amenity / Feature checkbox cards ───────────────────── */
.ce-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 520px) {
    .ce-checkbox-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 680px) {
    .ce-checkbox-grid { grid-template-columns: repeat(4, 1fr); }
}

.ce-checkbox-card { cursor: pointer; }

.ce-checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ce-checkbox-card__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    border: 2px solid var(--ce-border);
    border-radius: var(--ce-radius-md);
    background: var(--ce-white);
    font-size: 12px;
    font-weight: 500;
    color: var(--ce-text-mid);
    text-align: center;
    transition: all 0.15s;
    min-height: 72px;
    position: relative;
    user-select: none;
}

.ce-checkbox-card__inner::before {
    content: '';
    position: absolute;
    top: 7px;
    right: 7px;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid var(--ce-border);
    background: var(--ce-white);
    transition: all 0.15s;
}

.ce-checkbox-card:hover .ce-checkbox-card__inner {
    border-color: var(--ce-brand);
    background: var(--ce-brand-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(26,111,196,0.1);
}

.ce-checkbox-card input:checked + .ce-checkbox-card__inner {
    border-color: var(--ce-brand);
    background: var(--ce-brand-light);
    color: var(--ce-brand);
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(26,111,196,0.1);
}

.ce-checkbox-card input:checked + .ce-checkbox-card__inner::before {
    border-color: var(--ce-brand);
    background: var(--ce-brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6L4.5 8.5L10 3' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.ce-checkbox-card__icon {
    font-size: 22px;
    line-height: 1;
    display: block;
}

/* ── Upload areas ────────────────────────────────────────── */
.ce-upload-area {
    border: 2px dashed var(--ce-border);
    border-radius: var(--ce-radius-lg);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: #fafbfc;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ce-upload-area:hover {
    border-color: var(--ce-brand);
    background: var(--ce-brand-light);
}

.ce-upload-area:hover .ce-upload-icon svg path,
.ce-upload-area:hover .ce-upload-icon svg rect,
.ce-upload-area:hover .ce-upload-icon svg circle {
    stroke: var(--ce-brand);
}

.ce-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.ce-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.ce-upload-icon {
    width: 52px;
    height: 52px;
    background: var(--ce-brand-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.ce-upload-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--ce-text-dark);
}

.ce-upload-hint {
    font-size: 12px;
    color: var(--ce-text-muted);
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 10px;
}

.ce-upload-preview {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: var(--ce-radius-md);
    position: relative;
    z-index: 1;
}

.ce-gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 14px;
    width: 100%;
    position: relative;
    z-index: 1;
}

@media (max-width: 480px) {
    .ce-gallery-preview-grid { grid-template-columns: repeat(3, 1fr); }
}

.ce-gallery-thumb {
    aspect-ratio: 1;
    border-radius: var(--ce-radius-sm);
    overflow: hidden;
    border: 2px solid var(--ce-border);
}

.ce-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Submit section ──────────────────────────────────────── */
.ce-form-submit {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 8px 0 32px;
}

.ce-submit-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ce-text-light);
    background: var(--ce-white);
    border: 1px solid var(--ce-border);
    border-radius: var(--ce-radius-md);
    padding: 14px 18px;
    box-shadow: var(--ce-shadow-sm);
}

.ce-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, var(--ce-brand) 0%, var(--ce-brand-dark) 100%);
    color: var(--ce-white);
    border: none;
    border-radius: var(--ce-radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(26,111,196,0.35);
}

.ce-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--ce-brand-dark) 0%, #114d91 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,111,196,0.45);
}

.ce-submit-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26,111,196,0.3);
}

.ce-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.ce-submit-btn__spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: ce-spin 0.7s linear infinite;
    flex-shrink: 0;
}

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

.ce-submit-error {
    padding: 14px 18px;
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    border-radius: var(--ce-radius-md);
    font-size: 13px;
    color: #b91c1c;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* ── Mobile adjustments ──────────────────────────────────── */
@media (max-width: 600px) {
    .ce-plot-form-wrap { gap: 14px; }
    .ce-section-body { padding: 18px 16px; gap: 16px; }
    .ce-section-header { padding: 14px 16px; }
    .ce-form-title { font-size: 22px !important; }
    .ce-checkbox-grid { grid-template-columns: repeat(2, 1fr); }
    .ce-society-grid { grid-template-columns: repeat(2, 1fr); }
    .ce-submit-btn { height: 52px; font-size: 15px; }
}

/* ── Mobile nav hide (Phase 1 — keep intact) ─────────────── */
@media (max-width: 1024px) {
    html body.ce-wizard-page ul#main-nav,
    html body.ce-wizard-page .navbar-nav.nav-left,
    html body.ce-wizard-page nav.main-nav,
    html body.ce-wizard-page .main-nav {
        display: none !important;
    }
}

/* ── Confirmed root cause fix (Phase 1) ──────────────────── */
html body.ce-wizard-page #header-mobile,
html body.ce-wizard-page .header-mobile,
html body.ce-wizard-page nav.nav-mobile,
html body.ce-wizard-page .nav-mobile {
    display: none !important;
}

/* ── WhatsApp help button ────────────────────────────────── */
.ce-landing-whatsapp {
    margin-top: 12px;
    text-align: center;
}

.ce-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1.5px solid #25D366;
    border-radius: 10px;
    color: #128C7E !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.15s;
}

.ce-btn-whatsapp:hover {
    background: #f0fff4;
    box-shadow: 0 4px 12px rgba(37,211,102,0.2);
    transform: translateY(-1px);
    color: #075E54 !important;
}
