/* ============================================================
   AlphaTelecom — Inner Pages & Components CSS
   Load AFTER alpha-ui.css
   ============================================================ */

/* ============ Contact Page ============ */
.contact-page { padding: 20px 0 40px; }
.contact-header { text-align: center; margin-bottom: 40px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; align-items: start; }

.contact-info {
    background: linear-gradient(135deg, var(--brand), #416FB6);
    color: #fff; padding: 32px 28px; border-radius: 20px;
}
.contact-info h3 { font-size: 20px; font-weight: 800; margin-bottom: 12px; color: #fff; }
.contact-info > p { color: rgba(255,255,255,.85); font-size: 14px; margin-bottom: 24px; }
.contact-details li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.contact-details li:last-child { border-bottom: 0; }
.contact-details .icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: rgba(255,255,255,.15); display: grid; place-items: center; flex: none;
}
.contact-details b { display: block; font-size: 12px; opacity: .8; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.contact-details a, .contact-details span { color: #fff; font-size: 14px; font-weight: 600; }
.contact-details a:hover { text-decoration: underline; }

.contact-form-wrap {
    background: #fff; border: 1px solid var(--line);
    border-radius: 20px; padding: 32px;
}
.contact-form-wrap .form-note {
    text-align: right; font-size: 12px;
    color: var(--muted); margin-bottom: 20px;
}
.contact-form-wrap .form-group { margin-bottom: 18px; }
.contact-form-wrap label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.contact-form-wrap .input {
    width: 100%; border: 1px solid var(--line); border-radius: 12px;
    padding: 13px 16px; font: inherit; font-size: 15px;
    background: #fff; color: var(--ink);
    transition: border-color .15s;
}
.contact-form-wrap .input:focus { border-color: var(--brand); outline: 0; }
.contact-form-wrap .input.textarea { min-height: 150px; resize: vertical; font-family: inherit; }
.contact-form-wrap .btn {
    background: var(--brand); color: #fff; border: 0;
    border-radius: 12px; padding: 14px 28px;
    font-weight: 700; font-size: 15px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
}
.contact-form-wrap .btn:hover { background: var(--brand-2); }
.contact-form-wrap .rq { color: var(--red); }
.contact-form-wrap .input-value {
    display: block; padding: 13px 16px;
    background: #f5f6fa; border-radius: 10px;
    font-weight: 600; font-size: 15px;
}
.contact-form-wrap .msg-status { margin-bottom: 16px; }
.contact-form-wrap .error { background: #ffdede; color: #c23030; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.contact-form-wrap .success { background: #dcf7ea; color: #0d8a52; padding: 12px 16px; border-radius: 10px; font-size: 14px; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .contact-form-wrap { padding: 22px; } }

/* ============ Download / App Page ============ */
.download-page { padding: 20px 0 40px; }
.download-page .intro { text-align: center; margin-bottom: 40px; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.app-card {
    display: flex; gap: 22px; align-items: center;
    background: #fff; border: 1px solid var(--line);
    border-radius: 20px; padding: 26px;
}
.app-qr img { border-radius: 12px; }
.app-desc h2 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.app-desc h2 .fa-android { color: #3ddc84; }
.app-desc h2 .fa-apple { color: #111; }
.app-desc p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.app-preview { text-align: center; margin-top: 40px; }
@media (max-width: 900px) { .app-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .app-card { flex-direction: column; text-align: center; } }

/* ============ Auth (Login/Register) ============ */
.auth-page { padding: 20px 0 40px; }
.auth-notice {
    display: flex; gap: 16px; align-items: center;
    background: var(--brand-soft); border: 1px solid rgba(26,79,212,.2);
    border-radius: 16px; padding: 18px 22px; margin-bottom: 26px;
}
.auth-notice .fa { font-size: 26px; color: var(--brand); }
.auth-notice h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.auth-notice p { font-size: 14px; color: var(--muted); }
.auth-notice a { color: var(--brand); font-weight: 700; }
.auth-frame iframe { width: 100%; min-height: 720px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 8px 30px -20px rgba(0,0,0,.15); }

/* ============ Ticket / Planscart ============ */
.ticket-page { padding: 20px 0 40px; text-align: center; }
.ticket-header { margin-bottom: 30px; }
.planscart-page { padding: 20px 0 40px; }

/* ============ Top Up ============ */
.topup-page { padding: 20px 0 40px; }
.topup-header { text-align: center; margin-bottom: 40px; }
.topup-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.topup-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: 20px; padding: 28px 24px; position: relative;
}
.topup-num {
    position: absolute; top: -16px; left: 24px;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--brand); color: #fff;
    display: grid; place-items: center;
    font-weight: 800; font-size: 18px;
}
.topup-card h3 { font-size: 19px; font-weight: 800; margin: 12px 0 16px; }
.topup-img { margin-bottom: 16px; }
.topup-img img { max-height: 40px; }
.topup-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.topup-card p strong { color: var(--ink); }
.topup-promise {
    display: flex; align-items: center; justify-content: center;
    gap: 20px; margin-top: 40px; padding: 22px;
    background: var(--bg-soft); border-radius: 16px;
    font-size: 14px; color: var(--muted);
}
@media (max-width: 900px) { .topup-methods { grid-template-columns: 1fr; } }

/* ============ Bundles ============ */
.bundles-page { padding: 20px 0 40px; }
.bundles-header { text-align: center; margin-bottom: 40px; }
.bundles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bundle-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: 18px; padding: 26px 20px; text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.bundle-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px -20px rgba(26,79,212,.4); }
.bundle-flag {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--brand-soft); display: grid; place-items: center;
    margin: 0 auto 16px;
}
.bundle-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.bundle-card .package-name { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bundle-card .minutes { display: block; font-size: 13px; color: var(--brand); font-weight: 700; margin: 10px 0; }
.bundle-price { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.bundle-price b { display: block; font-size: 28px; color: var(--ink); font-weight: 800; margin-top: 4px; }
.bundles-footer { text-align: center; margin-top: 40px; }
@media (max-width: 1000px) { .bundles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bundles-grid { grid-template-columns: 1fr; } }

/* ============ Refer Friends ============ */
.refer-page { padding: 20px 0 40px; }
.refer-hero { text-align: center; margin-bottom: 40px; }
.refer-share {
    background: #fff; border: 1px solid var(--line);
    border-radius: 20px; padding: 30px; text-align: center;
    max-width: 720px; margin: 0 auto 40px;
}
.refer-share h3 { font-size: 18px; font-weight: 800; margin-bottom: 20px; }
.refer-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.share-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px;
    font-weight: 700; font-size: 14px; color: #fff;
}
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.mail { background: var(--brand); }
.share-btn:hover { opacity: .9; transform: translateY(-1px); }
.refer-how { max-width: 900px; margin: 0 auto; }
.refer-how h3 { font-size: 20px; font-weight: 800; text-align: center; margin-bottom: 26px; }
.refer-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.refer-step {
    background: #fff; border: 1px solid var(--line);
    border-radius: 16px; padding: 26px 22px; text-align: center;
}
.refer-step .step-circle {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--brand); color: #fff;
    display: grid; place-items: center;
    font-weight: 800; font-size: 18px; margin: 0 auto 16px;
}
.refer-step b { display: block; font-size: 15px; margin-bottom: 8px; }
.refer-step p { font-size: 13px; color: var(--muted); line-height: 1.55; }
@media (max-width: 640px) { .refer-steps { grid-template-columns: 1fr; } }

/* ============ Plans Page ============ */
.plans-page { padding: 20px 0 40px; }
.plans-header { margin-bottom: 40px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 10px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--brand); font-weight: 600; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 10px; color: #ccc; }
.breadcrumb .active { color: var(--ink); font-weight: 700; }
.plan-info {
        background: linear-gradient(135deg, var(--brand-soft), #fff);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 3px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
    padding-left: 10px;
}
.country-info .flag-icon { font-size: 46px; margin-right: 14px; vertical-align: middle; }
.country-info p { display: inline; font-size: 16px; color: var(--muted); }
.country-info strong { color: var(--ink); font-size: 18px; }
.start-rate { display: block; font-size: 22px; font-weight: 800; color: var(--brand); margin-top: 10px; }
.plans-section-head { margin: 40px 0 24px; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-item {
    background: #fff; border: 1px solid var(--line);
    border-radius: 18px; padding: 24px; transition: transform .2s, box-shadow .2s;
}
.plan-item:hover { transform: translateY(-4px); box-shadow: 0 14px 40px -20px rgba(26,79,212,.35); }
.plan-head { margin-bottom: 16px; }
.plan-title { font-size: 15px; font-weight: 800; color: var(--ink); }
.stars { color: #f5a524; font-size: 12px; margin: 6px 0; }
.plan-name { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.plan-details { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-offer { font-size: 12px; color: var(--green); font-weight: 700; margin-bottom: 8px; }
.plan-minutes { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.plan-amount { font-size: 13px; color: var(--muted); }
.plan-amount strong { color: var(--brand); font-size: 20px; }
.plan-item .action { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.network-type-ico .fa { color: var(--brand); margin-right: 6px; }
.add-cart {
    background: var(--brand); color: #fff; padding: 10px 18px;
    border-radius: 999px; font-weight: 700; font-size: 13px;
}
.add-cart:hover { background: var(--brand-2); }
.plans-footer { margin-top: 40px; padding: 20px; background: var(--bg-soft); border-radius: 16px; }
.alert-note { font-size: 13px; color: var(--muted); line-height: 1.7; }
.alert-note strong { color: var(--ink); }
@media (max-width: 900px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } .plan-info { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .plans-grid { grid-template-columns: 1fr; } }

/* ============ Package Page ============ */
.package-page { padding: 20px 0 40px; }
.package-header { text-align: center; margin-bottom: 40px; }
.package-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.package-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: 20px; overflow: hidden;
}
.package-card-head {
    background: linear-gradient(135deg, var(--brand), #5b3fd1);
    color: #fff; padding: 22px 26px;
}
.package-card-head h2 { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.package-card-head p { font-size: 13px; opacity: .85; }
.package-card-body { padding: 20px 26px; }
.package-card-body table { width: 100%; }
.package-card-body table td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.package-card-body table tr:last-child td { border-bottom: 0; }
.package-card-body .plan { display: flex; gap: 12px; align-items: center; }
.package-card-body .flag-icon { font-size: 28px; }
.package-card-body .cname { font-weight: 700; font-size: 15px; }
.package-card-body .plan-info span { font-size: 12px; color: var(--muted); }
.package-card-body .price { color: var(--brand); font-weight: 800; }
.package-card-body .signup-btn {
       background: var(--brand) !important;
    color: #fff !important;
    padding: 6px 16px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    border: 0 !important;
    text-decoration: none !important;
}
.package-card-foot { padding: 16px 26px; background: var(--bg-soft); text-align: center; }
.package-card-foot a { color: var(--brand); font-weight: 700; font-size: 14px; }
@media (max-width: 900px) { .package-grid { grid-template-columns: 1fr; } }

/* ============ Home: How it works / middle ============ */
.how-it-works .steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.how-it-works .service-col {
    background: #fff; border: 1px solid var(--line);
    border-radius: 18px; padding: 28px 24px; text-align: center;
}
.how-it-works .step-circle {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand);
    display: grid; place-items: center;
    font-weight: 800; font-size: 13px; margin: 0 auto 20px;
    text-transform: uppercase; letter-spacing: .04em;
}
.how-it-works .btn-m { margin-bottom: 16px; }
.how-it-works .desc p { font-size: 14px; color: var(--muted); }
.how-it-works .higlight { color: var(--brand); font-weight: 800; }
@media (max-width: 900px) { .how-it-works .steps-3 { grid-template-columns: 1fr; } }

.middle-section .special-portlet {
    background: #fff; border: 1px solid var(--line);
    border-radius: 18px; padding: 22px;
}
.middle-section .special-portlet table { width: 100%; }
.middle-section .special-portlet td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.middle-section .special-portlet tr:last-child td { border-bottom: 0; }
.middle-section .plan { display: flex; gap: 12px; align-items: center; }
.middle-section .flag-icon { font-size: 28px; }
.middle-section .cname { font-weight: 700; font-size: 15px; }
.middle-section .plan-info span { font-size: 12px; color: var(--muted); }
.middle-section .price { color: var(--brand); font-weight: 800; }
.middle-section .signup-btn {
    background: var(--brand); color: #fff;
    padding: 8px 16px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 6px;
}
.middle-section .portlet-footer { text-align: center; padding-top: 16px; }
.middle-section .portlet-footer a { color: var(--brand); font-weight: 700; font-size: 13px; }
@media (max-width: 900px) { .middle-section .service { grid-template-columns: 1fr !important; } }

/* ============ Wide banner (home) ============ */
.wide-banner-home { padding: 60px 0; background: var(--bg-soft); }
.wide-banner-home .special-portlet {
    max-width: 100%; margin: 0 auto;
    background: #fff; border: 1px solid var(--line);
    border-radius: 20px; padding: 30px;
}
.wide-banner-home table { width: 100%; }
.wide-banner-home td { padding: 14px 0; border-bottom: 1px solid var(--line); }
.wide-banner-home tr:last-child td { border-bottom: 0; }
.wide-banner-home .plan { display: flex; gap: 12px; align-items: center; }
.wide-banner-home .flag-icon { font-size: 28px; }
.wide-banner-home .cname { font-weight: 700; font-size: 15px; }
.wide-banner-home .plan-info span { font-size: 12px; color: var(--muted); }
.wide-banner-home .price { color: var(--brand); font-weight: 800; }
.wide-banner-home .signup-btn {
    background: var(--brand); color: #fff;
    padding: 8px 16px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 6px;
}

/* ============ Rates Page ============ */
.rates-page { padding: 20px 0 40px; }
.rates-hero { text-align: center; margin-bottom: 40px; }
.rates-nav { display: grid; gap: 30px; }

.alpha-nav {
    background: #fff; border: 1px solid var(--line);
    border-radius: 16px; padding: 14px 18px;
    overflow-x: auto;
}
.alpha-nav .index {
    display: flex; flex-wrap: nowrap; gap: 4px; min-width: max-content;
}
.alpha-nav .index li a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    font-size: 13px; font-weight: 700; color: var(--muted);
    text-transform: uppercase; transition: all .15s;
}
.alpha-nav .index li a:hover {
    background: var(--brand-soft); color: var(--brand);
}

.body-nav { display: grid; gap: 24px; }

.rate-selector {
    background: #fff; border: 1px solid var(--line);
    border-radius: 16px; padding: 22px;
}
.rate-selector h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.select-wrap { position: relative; }
.select-wrap select {
    width: 100%; appearance: none;
    border: 1px solid var(--line); border-radius: 12px;
    padding: 14px 40px 14px 16px; font: inherit; font-weight: 700;
    font-size: 15px; background: #fff; color: var(--ink);
}
.select-wrap select:focus { border-color: var(--brand); outline: 0; }
.select-wrap .fa {
    position: absolute; right: 16px; top: 50%;
    transform: translateY(-50%); pointer-events: none;
    color: #999;
}

.rates-result {
    background: linear-gradient(135deg, var(--brand-soft), #fff);
    border: 1px solid var(--line); border-radius: 20px;
    padding: 26px; text-align: center;
}
.rates-result h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.rates-result .flag { font-size: 48px; margin-bottom: 16px; }
.rates-result table {
    width: 100%; max-width: 480px; margin: 0 auto;
    background: #fff; border-radius: 14px; overflow: hidden;
    border-collapse: collapse;
}
.rates-result table thead th {
    background: #f7f8fb; padding: 14px;
    font-size: 13px; font-weight: 800; color: var(--muted);
    text-transform: uppercase; letter-spacing: .04em;
}
.rates-result table td {
    padding: 18px 14px; font-size: 18px; font-weight: 800;
    color: var(--brand); border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
    .rate-selector { padding: 18px; }
    .rates-result { padding: 20px 14px; }
}