/* =====================================
   GLOBAL BASE STYLES
====================================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
    color: #111;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Breadcrumb */
.crumb {
    color: #007bff;
}
.crumb:hover { text-decoration: underline; }
.crumb-active { font-weight: 600; }

/* =====================================
   HERO SECTION (FIXED + RESPONSIVE)
====================================== */
.packages-hero {
    height: 350px;
    background: url('/images/afa-hero.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.packages-hero-overlay { 
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.packages-hero-content {
    position: relative;
    z-index: 5;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    width: 100%;
    max-width: 700px;
}

.packages-hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
}

.packages-hero-content p {
    font-size: 18px;
    line-height: 1.4;
    opacity: 0.9;
}

/* =====================================
   MAIN FLEX LAYOUT
====================================== */
.packages-main {
    display: flex;
    gap: 40px;
    padding: 40px;
}

.package-left { flex: 1; }

.big-image {
    width: 100%;
    height: 420px;
    object-fit: contain;
    border-radius: 12px;
}

/* =====================================
   RIGHT SIDE CONTENT
====================================== */
.package-right { flex: 1.2; }

.bundle-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 10px;
}

.price-range {
    font-size: 22px;
    margin-bottom: 20px;
}

.section-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* =====================================
   SIZE BUTTON GRID
====================================== */
.bundle-size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.size-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.size-btn:hover { background:#f4f4f4; }

.size-btn.active {
    background: black;
    color: white;
    border-color: #000;
}

.size-btn.disabled {
    background: #e8e8e8;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
    opacity: 0.6;
}

/* =====================================
   PRICE BOX
====================================== */
.selected-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e2e2e2;
    padding: 15px 20px;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 20px;
}

#selectedPrice {
    font-size: 22px;
    font-weight: 600;
}

/* =====================================
   PHONE INPUT
====================================== */
.phone-flex {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.phone-flex-input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.error-text {
    color: red;
    font-size: 13px;
    margin-top: 6px;
}

/* =====================================
   NEXT + CLEAR BUTTONS
====================================== */
.next-btn {
    background: black;
    color: white;
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.next-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.clear-btn {
    background: white;
    border: 1px solid red;
    color: red;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 15px;
}
.clear-btn:hover {
    background: red;
    color: white;
}

/* =====================================
   INFO TABS
====================================== */
.info-tabs {
    background: white;
    padding: 30px 40px;
    margin: 20px 40px;
    border-radius: 12px;
}

.tab-header {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 5px;
    font-size: 16px;
    cursor: pointer;
    color: #555;
}

.tab-btn.active {
    border-bottom: 3px solid #007bff;
    color: #007bff;
    font-weight: bold;
}

.tab-content { display: none; }
.tab-content.active { display:block; }

/* FULL BORDER TABLE */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border: 1px solid #ddd;
}

.info-table td {
    padding: 12px 10px;
    border: 1px solid #ddd;
}

/* =====================================
   OUT OF STOCK MODAL
====================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
}

/* =====================================
   RESPONSIVE BREAKPOINTS
====================================== */

/* -------- TABLETS -------- */
@media (max-width: 900px) {

    .packages-main {
        flex-direction: column;
        padding: 20px;
    }

    .big-image { height: 280px; }

    .phone-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .next-btn,
    .clear-btn {
        width: 100%;
    }

    .packages-hero {
        height: 260px;
    }

    .packages-hero-content h1 {
        font-size: 30px;
    }

    .packages-hero-content p {
        font-size: 15px;
    }
}

/* -------- MOBILE -------- */
@media (max-width: 600px) {

    .packages-hero {
        height: 220px;
        padding: 0 10px;
    }

    .packages-hero-content h1 {
        font-size: 24px;
        line-height: 1.25;
    }

    .packages-hero-content p {
        font-size: 14px;
    }

    .big-image { height: 250px; }

    .packages-main { padding: 15px; }
}

/* -------- SMALL MOBILE (iPhone SE, small Android) -------- */
@media (max-width: 400px) {

    .packages-hero {
        height: 190px;
    }

    .packages-hero-content h1 {
        font-size: 20px;
        line-height: 1.2;
    }

    .packages-hero-content p {
        font-size: 12px;
        line-height: 1.3;
    }

    .big-image { height: 200px; }

    .info-tabs {
        margin: 10px;
        padding: 15px;
    }
}


/* EMPTY STATE BOX */
.empty-state {
    text-align: center;
    padding: 45px 25px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-top: 25px;
    animation: fadeUp .4s ease;
}

.empty-icon {
    font-size: 70px;
    color: #b5b5b5;
    margin-bottom: 15px;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.empty-text {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
}

/* BUTTON */
.empty-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #1a73e8;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: .25s ease;
}

.empty-btn i {
    margin-right: 6px;
}

.empty-btn:hover {
    background: #1558b8;
    transform: translateY(-3px);
}

/* ANIMATION */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
