/* eSIM Numbers Page Specific Styles */

/* Header Styles */
.header-section{
    margin-top: 20px; 
}
.page-header {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.page-header .highlight {
    color: #0070c0;
}

/* Tab Navigation */
.tab-container{
    margin: 20px auto;
}

/* Package Cards */
.packages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 10px auto;
}

.package-card {
    max-width: 300px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.card-top {
    background: #1e88e5;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    width: 100%;
}

.package-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.package-description {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.4;
}

.package-features {
    margin: 24px 0;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: #6b7280;
}

.feature i {
    color: #1e88e5;
    margin-right: 12px;
    width: 20px;
    font-size: 1.1rem;
}

.feature span {
    font-size: 0.95rem;
}

.package-price {
    font-size: 2rem;
    font-weight: 700;
    color: #1e88e5;
    margin: 24px 0 20px 0;
}

.buy-button {
    width: 100%;
    /*max-width: 235px;*/
    background: #1e88e5;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.buy-button:hover {
    background: #1976d2;
}

/* Show More Countries Button */
.show-more-section {
    text-align: center;
    margin: 30px 0;
}

.show-more-btn {
    background: linear-gradient(135deg, #0070c0 0%, #0059a0 100%);
    border: none;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 80, 160, 0.3);
    transition: all 0.3s ease;
}
 
.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 80, 160, 0.4);
}

/* How It Works Section */
.how-it-works-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
}

.how-it-works-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    counter-reset: step-counter;
}

.step-item {
    flex: 1;
    min-width: 350px;
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.step-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0070c0 0%, #0059a0 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 112, 192, 0.3);
}

.step-image {
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.step-image img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    border-radius: 8px;
}

.step-description {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-top: 20px;
}

/* Loading and Error States */
.loading, .error {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
}

.loading {
    color: #0070c0;
}

.error {
    color: #ff4d4f;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        font-size: 1.5rem;
    }
    
    .packages-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .package-card {
        padding: 15px;
    }
    
    .how-it-works-section {
        margin: 40px auto;
        padding: 30px 15px;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .step-item {
        min-width: auto;
        min-height: 400px;
        padding: 25px 15px;
    }
    
    .step-image img {
        height: 280px;
    }
    
    .show-more-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .how-it-works-title {
        font-size: 1.8rem;
    }
    
    .step-description {
        font-size: 1.1rem;
    }
    
    .step-item {
        min-height: 420px;
        padding: 20px 10px;
    }
    
    .step-image img {
        height: 260px;
    }
}

.duration-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.duration-pill {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #e0e7ff;
    background: #f8fafc;
    font-size: 0.88rem;
    cursor: pointer;
    color: #1e293b;
    transition: all 0.15s ease;
}
.duration-pill:hover {
    background: #e0ecff;
    border-color: #bfd2ff;
}
.duration-pill.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}
.packages-empty-hint {
    padding: 24px 12px;
    text-align: center;
    color: #6c757d;
    font-size: 0.95rem;
}

/* provider 显示/展开 的样式 */
.provider-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    max-width: 100%;
    padding-right: 70px;                /* 给右侧按钮留出空间，避免文字压住按钮 */
    word-break: break-word;             /* 长单词也能换行 */
}

.provider-toggle {
    position: absolute;
    top: 6px;
    right: 10px;
    border: none;
    padding: 2px 10px;
    border-radius: 999px;
    background: #ffffff;                /* 白底小 pill，始终可见 */
    color: #0d6efd;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.6);
}
.card-top {
    position: relative;                  /* 让按钮可以绝对定位在右上角 */
    display: flex;
    align-items: flex-start;
}
.provider-toggle:hover {
    background: #e9f3ff;
}

.card-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;      /* ⭐ 让内容整体在卡片里居中 */
}

.provider-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    max-width: 100%;
    padding-right: 70px;          /* 给右上角 More 按钮预留空间 */
    word-break: break-word;
}

/* ⭐ 没有 More 按钮时：去掉右侧 padding + 文本居中 */
.provider-name.provider-center {
    padding-right: 0;
    text-align: center;
    width: 100%;
}

.provider-toggle {
    position: absolute;
    top: 6px;
    right: 10px;
    border: none;
    padding: 2px 10px;
    border-radius: 999px;
    background: #ffffff;
    color: #0d6efd;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.6);
}

/* 头部 hero 卡片 */
.page-hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
    padding: 24px 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 60, 160, 0.08);
    margin-bottom: 24px;
}

.hero-left {
    flex: 1.4;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 260px;
    width: 100%;
    height: auto;
}

