/* Modern Refund Policy Styles */
#refund-policy {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    min-height: 100vh;
}

#refund-policy .p-relative {
    overflow-x: hidden;
    position: relative;
}

#refund-policy .decor {
    top: 10%;
    right: 20%;
    opacity: 0.6;
}

/* Hero Section */
.policy-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 25px 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-title {
    font-size: 3.5rem;
    font-family: ClashDisplayBold;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.policy-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 30px;
    font-family: ClashDisplayMedium;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #e8762c, #ff5f08);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: ClashDisplaySemiBold;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(232, 118, 44, 0.3);
    transition: transform 0.3s ease;
}

.hero-badge:hover {
    transform: translateY(-2px);
}

.hero-badge i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Introduction Card */
.policy-intro {
    margin-bottom: 35px;
}

.intro-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(232, 118, 44, 0.1);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8762c, #ff5f08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.card-content h3 {
    font-family: ClashDisplayBold;
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.card-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Policy Sections */
.policy-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.policy-section {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.policy-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.section-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #1a1a1a;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e8762c, #ff5f08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: ClashDisplayBold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.section-header h2 {
    font-family: ClashDisplayBold;
    font-size: 1.8rem;
    margin: 0;
    color: #1a1a1a;
}

.section-content {
    padding: 25px;
}

.section-intro {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
    font-family: ClashDisplayMedium;
}

/* Refund Types Cards */
.refund-types {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}

