/* Shared styles for content pages (devices, FAQs, what's an eSIM, install guide, contact, profile). */

.page-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 16px 60px;
    font-family: 'Poppins', sans-serif;
    color: #1d2327;
}

@media (min-width: 769px) {
    .page-wrap {
        min-height: calc(100vh - 220px);
    }
}

.page-wrap h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: #008080;
    text-align: center;
    margin: 0 0 8px;
}
.page-lead {
    text-align: center;
    color: #5b6f8e;
    font-size: 16px;
    margin: 0 auto 36px;
    max-width: 640px;
}
.page-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #008080;
    margin: 40px 0 16px;
}
.content-card {
    background: #ffffff;
    border: 1px solid #eef1f7;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 35, 75, 0.06);
    padding: 24px;
    margin-bottom: 20px;
}
.content-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #0b1a33;
}
.content-card p { color: #5b6f8e; font-size: 15px; line-height: 1.65; margin: 0 0 10px; }
.content-card p:last-child { margin-bottom: 0; }
.content-card ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    color: #34455e;
    font-size: 15px;
    line-height: 2;
}
.teal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(165deg, #008181, #006b6b);
    color: #fff;
    font-weight: 600;
    font-size: 14.5px;
    padding: 11px 26px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.teal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 110, 110, 0.3);
    color: #fff;
}

/* Two-column card grid */
.cards-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 700px) {
    .cards-2col { grid-template-columns: 1fr; }
}

