/* Refund Policy Page Styles */

/* Hero Section - Blue Theme */
.refund-hero {
    background: linear-gradient(135deg, #004BB8 0%, #003a91 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-3xl);
}

.refund-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.refund-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
                linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
}

.refund-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.refund-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: 50px;
    margin-bottom: var(--spacing-xl);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.refund-hero__badge svg {
    width: 20px;
    height: 20px;
    color: white;
}

.refund-hero__title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
    color: white;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.refund-hero__description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-2xl);
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    color: #ffffff
}

.refund-hero__meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.95;
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.meta-item svg {
    width: 16px;
    height: 16px;
    color: white;
}

/* Refund Content Section */
.refund-content {
    padding: var(--spacing-4xl) 0;
    background: var(--background);
    margin-bottom: 6rem; /* Increased spacing before CTA section */
}

.refund-content__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

/* Sidebar */
.refund-sidebar {
    position: sticky;
    top: 100px;
}

.refund-toc {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.refund-toc h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
}

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

.toc-list li {
    margin-bottom: var(--spacing-sm);
}

.toc-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.toc-link:hover {
    background: var(--background-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    transform: translateX(4px);
}

.toc-link.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.toc-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Main Content */
.refund-main {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-3xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.refund-main:focus {
    outline: none;
}

.refund-section {
    margin-bottom: var(--spacing-3xl);
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--border-light);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.refund-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.refund-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    position: relative;
    padding-left: 0;
}

.section-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--spacing-xl) 0 var(--spacing-md);
    position: relative;
    padding-left: var(--spacing-md);
}

.section-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--spacing-lg) 0 var(--spacing-sm);
}

.section-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.section-content ul {
    margin: var(--spacing-lg) 0;
    padding-left: 0;
    list-style: none;
}

.section-content ul li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-left: var(--spacing-xl);
}

.section-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.section-content ul li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Quality Assurance Features */
.quality-assurance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.qa-feature {
    background: var(--background-light);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.qa-feature.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.qa-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.qa-feature__icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.qa-feature__icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.qa-feature h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.qa-feature p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Process Steps */
.process-steps {
    display: grid;
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.process-step {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    padding: var(--spacing-lg);
    background: var(--background-light);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-sm) 0;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Timeline Features */
.timeline-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.timeline-feature {
    background: var(--background-light);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.timeline-feature.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.timeline-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.timeline-feature__icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.timeline-feature__icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.timeline-feature h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.timeline-feature p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Shipping Scenarios */
.shipping-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.shipping-scenario {
    background: var(--background-light);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
}

.shipping-scenario h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
}

/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.contact-method {
    background: var(--background-light);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

.contact-method.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.contact-method:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.contact-method__icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.contact-method__icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-method__content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.contact-method__content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Refund Page CTA Section - Blue Theme Override */
.refund-page .cta {
    background: linear-gradient(135deg, #004BB8 0%, #0056d6 50%, #0067f0 100%);
    margin-top: 4rem; /* Additional top margin for proper spacing */
}

.refund-page .cta__actions .btn--primary {
    background: #ffffff;
    color: #004BB8;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.refund-page .cta__actions .btn--primary:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: #004BB8;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.refund-page .cta__actions .btn--outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.refund-page .cta__actions .btn--outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

/* Mobile TOC Toggle */
.toc-toggle {
    display: none;
    width: 100%;
    padding: var(--spacing-md);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: var(--spacing-lg);
    transition: all 0.3s ease;
}

.toc-toggle:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animation for elements entering viewport */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .refund-content__layout {
        grid-template-columns: 240px 1fr;
        gap: var(--spacing-2xl);
    }
    
    .refund-main {
        padding: var(--spacing-2xl);
    }
}

@media (max-width: 768px) {
    .refund-content__layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .refund-content {
        margin-bottom: 4rem; /* Reduced spacing on mobile */
    }
    
    .refund-page .cta {
        margin-top: 2rem; /* Reduced top margin on mobile */
    }
    
    .refund-sidebar {
        position: static;
        order: 2;
    }
    
    .refund-main {
        order: 1;
    }
    
    .toc-hidden {
        display: none;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-content h3 {
        font-size: 1.25rem;
    }
    
    .quality-assurance,
    .timeline-features,
    .shipping-scenarios,
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .refund-hero {
        padding: var(--spacing-2xl) 0;
        min-height: 50vh;
    }
    
    .refund-hero__title {
        font-size: 2.5rem;
    }
    
    .refund-hero__description {
        font-size: 1rem;
    }
    
    .refund-hero__meta {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .refund-section {
        padding: var(--spacing-lg);
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-content h3 {
        font-size: 1.125rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .toc-toggle,
    #cta-placeholder,
    .footer {
        display: none !important;
    }
    
    .refund-content__layout {
        grid-template-columns: 1fr !important;
    }
    
    .refund-sidebar {
        display: none !important;
    }
    
    .refund-section {
        opacity: 1 !important;
        transform: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .section-title {
        color: #000 !important;
        page-break-after: avoid;
    }
}
