/* =====================================================
   app-download.css — Goibibo Style App Download Section
   ===================================================== */

/* ── Section Wrapper ── */
.app-download-wrapper {
    margin: 24px 0;
}

.app-download-card {
    background: #eee;
    border: 1px solid #e2e2e2;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding: 24px 28px;
    min-height: 160px;
    align-items: center;
}

/* ── Left: Phone Mockup ── */
.app-phone-col {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 160px;
}

.app-phone-circle-bg {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    background: #eef2ff;
    border-radius: 50%;
    z-index: 0;
}

.app-phone-mockup {
    position: relative;
    z-index: 1;
    width: 82px;
    height: 150px;
    background: #111111;
    border-radius: 18px;
    border: 3px solid #222222;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.app-phone-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 6px;
    background: #000000;
    border-radius: 6px;
    z-index: 2;
}

.app-phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #e8f0ff 0%, #f3efff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 22px 7px 10px;
}

.app-phone-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.4);
    margin-bottom: 2px;
}

.app-phone-icon-box img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.app-phone-app-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.38rem;
    color: #333;
    letter-spacing: 0.02em;
}

.app-phone-ui-bar {
    border-radius: 3px;
    height: 4px;
}
.app-phone-ui-bar-1 { width: 60%; background: rgba(0, 0, 0, 0.1); margin-top: 3px; }
.app-phone-ui-bar-2 { width: 44%; background: rgba(0, 0, 0, 0.07); }
.app-phone-ui-bar-3 { width: 52%; background: rgba(0, 0, 0, 0.09); }

.app-phone-ui-btn {
    width: 62%;
    height: 12px;
    background: linear-gradient(90deg, #7c3aed, #3b82f6);
    border-radius: 4px;
    margin-top: 5px;
}

/* ── Middle: Content ── */
.app-content-col {
    padding: 0 32px;
    border-left: 1px solid #efefef;
    border-right: 1px solid #efefef;
}

.app-offer-badge {
    display: inline-block;
    background: #fff3e0;
    color: #e65100;
    font-size: 0.62rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.app-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.18rem;
    color: #1a1a2e;
    line-height: 1.25;
    margin-bottom: 4px;
}

.app-card-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    color: #777777;
    line-height: 1.55;
    margin-bottom: 18px;
}

/* Store Buttons */
.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1.5px solid #d5d5d5;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    min-width: 138px;
}

.app-store-btn:hover {
    border-color: #7c3aed;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.13);
    transform: translateY(-1px);
    color: #111111;
    text-decoration: none;
}

.app-btn-small-text {
    display: block;
    font-size: 0.52rem;
    font-family: 'Poppins', sans-serif;
    color: #999999;
    line-height: 1;
}

.app-btn-big-text {
    display: block;
    font-size: 0.88rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #111111;
    line-height: 1.3;
}

/* ── Right: QR ── */
.app-qr-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 118px;
}

.app-qr-label {
    background: #1a1a2e;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 8px 8px 0 0;
    text-align: center;
    width: 100%;
    white-space: nowrap;
}

.app-qr-image-box {
    border: 1.5px solid #e2e2e2;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 10px;
    background: #ffffff;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-qr-image-box img {
    width: 98px;
    height: 98px;
    border-radius: 6px;
    display: block;
}

.app-qr-sub-hint {
    font-family: 'Poppins', sans-serif;
    font-size: 0.56rem;
    color: #bbbbbb;
    margin-top: 6px;
    text-align: center;
}

/* ── Mobile Floating Bottom Banner ── */
#mobileAppBanner {
    display: none;
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    z-index: 1055;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.10);
    padding: 10px 16px;
    animation: bannerSlideUp 0.35s ease forwards;
  
}

.mobile-banner-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}

.mobile-banner-app-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.3);
}

.mobile-banner-app-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.mobile-banner-info {
    flex: 1;
    min-width: 0;
}

.mobile-banner-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    color: #1a1a2e;
    line-height: 1.2;
}

.mobile-banner-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.62rem;
    color: #888888;
    margin-top: 1px;
}

.mobile-banner-download-btn {
    flex-shrink: 0;
    background: linear-gradient(90deg, #7c3aed, #3b82f6);
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.mobile-banner-download-btn:hover {
    opacity: 0.88;
}

.mobile-banner-close-btn {
    background: none;
    border: none;
    color: #cccccc;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 6px;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s;
}

.mobile-banner-close-btn:hover {
    color: #888888;
}

/* ── Responsive ── */

/* Hide desktop section on phones — banner handles it */
@media (max-width: 767px) {
    .app-download-wrapper {
        display: none;
    }
}

/* Tablet: hide phone mockup, remove side borders */
@media (min-width: 768px) and (max-width: 991px) {
    .app-phone-col {
        display: none !important;
    }
    .app-content-col {
        border-left: none;
        padding-left: 0;
    }
    .app-download-card {
        padding: 20px 24px;
    }
}

/* ── Animation ── */
@keyframes bannerSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}