/* Numbered steps */
.step-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #008080;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.step-row h4 { margin: 2px 0 4px; font-size: 16px; font-weight: 700; color: #0b1a33; }
.step-row p { margin: 0; color: #5b6f8e; font-size: 14.5px; line-height: 1.6; }

/* FAQ accordion */
.faq-item {
    background: #fff;
    border: 1px solid #eef1f7;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 35, 75, 0.05);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15.5px;
    color: #0b1a33;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "\2b";
    color: #008080;
    font-size: 20px;
    font-weight: 700;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer {
    padding: 0 20px 18px;
    color: #5b6f8e;
    font-size: 14.5px;
    line-height: 1.7;
}

/* Device brand lists */
.device-note {
    background: #e6f5f5;
    border-radius: 10px;
    padding: 10px 14px;
    color: #036672;
    font-size: 13.5px;
    margin-top: 12px;
}

/* Dial code highlight */
.dial-code {
    display: inline-block;
    background: #034f5c;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 8px;
    letter-spacing: normal;
}

/* Contact cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 700px) {
    .contact-grid { grid-template-columns: 1fr; }
}
.contact-card {
    background: #fff;
    border: 1px solid #eef1f7;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(15, 35, 75, 0.05);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(15, 35, 75, 0.1);
}
.contact-card .cc-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e6f5f5;
    color: #008080;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}
.contact-card .cc-label { font-weight: 700; font-size: 15px; color: #0b1a33; }
.contact-card .cc-value { font-size: 13.5px; color: #5b6f8e; }

/* Profile page */
.profile-card {
    background: #fff;
    border: 1px solid #eef1f7;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(15, 35, 75, 0.06);
    padding: 28px;
    max-width: 560px;
    margin: 0 auto 20px;
}
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 2px solid #eef1f7;
    margin-bottom: 18px;
}
.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(165deg, #008181, #006b6b);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.profile-name { font-size: 19px; font-weight: 700; color: #0b1a33; }
.profile-email { font-size: 14px; color: #5b6f8e; }
.profile-links { display: flex; flex-direction: column; gap: 10px; }
.profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid #eef1f7;
    border-radius: 12px;
    text-decoration: none;
    color: #0b1a33;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.profile-link:hover { background: #f0fbfb; border-color: #99cccc; }
.profile-link i { color: #008080; width: 20px; text-align: center; }
.profile-link.danger i { color: #dc2626; }

/* ----- eSIM Guide Container ----- */
.esim-guide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* ----- Device Selector / Toggle Buttons ----- */
.device-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.device-selector .filter-switch {
    display: inline-flex;
    background: white;
    border-radius: 12px;
    padding: 3px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.device-btn {
    all: unset;
    cursor: pointer;
    padding: 8px 34px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 550;
    color: #036672;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.4px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
}

.device-btn.active {
    background: linear-gradient(165deg, #008181, #006b6b);
    color: white;
    box-shadow: 
        0 6px 14px rgba(0, 110, 110, 0.2),
        0 2px 4px rgba(0, 80, 80, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.device-btn:not(.active):hover {
    color: #005f5f;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.device-btn i {
    font-size: 1.2rem;
}

/* ----- Two-Column Guide Layout ----- */
.guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* ----- Steps Container (Left Column) ----- */
.steps-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
}

/* Individual Step */
.step {
    display: flex;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Step Number Circle */
.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #008080;
    min-width: 40px;
    height: 40px;
    background: #e5eded;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Completed Step (checkmark) */
.step-number.step-done {
    background: #008080;
    color: white;
}

/* Step Content */
.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #1e293b;
}

.step-content p {
    color: #64748b;
    line-height: 1.6;
}

/* ----- Visual Guide (Right Column) ----- */
.visual-guide {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Visual Tabs */
.visual-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.visual-tab {
    padding: 8px 15px;
    background: #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.visual-tab.active {
    background: #004c4c;
    color: white;
}

/* Phone Mockup / Device Screen */
.device-screen {
    width: 250px;
    height: 500px;
    background: #004c4c;
    border-radius: 30px;
    padding: 3px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.screen-content {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    padding: 20px;
    overflow-y: auto;
}

.screen-content img {
    width: 120% !important;
    max-width: none !important;
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.screen-content h4 {
    margin: 10px 0 5px;
    color: #1e293b;
}

.screen-content p {
    font-size: 0.85rem;
    color: #64748b;
}

/* Manual Install Button */
.manual-install-btn {
    margin-top: 15px;
    padding: 12px 25px;
    background: #008080;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.manual-install-btn:hover {
    background: #004c4c;
}

/* ----- Device Content Toggle ----- */
.device-content {
    display: none;
}

.device-content.active {
    display: block;
}

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

@media (max-width: 900px) {
    .guide-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .device-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .device-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .device-screen {
        width: 200px;
        height: 400px;
    }
    
    .steps-container {
        padding: 0px;
    }
    
    .step-number {
        min-width: 32px;
        height: 32px;
        font-size: 1.2rem;
        margin-right: 10px;
    }
    
    .step-content h3 {
        font-size: 1rem;
        margin-top: 3px;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
    
    .visual-guide {
        padding: 16px;
    }
    
    .visual-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ----- Legal / policy pages (privacy, terms, refund) ----- */
.policy-updated {
    display: inline-block;
    background: #e6f5f5;
    color: #036672;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 20px;
    margin: 0 auto 28px;
}
.policy-updated-wrap { text-align: center; }
.policy-card ul.bullets {
    list-style: disc;
    padding-left: 22px;
    margin: 10px 0 0;
    line-height: 1.8;
    color: #34455e;
    font-size: 15px;
}
.policy-card ul.bullets li { margin: 4px 0; }
.policy-card ul.bullets li b { color: #0b1a33; }
.policy-note {
    background: #fff8e6;
    border-left: 4px solid #f59e0b;
    padding: 14px 16px;
    border-radius: 8px;
    margin: 16px 0 0;
    color: #7c5b12;
    font-size: 14.5px;
    line-height: 1.65;
}
.policy-note.teal {
    background: #e6f5f5;
    border-left-color: #008080;
    color: #036672;
}
.policy-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
}
.policy-toc a {
    background: #fff;
    border: 1px solid #d7e3e3;
    color: #036672;
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.policy-toc a:hover { background: #008080; color: #fff; border-color: #008080; }
.policy-contact {
    text-align: center;
    background: linear-gradient(165deg, #e9f7f7, #f4fbfb);
    border: 1px solid #d7e3e3;
}
.policy-contact a { color: #008080; font-weight: 600; text-decoration: none; }