/**
 * Why Choose Page Styles
 */

/* Page Container */
.why-choose-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Preview Bar */
.why-choose-preview-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1e3a5f;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    z-index: 9999;
    font-size: 14px;
}

.why-choose-preview-bar a {
    color: #fff;
    text-decoration: underline;
    margin-left: 10px;
}

/* Hero Section */
.why-choose-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 0;
}

.hero-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.why-choose-hero h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

/* Features Section */
.why-choose-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px; /* Align with title baseline */
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: #10b981;
}

.feature-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.feature-content {
    flex: 1;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px;
    line-height: 1.33; /* ~24px to match icon */
}

.feature-item p,
.feature-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.feature-desc p {
    margin: 0 0 12px;
}

.feature-desc p:last-child {
    margin-bottom: 0;
}

.feature-desc ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.feature-desc li {
    margin-bottom: 4px;
    color: #6b7280;
}

/* Tabs Section */
.why-choose-tabs {
    margin: 40px 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab-btn:hover {
    color: #374151;
}

.tab-btn.active {
    color: #10b981;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #10b981;
    border-radius: 3px 3px 0 0;
}

.tabs-content {
    padding: 24px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Guarantee Cards (Temu-style) */
.guarantee-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.guarantee-card {
    padding: 20px 0;
    border-bottom: 1px solid #f3f4f6;
}

.guarantee-card:last-child {
    border-bottom: none;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.serial-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.card-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
}

.card-desc {
    padding-left: 40px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-top: 8px;
}

.card-desc p {
    margin: 0 0 8px;
}

.card-desc p:last-child {
    margin-bottom: 0;
}

/* Checkmark list items in card-desc */
.card-desc .check-item,
.card-desc ul {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.card-desc li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    padding: 0;
    border: none;
}

.card-desc li::before {
    content: '✓';
    flex-shrink: 0;
    color: #10b981;
    font-weight: 700;
}

/* Payment method images in card-desc */
.card-desc img {
    height: 24px;
    width: auto;
    vertical-align: middle;
    margin: 4px 8px 4px 0;
}

.card-desc .payment-icons,
.card-desc .image-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.card-desc .payment-icons img,
.card-desc .image-wrap img {
    height: 28px;
    width: auto;
    margin: 0;
}

.guarantee-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guarantee-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 15px;
    color: #374151;
}

.guarantee-list li:last-child {
    border-bottom: none;
}

.guarantee-list .item-content {
    flex: 1;
}

.guarantee-list .item-content strong {
    display: block;
    color: #1f2937;
}

.guarantee-list .item-desc {
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.guarantee-list .item-desc p {
    margin: 0 0 8px;
}

.guarantee-list .item-desc p:last-child {
    margin-bottom: 0;
}

.guarantee-list .item-desc ul {
    margin: 8px 0 0;
    padding-left: 20px;
    list-style: disc;
}

.guarantee-list .item-desc li {
    margin-bottom: 4px;
    padding: 0;
    border: none;
}

.check-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.payment-badges .badge {
    padding: 8px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* Support Section */
.why-choose-support {
    text-align: left;
    padding: 24px;
    background: #f9fafb;
    border-radius: 16px;
    margin-top: 24px;
    /* border-top: 1px solid #f3f4f6; Removed to restore card style */
}

.why-choose-support h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px;
}

.why-choose-support p,
.why-choose-support .support-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
    line-height: 1.5;
}

.why-choose-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Gap between icon and text */
    padding: 10px 24px;
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #000;
    border-radius: 99px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.why-choose-support-btn:hover {
    background: #f0fdf4;
    border-color: #10b981;
    color: #10b981;
    transform: translateY(-1px);
}

.why-choose-support-btn svg {
    /* Ensure icon isn't too big relative to text if not overridden by Tailwind classes */
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .why-choose-page {
        padding: 24px 16px 40px;
    }

    .why-choose-hero {
        padding: 16px 0;
    }

    .why-choose-hero h1 {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .hero-icon {
        width: 48px;
        height: 48px;
    }

    .hero-icon svg {
        width: 24px;
        height: 24px;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .tabs-content {
        padding: 16px;
    }
}
