/* ==========================================================================
   EPC Deals & Bundles Booking Stylesheet
   Crafted to replicate modern SaaS Landlord Deals with Dynamic Discounts
   ========================================================================== */

.epc-deals-page-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 16px 80px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
    box-sizing: border-box;
    line-height: 1.5;
}

.epc-deals-page-wrap *,
.epc-deals-page-wrap *::before,
.epc-deals-page-wrap *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   1. TOP HEADER & STEPPER
   ========================================================================== */
.epc-deals-header {
    margin-bottom: 36px;
}

.epc-deals-main-h1 {
    font-size: 36px;
    font-weight: 850;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.6px;
}

.epc-deals-lead-sub {
    font-size: 15.5px;
    color: #64748b;
    margin: 0 0 28px 0;
}

.epc-deals-stepper-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px auto 36px auto;
}

.epc-deals-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.epc-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    position: relative;
    cursor: default;
}

.epc-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    margin-bottom: 8px;
}

.epc-step-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.epc-step-line {
    flex: 1 1 auto;
    height: 1.5px;
    background: #e2e8f0;
    margin: 0 10px 22px 10px;
    transition: all 0.25s ease;
}

/* Active & Completed Stepper states */
.epc-step-item.is-active .epc-step-circle {
    background: #ffffff;
    border-color: #22c55e;
    color: #16a34a;
    font-weight: 800;
    box-shadow: none;
}

.epc-step-item.is-active .epc-step-label {
    color: #16a34a;
    font-weight: 700;
}

.epc-step-item.is-completed .epc-step-circle {
    background: #22c55e;
    border-color: #22c55e;
    color: #ffffff;
}

.epc-step-item.is-completed .epc-step-label {
    color: #0f172a;
    font-weight: 600;
}

.epc-step-line.is-completed {
    background: #22c55e;
}

/* ==========================================================================
   2. MAIN DUAL-COLUMN GRID LAYOUT
   ========================================================================== */
.epc-deals-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

@media (max-width: 991px) {
    .epc-deals-layout-grid {
        grid-template-columns: 1fr;
    }
}

.epc-deals-main-col {
    min-width: 0;
}

.epc-deals-section-title-wrap {
    margin-bottom: 24px;
}

.epc-deals-h2 {
    font-size: 24px;
    font-weight: 850;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.epc-deals-subtext {
    font-size: 14.5px;
    color: #64748b;
    margin: 0;
}

.epc-deals-group-title {
    font-size: 16px;
    font-weight: 750;
    color: #16a34a;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   3. PACKAGES & SINGLE CARDS
   ========================================================================== */
.epc-deals-packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 640px) {
    .epc-deals-packages-grid {
        grid-template-columns: 1fr;
    }
}

.epc-deals-single-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .epc-deals-single-grid {
        grid-template-columns: 1fr;
    }
}

.epc-deals-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 20px 18px 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.18s ease;
    box-shadow: none;
    user-select: none;
    display: flex;
    flex-direction: column;
}

.epc-deals-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

/* Selected state matching screenshot */
.epc-deals-card.is-selected {
    border: 1.5px solid #22c55e !important;
    background: #fbfdfb !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.1) !important;
}

.epc-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    min-height: 40px;
}

.epc-badge-cluster {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.epc-deals-badge-discount {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 750;
    padding: 3.5px 10px;
    border-radius: 9999px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.2;
}

.epc-deals-badge-discount.epc-badge-15 {
    background: #fed7aa;
    color: #9a3412;
}

.epc-deals-badge-popular {
    display: inline-block;
    background: #22c55e;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3.5px 10px;
    border-radius: 9999px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1.2;
}

.epc-card-price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
    margin-left: auto;
}