.refund-card {
    border-radius: 12px;
    padding: 30px;
    border: 2px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.refund-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.refund-card:hover::before {
    opacity: 1;
}

.refund-card.full-refund {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #15803d;
}

.refund-card.partial-refund {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #d97706;
}

.refund-card.no-refund {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #dc2626;
}

.refund-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.refund-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.refund-icon.success {
    background: #22c55e;
    color: white;
}

.refund-icon.warning {
    background: #f59e0b;
    color: white;
}

.refund-icon.danger {
    background: #ef4444;
    color: white;
}

.refund-header h3 {
    font-family: ClashDisplayBold;
    font-size: 1.4rem;
    margin: 0;
    flex: 1;
}

.refund-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: ClashDisplaySemiBold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.refund-badge.success {
    background: #22c55e;
    color: white;
}

.refund-badge.warning {
    background: #f59e0b;
    color: white;
}

.refund-badge.danger {
    background: #ef4444;
    color: white;
}

.refund-content p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.conditions {
    margin: 25px 0;
}

.condition {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid currentColor;
}

.condition h4 {
    font-family: ClashDisplaySemiBold;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.condition ul {
    margin: 0;
    padding-left: 20px;
}

.condition li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.example-box {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid #3b82f6;
}

.example-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #3b82f6;
    font-family: ClashDisplaySemiBold;
    font-size: 0.95rem;
}

.example-box p {
    margin: 0;
    font-style: italic;
    color: #555;
    line-height: 1.5;
}

/* Important Notice */
.important-notice {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.notice-icon {
    width: 50px;
    height: 50px;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notice-content h4 {
    font-family: ClashDisplayBold;
    font-size: 1.2rem;
    color: #92400e;
    margin-bottom: 12px;
}

.notice-content p {
    color: #92400e;
    line-height: 1.6;
    margin: 0;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.step:hover {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    transform: translateX(5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e8762c, #ff5f08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: ClashDisplayBold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-family: ClashDisplayBold;
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.step-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Policy Update Notice */
.policy-update-notice {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border: 2px solid #8b5cf6;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.update-icon {
    width: 50px;
    height: 50px;
    background: #8b5cf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.update-content p {
    color: #5b21b6;
    line-height: 1.6;
    margin: 0;
}

/* Enhanced Responsive Design */
@media screen and (max-width: 992px) {
    .refund-types {
        grid-template-columns: 1fr;
    }

    .policy-sections {
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    #refund-policy {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .policy-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .policy-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .hero-badge {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .intro-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        margin: 0 15px;
    }

    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .policy-sections {
        gap: 20px;
        margin: 0 15px;
    }

    .section-header {
        padding: 18px 15px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-content {
        padding: 20px 15px;
    }

    .refund-card {
        padding: 25px 20px;
        margin: 0 5px;
    }

    .refund-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .refund-header h3 {
        text-align: center;
    }

    .conditions {
        margin: 20px 0;
    }

    .condition {
        padding: 15px;
        margin-bottom: 12px;
    }

    .step {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        gap: 15px;
    }

    .important-notice,
    .policy-update-notice {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        gap: 15px;
    }

    .example-box {
        padding: 15px;
        margin-top: 15px;
    }

    /* Disable hover effects on mobile */
    .refund-card:hover,
    .policy-section:hover,
    .step:hover {
        transform: none;
    }

    .section-number:hover {
        transform: none;
    }
}

@media screen and (max-width: 480px) {
    #refund-policy {
        padding-top: 90px;
    }

    .policy-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .policy-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-badge {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .intro-card {
        padding: 20px 15px;
        margin: 0 10px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .card-content h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .policy-sections {
        margin: 0 10px;
        gap: 15px;
    }

    .section-header {
        padding: 15px 12px;
    }

    .section-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .section-content {
        padding: 18px 12px;
    }

    .section-intro {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .refund-card {
        padding: 20px 15px;
        margin: 0;
    }

    .refund-icon,
    .notice-icon,
    .update-icon,
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .refund-header h3 {
        font-size: 1.2rem;
    }

    .refund-badge {
        padding: 4px 12px;
        font-size: 0.8rem;
    }

    .condition {
        padding: 12px;
    }

    .condition h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .step {
        padding: 15px 12px;
    }

    .step-content h4 {
        font-size: 1.1rem;
    }

    .important-notice,
    .policy-update-notice {
        padding: 15px 12px;
    }

    .notice-content h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .example-box {
        padding: 12px;
    }

    .example-header {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
}

/* Extra small devices */
@media screen and (max-width: 360px) {
    .policy-title {
        font-size: 1.8rem;
    }

    .intro-card,
    .policy-sections {
        margin: 0 5px;
    }

    .section-header,
    .section-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .refund-card {
        padding: 15px 12px;
    }

    .hero-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .section-number,
    .important-notice,
    .policy-update-notice {
        cursor: default;
    }

    /* Increase touch targets */
    .section-number {
        min-width: 44px;
        min-height: 44px;
    }

    /* Remove hover effects on touch devices */
    .refund-card:hover,
    .policy-section:hover,
    .step:hover,
    .intro-card:hover,
    .important-notice:hover,
    .policy-update-notice:hover,
    .section-number:hover {
        transform: none;
        box-shadow: inherit;
    }
}

/* Additional Interactive Enhancements */
.policy-section {
    cursor: default;
}

.section-number {
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-number:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(232, 118, 44, 0.4);
}

.refund-card {
    cursor: default;
    will-change: transform;
}

.important-notice,
.policy-update-notice {
    cursor: pointer;
    transition: all 0.3s ease;
}

.important-notice:hover,
.policy-update-notice:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.section-number:focus,
.important-notice:focus,
.policy-update-notice:focus {
    outline: 3px solid #e8762c;
    outline-offset: 2px;
}

/* Loading animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.policy-section.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* Pulse animation for interactive elements */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(232, 118, 44, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(232, 118, 44, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(232, 118, 44, 0);
    }
}

/* Enhanced gradient animations */
.hero-badge,
.section-number,
.refund-icon,
.step-number {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Improved text selection */
::selection {
    background: rgba(232, 118, 44, 0.2);
    color: #1a1a1a;
}

::-moz-selection {
    background: rgba(232, 118, 44, 0.2);
    color: #1a1a1a;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e8762c, #ff5f08);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(232, 118, 44, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232, 118, 44, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

@media screen and (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}