.hero-country {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.hero-flag .flag-icon {
    width: 36px;
    height: 24px;
    border-radius: 4px;
}

.hero-title {
    font-size: 1.6rem;
    margin: 0;
    color: #12335a;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: #58708f;
    margin: 4px 0 0 0;
}

.hero-bullets {
    margin: 14px 0 0 0;
    padding-left: 18px;
    color: #4d6685;
    font-size: 0.9rem;
}

.hero-bullets li + li {
    margin-top: 4px;
}

/* 套餐卡附加说明 */
.package-extra-note {
    font-size: 0.8rem;
    color: #6a7c94;
    margin-top: 4px;
    margin-bottom: 10px;
}

.page-hero {
    max-width: 960px;
    margin: 0 auto 24px;
    padding: 20px 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 60, 160, 0.08);
}

.hero-country {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 1.5rem;
    margin: 0;
    color: #12335a;
}

.hero-flag .flag-icon {
    width: 36px;
    height: 24px;
    border-radius: 4px;
}

.hero-bullets {
    margin: 0;
    padding-left: 22px;
    color: #4d6685;
    font-size: 0.92rem;
}

.hero-bullets li + li {
    margin-top: 4px;
}

/* Days pills + sort 下拉同一行 */
.duration-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

/* 原来的 duration-bar 可以保留，只是去掉多余的 margin，如果有的话 */
.duration-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 排序下拉靠右 */
.sort-selector {
    margin-left: auto;
}

/* 小屏幕下，排序下拉放到下面一行右侧 */
@media (max-width: 768px) {
    .duration-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-selector {
        align-self: flex-end;
    }
}

/* --- Packages panel --- */
.packages-panel {
    max-width: 960px;
    margin: 24px auto 40px;
    padding: 20px 24px 8px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 60, 160, 0.06);
}

.packages-title {
    font-size: 1.25rem;
    margin: 0 0 12px;
    color: #12335a;
}

/* 一个天数分组，比如 `1 day`、`3 days` */
.day-section {
    margin-bottom: 18px;
}

.day-section-header {
    font-weight: 600;
    color: #12335a;
    font-size: 0.95rem;
    margin: 8px 0;
}

.day-section-list {
    border-radius: 18px;
    overflow: hidden;
    background: #f9fbff;
}

/* 单条套餐，整条都是点击区域 */
.plan-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.plan-row + .plan-row {
    border-top: 1px solid rgba(179, 196, 231, 0.5);
}

.plan-row:hover {
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 60, 160, 0.08);
    transform: translateY(-1px);
}

.plan-row-left .plan-data {
    font-weight: 500;
    color: #12335a;
}

.plan-row-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-price {
    font-weight: 700;
    color: #0061ff;
}

.plan-arrow i {
    font-size: 0.8rem;
    color: #9cb4dc;
}

/* --- Accordion for days --- */

.packages-accordion {
    max-width: 960px;
    margin: 0 auto;
}

/* 每个天数一块 */
.day-accordion + .day-accordion {
    margin-top: 10px;
}

.day-accordion-header {
    width: 100%;
    border: none;
    background: #f5f8ff;
    padding: 12px 16px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #12335a;
    font-size: 0.95rem;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.day-accordion-header:hover {
    background: #eef3ff;
}

.day-accordion-header.is-open {
    background: #ffffff;
    border: 1px solid #0D6EFD;
    box-shadow: 0 10px 24px rgba(0, 60, 160, 0.12);
    transform: translateY(-1px);
}

.day-accordion-header .day-chevron i {
    font-size: 0.9rem;
    color: #9cb4dc;
    transition: transform 0.15s ease;
}

.day-accordion-header.is-open .day-chevron i {
    transform: rotate(180deg);
}

/* 展开区域，里面直接放 plan-row */
.day-accordion-body {
    margin-top: 6px;
    border-radius: 16px;
    background: #f7f7f7;
    overflow: hidden;
}

/* Loading / 空状态提示 */
.day-loading-hint,
.packages-empty-hint {
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #6b7da0;
}

/* 调整横条边框，让它在折叠体内看起来像一组 */
.plan-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.plan-row + .plan-row {
    border-top: 1px solid rgba(179, 196, 231, 0.6);
}

.plan-row:hover {
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 60, 160, 0.10);
    transform: translateY(-1px);
}

.plan-row-left .plan-data {
    font-weight: 500;
    color: #12335a;
}

.plan-row-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-price {
    font-weight: 700;
    color: #0061ff;
}

.plan-arrow i {
    font-size: 0.8rem;
    color: #9cb4dc;
}