.epc-price-prefix {
    font-size: 9.5px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.epc-price-orig {
    font-size: 11.5px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-top: 1px;
}

.epc-price-discounted {
    font-size: 20px;
    font-weight: 850;
    color: #0f172a;
    margin-top: 2px;
}

.epc-card-icon-wrap {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #1e293b;
    margin: 4px 0 10px 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.epc-card-icon-wrap svg {
    width: 24px;
    height: 24px;
    stroke: #1e293b;
    stroke-width: 1.75;
    fill: none;
}

.epc-deals-card.is-selected .epc-card-icon-wrap svg {
    stroke: #0f172a;
}

.epc-card-title {
    font-size: 15.5px;
    font-weight: 750;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.epc-deals-single-card .epc-card-title {
    font-size: 14.5px;
    font-weight: 750;
    color: #0f172a;
    margin: 12px 0 8px 0;
    line-height: 1.35;
    min-height: 40px;
}

.epc-card-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
    flex: 1 1 auto;
}

.epc-card-bullets li {
    font-size: 12px;
    color: #475569;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.epc-bullet-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid #22c55e;
    color: #22c55e;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

/* Radio circle selector at bottom-right */
.epc-deals-radio-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: transparent;
    margin-left: auto;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.epc-deals-card.is-selected .epc-deals-radio-btn {
    border-color: #22c55e;
    background: #22c55e;
}

.epc-deals-card.is-selected .epc-deals-radio-btn::after {
    content: '✓';
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

/* Bottom Action Bar */
.epc-deals-action-bar {
    display: flex;
    justify-content: center;
    margin-top: 36px;
    width: 100%;
}

.epc-deals-btn-continue {
    background: #22c55e;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 12px 42px;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
}

.epc-deals-btn-continue:hover:not(:disabled) {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.epc-deals-btn-continue:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

/* ==========================================================================
   4. STICKY BOOKING SUMMARY (RIGHT COLUMN)
   ========================================================================== */
.epc-deals-sidebar-col {
    position: relative;
}

.epc-deals-summary-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 30px;
}

.epc-summary-h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
}

.epc-summary-group {
    margin-bottom: 12px;
}

.epc-summary-meta-label {
    display: block;
    font-size: 10px;
    font-weight: 750;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.epc-summary-placeholder {
    font-size: 13.5px;
    color: #64748b;
    font-style: italic;
}

.epc-summary-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
    gap: 10px;
}

.epc-summary-item-price {
    font-weight: 750;
    color: #0f172a;
    white-space: nowrap;
}

.epc-summary-datetime-val {
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
}

.epc-summary-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 16px 0;
}

.epc-summary-total-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.epc-summary-total-label {
    font-size: 15.5px;
    font-weight: 750;
    color: #0f172a;
}

.epc-summary-total-val {
    font-size: 26px;
    font-weight: 850;
    color: #16a34a;
}

.epc-deals-savings-pill {
    background: #f0fdf4;
    border: 1px dashed #86efac;
    color: #166534;
    font-size: 12px;
    font-weight: 750;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.epc-deals-trust-notice-box {
    margin-top: 18px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.epc-trust-notice-icon {
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
}

.epc-trust-notice-text {
    font-size: 11.5px;
    color: #166534;
    line-height: 1.45;
    margin: 0;
}

/* ==========================================================================
   5. STEP 2 & 3 FORM CARDS
   ========================================================================== */
.epc-deals-form-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 26px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.epc-deals-field-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .epc-deals-field-grid-2 {
        grid-template-columns: 1fr;
    }
}

.epc-deals-field {
    display: flex;
    flex-direction: column;
}

.epc-deals-field label {
    font-size: 13px;
    font-weight: 750;
    color: #334155;
    margin-bottom: 6px;
}

.epc-deals-input,
.epc-deals-select,
.epc-deals-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.epc-deals-input:focus,
.epc-deals-select:focus,
.epc-deals-textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.epc-deals-postcode-row {
    display: flex;
    gap: 10px;
}

.epc-deals-btn-lookup {
    background: #0f172a;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 13.5px;
    font-weight: 750;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.epc-deals-btn-lookup:hover {
    background: #1e293b;
}

.epc-deals-postcode-status {
    font-size: 12.5px;
    margin-top: 6px;
}

.epc-deals-postcode-status.success {
    color: #16a34a;
    font-weight: 700;
}

.epc-deals-postcode-status.error {
    color: #dc2626;
    font-weight: 700;
}

.epc-deals-radio-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.epc-deals-radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
}

.epc-deals-radio-pill:hover {
    border-color: #22c55e;
    background: #f0fdf4;
}

.epc-deals-radio-pill input[type="radio"]:checked + span {
    color: #16a34a;
}

.epc-deals-nav-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 26px;
}

.epc-deals-btn-back {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #475569 !important;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.epc-deals-btn-back:hover {
    background: #f1f5f9;
    color: #0f172a !important;
}

.epc-deals-btn-submit {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 13px 32px;
    font-size: 15.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.22s ease;
}

.epc-deals-btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.55);
}

.epc-deals-guarantee-strip {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.epc-guarantee-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
}

/* ==========================================================================
   6. ORDER CONFIRMATION / SUCCESS VIEW
   ========================================================================== */
.epc-deals-success-card {
    background: #ffffff;
    border: 1.5px solid #bbf7d0;
    border-radius: 18px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.1);
}

.epc-deals-success-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 36px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.epc-deals-success-card h2 {
    font-size: 26px;
    font-weight: 850;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.epc-deals-success-lead {
    font-size: 15px;
    color: #475569;
    max-width: 580px;
    margin: 0 auto 28px auto;
}

.epc-deals-order-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    max-width: 540px;
    margin: 0 auto 24px auto;
    text-align: left;
}

.epc-order-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14px;
    color: #334155;
}

.epc-order-row-total {
    border-bottom: none;
    padding-top: 12px;
    font-size: 15.5px;
    font-weight: 800;
    color: #0f172a;
}

.epc-conf-total-val {
    color: #16a34a;
    font-size: 20px;
}

.epc-deals-email-notice {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

.epc-deals-btn-call {
    display: inline-block;
    background: #0f172a;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 750;
    transition: all 0.2s;
}

.epc-deals-btn-call:hover {
    background: #1e293b;
    transform: translateY(-1px);
}
