/* ============================================
   Event Checkout Page — Safari Vents
   Luxury Light Theme
   Canvas: #f4efe6 · Surfaces: #ffffff · Accent: #b86d26
   ============================================ */

.ec-shell {
    padding: 1.5rem clamp(1.25rem, 2.5vw, 2.5rem);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #18181b;
    background: #f4efe6;
    min-height: 100vh;
}

/* ── Two-Column Layout ── */
.ec-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    align-items: start;
}

.ec-main { min-width: 0; }

.ec-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 90px;
}

/* ── Step Indicator ── */
.ec-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e8e2d8;
    border-radius: 16px;
    padding: 1.25rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.ec-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
}

.ec-step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #faf7f2;
    border: 2px solid #e8e2d8;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    transition: all 0.2s ease;
}

.ec-step.active .ec-step-dot {
    background: #b86d26;
    border-color: #b86d26;
    color: #fff;
    box-shadow: 0 4px 12px rgba(184, 109, 38, 0.3);
}

.ec-step.done .ec-step-dot {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.ec-step-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
}

.ec-step.active .ec-step-label { color: #18181b; }
.ec-step.done .ec-step-label { color: #10b981; }

.ec-step-line {
    flex: 1;
    height: 2px;
    background: #e8e2d8;
    margin: 0 0.85rem;
    margin-bottom: 1.5rem;
    border-radius: 1px;
    min-width: 40px;
}

.ec-step-line.active {
    background: #10b981;
}

/* ── Card ── */
.ec-card {
    background: #ffffff;
    border: 1px solid #e8e2d8;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    animation: ecFadeIn 0.3s ease;
}

@keyframes ecFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ec-card-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e8e2d8;
    background: #faf7f2;
    color: #18181b;
}

.ec-card-head i {
    font-size: 1rem;
    color: #b86d26;
}

.ec-card-head h5 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0;
}

.ec-card-head.ec-head-pay {
    background: #18181b;
    color: #fff;
}

.ec-card-body {
    padding: 1.5rem;
}

/* ── Summary Grid ── */
.ec-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ec-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ec-summary-item.full {
    grid-column: 1 / -1;
}

.ec-summary-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.ec-summary-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #18181b;
}

.ec-summary-value i {
    color: #b86d26;
    margin-right: 0.3rem;
    font-size: 0.85rem;
}

.ec-divider {
    height: 1px;
    background: #e8e2d8;
    margin: 1rem 0;
}

/* ── Price Row ── */
.ec-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
}

.ec-price-row span:first-child {
    font-size: 0.82rem;
    color: #6b7280;
}

.ec-price-row span:last-child {
    font-size: 0.88rem;
    font-weight: 700;
    color: #18181b;
}

.ec-price-row.ec-total span:first-child {
    font-size: 0.95rem;
    font-weight: 800;
    color: #18181b;
}

.ec-price-row.ec-total span:last-child {
    font-size: 1.25rem;
    font-weight: 800;
    color: #b86d26;
}

/* ── Card Footer ── */
.ec-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e8e2d8;
    background: #faf7f2;
}

.ec-btn-primary {
    width: 100%;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    background: #b86d26;
    color: #fff;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    box-shadow: 0 4px 12px rgba(184, 109, 38, 0.25);
}

.ec-btn-primary:hover:not(:disabled) {
    background: #a25c1a;
}

.ec-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ec-btn-secondary {
    width: 100%;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    background: #faf7f2;
    color: #18181b;
    border: 1px solid #e8e2d8;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.ec-btn-secondary:hover {
    border-color: #b86d26;
    color: #b86d26;
    background: #ffffff;
}

.ec-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* ── Security Notice ── */
.ec-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    font-size: 0.78rem;
    color: #065f46;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.ec-notice i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── Payment Options ── */
.ec-pay-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e8e2d8;
    border-radius: 14px;
    cursor: pointer;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.ec-pay-option:hover {
    border-color: #b86d26;
    box-shadow: 0 4px 16px rgba(184, 109, 38, 0.12);
    transform: translateY(-1px);
}

.ec-pay-option.selected {
    border-color: #b86d26;
    background: rgba(184, 109, 38, 0.06);
    box-shadow: 0 4px 16px rgba(184, 109, 38, 0.15);
}

