/* Modern Refund Page Styles */
:root {
    /* Import existing variables from shop.css */
    --primary: #8B4513;
    --primary-light: #A0522D;
    --primary-dark: #654321;
    --secondary: #D2691E;
    --accent: #CD853F;
    --background: #FAF9F6;
    --surface: #FFFFFF;
    --text-primary: #2C1810;
    --text-secondary: #6B5B73;
    --text-muted: #8B7D8B;
    --border: #E5E0DB;
    --brown-50: #FAF9F6;
    --brown-100: #F5F0EB;
    --brown-200: #E5E0DB;
    --brown-300: #D4C4B0;
    --brown-400: #C4A484;
    --brown-500: #B8946F;
    --brown-600: #A67C52;
    --brown-700: #8B5A2B;
    --brown-800: #6B4423;
    --brown-900: #4A2C17;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* Refund Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

/* Refund Hero Section */
.refund-hero {
    text-align: center;
    padding: var(--space-3xl) var(--space-2xl);
    margin: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.refund-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="refund" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23A0522D" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23refund)"/></svg>');
    opacity: 0.3;
}

.refund-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-md) 0;
    position: relative;
    z-index: 2;
}

.refund-hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.refund-hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    margin: 0;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

.refund-hero .last-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
    position: relative;
    z-index: 2;
}

/* Refund Content Layout */
.refund-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-3xl);
    margin: var(--space-3xl) 0;
    align-items: start;
}

/* Table of Contents */
.refund-toc {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: sticky;
    top: var(--space-xl);
    max-height: calc(100vh - var(--space-2xl));
    overflow-y: auto;
}

.refund-toc h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-lg) 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.refund-toc h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.refund-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.refund-toc li {
    margin-bottom: var(--space-sm);
}

.refund-toc a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    font-size: 0.9rem;
    line-height: 1.4;
}

.refund-toc a:hover {
    background: var(--brown-50);
    color: var(--primary);
    transform: translateX(4px);
}

.refund-toc a.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

/* Refund Sections */
.refund-sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.refund-section {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.refund-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.refund-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-lg) 0;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.refund-section h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--primary);
    border-radius: 2px;
}

.refund-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--space-xl) 0 var(--space-md) 0;
}

.refund-section h3:first-child {
    margin-top: 0;
}

.refund-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--space-lg) 0 var(--space-sm) 0;
}

.refund-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0 0 var(--space-lg) 0;
}

.refund-section ul,
.refund-section ol {
    margin: 0 0 var(--space-lg) 0;
    padding-left: var(--space-xl);
}

.refund-section li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.refund-section strong {
    font-weight: 600;
    color: var(--text-primary);
}

.refund-section em {
    font-style: italic;
    color: var(--text-secondary);
}

/* Contact Information */
.refund-contact {
    background: var(--brown-50);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    border: 1px solid var(--brown-200);
}

.refund-contact h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-md) 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.refund-contact h4::before {
    content: '📧';
    font-size: 1.1rem;
}

.refund-contact p {
    margin: 0 0 var(--space-sm) 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.refund-contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.refund-contact a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Highlight Boxes */
.refund-highlight {
    background: var(--brown-50);
    border-left: 4px solid var(--primary);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.refund-highlight p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Warning Boxes */
.refund-warning {
    background: var(--warning);
    color: white;
    border-left: 4px solid var(--warning);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.refund-warning p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Success Boxes */
.refund-success {
    background: var(--success);
    color: white;
    border-left: 4px solid var(--success);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.refund-success p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Process Steps */
.refund-process {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.refund-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--brown-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--brown-200);
    position: relative;
}

.refund-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.refund-step-number {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.refund-step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm) 0;
}

.refund-step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Refund Table */
.refund-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.refund-table th,
.refund-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.refund-table th {
    background: var(--brown-50);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.refund-table td {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.refund-table tr:last-child td {
    border-bottom: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Animations */
.refund-hero,
.refund-toc,
.refund-sections {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.refund-section {
    animation: slideInUp 0.6s ease-out;
}

.refund-section:nth-child(1) { animation-delay: 0.1s; }
.refund-section:nth-child(2) { animation-delay: 0.2s; }
.refund-section:nth-child(3) { animation-delay: 0.3s; }
.refund-section:nth-child(4) { animation-delay: 0.4s; }
.refund-section:nth-child(5) { animation-delay: 0.5s; }
.refund-section:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .refund-content {
        grid-template-columns: 250px 1fr;
        gap: var(--space-2xl);
    }
    
    .refund-toc {
        padding: var(--space-lg);
    }
    
    .refund-section {
        padding: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .container {
        padding: var(--space-xl) var(--space-sm);
    }
    
    .refund-hero {
        padding: var(--space-xl) var(--space-md);
        margin: var(--space-lg) 0;
    }
    
    .refund-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .refund-toc {
        position: static;
        max-height: none;
        order: 2;
    }
    
    .refund-sections {
        order: 1;
    }
    
    .refund-section {
        padding: var(--space-lg);
    }
    
    .refund-section h2 {
        font-size: 1.5rem;
    }
    
    .refund-section h3 {
        font-size: 1.2rem;
    }
    
    .refund-table {
        font-size: 0.85rem;
    }
    
    .refund-table th,
    .refund-table td {
        padding: var(--space-sm);
    }
    
    .refund-step {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .back-to-top {
        bottom: var(--space-md);
        right: var(--space-md);
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--space-lg) var(--space-xs);
    }
    
    .refund-hero {
        padding: var(--space-lg) var(--space-sm);
    }
    
    .refund-toc {
        padding: var(--space-md);
    }
    
    .refund-section {
        padding: var(--space-md);
    }
    
    .refund-section h2 {
        font-size: 1.3rem;
    }
    
    .refund-section h3 {
        font-size: 1.1rem;
    }
    
    .refund-section h4 {
        font-size: 1rem;
    }
    
    .refund-section p {
        font-size: 0.9rem;
    }
    
    .refund-section li {
        font-size: 0.9rem;
    }
    
    .refund-table {
        font-size: 0.8rem;
    }
    
    .refund-table th,
    .refund-table td {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .refund-contact {
        padding: var(--space-md);
    }
    
    .refund-highlight,
    .refund-warning,
    .refund-success {
        padding: var(--space-md);
    }
    
    .refund-step {
        padding: var(--space-md);
    }
    
    .refund-step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .back-to-top {
        bottom: var(--space-sm);
        right: var(--space-sm);
        width: 40px;
        height: 40px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
.refund-toc a:focus,
.back-to-top:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .refund-toc,
    .refund-section,
    .refund-contact,
    .refund-highlight,
    .refund-warning,
    .refund-success,
    .refund-step {
        border: 2px solid currentColor;
    }
    
    .back-to-top {
        border: 2px solid currentColor;
    }
}