.ec-pay-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.ec-pay-icon.mpesa { background: #10b981; color: #fff; }
.ec-pay-icon.card { background: #18181b; color: #fff; }
.ec-pay-icon.paypal { background: #0284c7; color: #fff; }

.ec-pay-body {
    flex: 1;
    min-width: 0;
}

.ec-pay-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #18181b;
}

.ec-pay-desc {
    font-size: 0.75rem;
    color: #6b7280;
}

.ec-pay-check {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.ec-pay-check .checked { color: #b86d26; }
.ec-pay-check .unchecked { color: #d1c7b7; }

/* ── Payment Details Form ── */
.ec-pay-form {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border-radius: 14px;
    background: #faf7f2;
    border: 1px solid #e8e2d8;
}

.ec-pay-form h6 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #18181b;
    margin: 0 0 0.85rem;
}

.ec-form-group {
    margin-bottom: 0.75rem;
}

.ec-form-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #374151;
    margin-bottom: 0.35rem;
    display: block;
}

.ec-form-input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid #e8e2d8;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #18181b;
    background: #ffffff;
    transition: all 0.2s ease;
}

.ec-form-input:focus {
    outline: none;
    border-color: #b86d26;
    box-shadow: 0 0 0 3px rgba(184, 109, 38, 0.12);
}

.ec-form-input::placeholder {
    color: #9ca3af;
}

.ec-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.ec-info-box {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    background: rgba(184, 109, 38, 0.1);
    font-size: 0.75rem;
    color: #b86d26;
    font-weight: 600;
    margin-top: 0.75rem;
}

.ec-info-box i {
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ── Processing State ── */
.ec-processing {
    text-align: center;
    padding: 3.5rem 1.5rem;
}

.ec-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(184, 109, 38, 0.2);
    border-top-color: #b86d26;
    border-radius: 50%;
    animation: ecSpin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes ecSpin {
    to { transform: rotate(360deg); }
}

.ec-processing h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #18181b;
    margin: 0 0 0.35rem;
}

.ec-processing p {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0;
}

.ec-processing .ec-info-box {
    margin-top: 1.25rem;
    justify-content: center;
}

/* ── Success State ── */
.ec-success {
    text-align: center;
    padding: 3rem 1.5rem;
}

.ec-success-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.ec-success h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #18181b;
    margin: 0 0 0.35rem;
    letter-spacing: -0.025em;
}

.ec-success .ec-success-sub {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 1.5rem;
}

/* ── Confirmation Details ── */
.ec-confirm-box {
    background: #faf7f2;
    border: 1px solid #e8e2d8;
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.ec-confirm-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ec-confirm-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ec-confirm-item.right {
    text-align: right;
}

.ec-confirm-item .ec-summary-label {
    font-size: 0.68rem;
}

.ec-confirm-item .ec-summary-value {
    font-size: 0.88rem;
}

.ec-confirm-item .ec-summary-value.highlight {
    color: #b86d26;
}

.ec-email-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    font-size: 0.78rem;
    color: #065f46;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.ec-success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* ── Tabs ── */
.ec-tabs {
    display: flex;
    gap: 0.4rem;
    background: #ffffff;
    border-radius: 12px;
    padding: 0.35rem;
    border: 1px solid #e8e2d8;
    margin-top: 1.25rem;
}

.ec-tab {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.ec-tab:hover {
    color: #18181b;
    background: #faf7f2;
}

.ec-tab.active {
    background: #b86d26;
    color: #fff;
    box-shadow: 0 2px 8px rgba(184, 109, 38, 0.25);
}

.ec-tab i {
    font-size: 0.82rem;
}

.ec-tab-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e8e2d8;
    animation: ecFadeIn 0.2s ease;
    margin-top: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* ── Proceed Button ── */
.ec-btn-proceed {
    margin-top: 1.25rem;
    padding: 0.85rem 1.5rem;
    font-size: 0.92rem;
    border-radius: 12px;
}

/* ── Help Inline ── */
.ec-help-inline {
    margin-top: 0.5rem;
}

.ec-help-inline-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #18181b;
    margin-bottom: 0.75rem;
}

.ec-help-inline-head i {
    font-size: 0.95rem;
    color: #b86d26;
}

.ec-help-inline .ec-help-contacts {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ec-help-inline .ec-help-link {
    flex: 1;
    min-width: 140px;
}

/* ============================================
   Sidebar Components
   ============================================ */

.ec-side-card {
    background: #ffffff;
    border: 1px solid #e8e2d8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.ec-side-head {
    padding: 1.15rem 1.25rem;
    background: #18181b;
    color: #fff;
}

.ec-side-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0.35rem 0 0.45rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.ec-side-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #b86d26;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1rem 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.ec-side-section-title i {
    font-size: 0.85rem;
}

.ec-side-body {
    padding: 1rem 1.25rem;
}

/* ── Package Badge & Rating ── */
.ec-pkg-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    background: #b86d26;
    color: #fff;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
}

.ec-pkg-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
}

.ec-pkg-rating i {
    color: #fbbf24;
    font-size: 0.75rem;
}

.ec-pkg-rating span {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 0.35rem;
    font-size: 0.72rem;
}

/* ── Package Price & Meta ── */
.ec-pkg-price {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e8e2d8;
}

.ec-pkg-amount {
    font-size: 1.45rem;
    font-weight: 800;
    color: #18181b;
    letter-spacing: -0.02em;
}

.ec-pkg-per {
    font-size: 0.75rem;
    color: #6b7280;
}

.ec-pkg-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.ec-pkg-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: #4b5563;
}

.ec-pkg-meta-item i {
    font-size: 0.75rem;
    color: #b86d26;
    width: 16px;
    text-align: center;
}

/* ── What's Included ── */
.ec-included-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.ec-included-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: #4b5563;
}

.ec-included-item i {
    font-size: 0.75rem;
    color: #10b981;
    flex-shrink: 0;
}

/* ── Timeline ── */
.ec-timeline {
    display: flex;
    flex-direction: column;
    position: relative;
}

.ec-timeline-item {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 1rem;
    position: relative;
}

.ec-timeline-item:last-child {
    padding-bottom: 0;
}

.ec-timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: #e8e2d8;
}

.ec-timeline-item:last-child::before {
    display: none;
}

.ec-timeline-item.done::before {
    background: #10b981;
}

.ec-timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #faf7f2;
    border: 2px solid #e8e2d8;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ec-timeline-item.done .ec-timeline-dot {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.ec-timeline-item.active .ec-timeline-dot {
    background: #b86d26;
    border-color: #b86d26;
    color: #fff;
}

.ec-timeline-item:last-child .ec-timeline-dot {
    background: rgba(184, 109, 38, 0.12);
    color: #b86d26;
    border-color: #b86d26;
}

.ec-timeline-content {
    padding-top: 0.35rem;
}

.ec-timeline-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #18181b;
}

.ec-timeline-item:not(.done):not(.active) .ec-timeline-title {
    color: #9ca3af;
}

.ec-timeline-desc {
    font-size: 0.68rem;
    color: #6b7280;
}

.ec-timeline-item.done .ec-timeline-desc { color: #10b981; }
.ec-timeline-item.active .ec-timeline-desc { color: #b86d26; }

/* ── Trust Badges ── */
.ec-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    padding: 1rem 0;
}

.ec-side-card .ec-trust-grid {
    grid-template-columns: 1fr 1fr;
    padding: 1rem 1.25rem;
}

.ec-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.ec-trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #065f46;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.ec-trust-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ── Need Help Card ── */
.ec-help-card {
    text-align: center;
    padding: 1.5rem 1.25rem;
}

.ec-help-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(184, 109, 38, 0.12);
    color: #b86d26;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 0.75rem;
}

.ec-help-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #18181b;
    margin-bottom: 0.25rem;
}

.ec-help-desc {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.ec-help-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ec-help-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #18181b;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid #e8e2d8;
    background: #faf7f2;
    transition: all 0.2s ease;
}

.ec-help-link:hover {
    border-color: #b86d26;
    color: #b86d26;
    background: #ffffff;
}

.ec-help-link i {
    font-size: 0.75rem;
    color: #b86d26;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .ec-layout {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 768px) {
    .ec-shell {
        padding: 1rem;
    }
    .ec-layout {
        grid-template-columns: 1fr;
    }
    .ec-sidebar {
        position: static;
    }
    .ec-summary-grid {
        grid-template-columns: 1fr;
    }
    .ec-footer-grid {
        grid-template-columns: 1fr;
    }
    .ec-form-row {
        grid-template-columns: 1fr;
    }
    .ec-confirm-row {
        grid-template-columns: 1fr;
    }
}
