/* Terms of Sale Page Specific Styles */

/* Hero Section */
.terms-hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.hero-features .feature-item {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-dark);
}

.hero-features .feature-item i {
    font-size: 1.2rem;
}

/* Terms Content Section */
.terms-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.terms-document {
    border: 1px solid rgba(0,0,0,0.05);
    line-height: 1.8;
}

.document-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2rem;
}

.document-header h2 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.document-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Terms Section Styling */
.terms-section {
    margin-bottom: 3rem;
}

.terms-section h3 {
    color: var(--text-dark);
    border-bottom: 1px solid rgba(218, 161, 76, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.terms-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
    text-align: justify;
}

.terms-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.terms-section li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.terms-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Contact Information Styling */
.contact-info {
    background: rgba(218, 161, 76, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Important Notes Section */
.important-notes {
    background-color: #ffffff;
}

.note-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.note-icon {
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(218, 161, 76, 0.1);
    transition: all 0.3s ease;
}

.note-card:hover .note-icon {
    background: rgba(218, 161, 76, 0.2);
    transform: scale(1.1);
}

.note-card h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.note-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b98b4e 100%);
    color: white;
}

.cta-section .main-heading {
    color: white !important;
}

.cta-section .paragraph {
    color: rgba(255,255,255,0.9) !important;
}

.btn-outline-primary {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 991px) {
    .terms-hero-section {
        padding: 60px 0;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .cta-section .text-lg-end {
        text-align: center !important;
        margin-top: 2rem;
    }
    
    .terms-document {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .main-heading {
        font-size: 2rem !important;
    }
    
    .note-card {
        margin-bottom: 1rem;
    }
    
    .terms-section h3 {
        font-size: 1.3rem;
    }
    
    .document-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .terms-hero-section {
        padding: 40px 0;
    }
    
    .hero-features .feature-item {
        justify-content: center;
    }
    
    .terms-document {
        padding: 1.5rem;
    }
    
    .terms-section {
        margin-bottom: 2rem;
    }
    
    .terms-section h3 {
        font-size: 1.2rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b98b4e;
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Note Card Hover Effects */
.note-card:hover h5 {
    color: var(--primary-color);
}

.note-card .note-icon {
    transition: all 0.3s ease;
}

.note-card:hover .note-icon {
    background: rgba(218, 161, 76, 0.2);
    transform: scale(1.1);
}

/* Button Hover Effects */
.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 161, 76, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Terms Section Animations */
.terms-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.terms-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation for Terms Sections */
.terms-section:nth-child(1) { transition-delay: 0.1s; }
.terms-section:nth-child(2) { transition-delay: 0.2s; }
.terms-section:nth-child(3) { transition-delay: 0.3s; }
.terms-section:nth-child(4) { transition-delay: 0.4s; }
.terms-section:nth-child(5) { transition-delay: 0.5s; }
.terms-section:nth-child(6) { transition-delay: 0.6s; }
.terms-section:nth-child(7) { transition-delay: 0.7s; }
.terms-section:nth-child(8) { transition-delay: 0.8s; }
.terms-section:nth-child(9) { transition-delay: 0.9s; }
.terms-section:nth-child(10) { transition-delay: 1.0s; }

/* Note Card Animations */
.note-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.note-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation for Note Cards */
.note-card:nth-child(1) { transition-delay: 0.1s; }
.note-card:nth-child(2) { transition-delay: 0.2s; }
.note-card:nth-child(3) { transition-delay: 0.3s; }

/* Image Hover Effects */
.terms-hero-section img {
    transition: all 0.3s ease;
}

.terms-hero-section img:hover {
    transform: scale(1.02);
}

/* Content Fade In Animation */
.terms-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.terms-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Important Notes Section Animation */
.important-notes {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.important-notes.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Terms Document Animation */
.terms-document {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.terms-document.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Document Header Animation */
.document-header {
    transition: all 0.3s ease;
}

.document-header:hover {
    border-bottom-color: var(--primary-color);
}

/* Contact Info Animation */
.contact-info {
    transition: all 0.3s ease;
}

.contact-info:hover {
    background: rgba(218, 161, 76, 0.1);
    transform: translateX(5px);
}

/* Terms Section Header Animation */
.terms-section h3 {
    transition: all 0.3s ease;
}

.terms-section:hover h3 {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* List Item Animation */
.terms-section li {
    transition: all 0.3s ease;
}

.terms-section li:hover {
    color: var(--text-dark);
    transform: translateX(5px);
}

/* Strong Text Animation */
.terms-section strong {
    transition: all 0.3s ease;
}

.terms-section:hover strong {
    color: var(--primary-color);
}

/* Note Card Icon Animation */
.note-icon {
    transition: all 0.3s ease;
}

.note-card:hover .note-icon {
    background: rgba(218, 161, 76, 0.2);
    transform: scale(1.1);
}

/* Note Card Content Animation */
.note-card h5 {
    transition: all 0.3s ease;
}

.note-card:hover h5 {
    color: var(--primary-color);
}

/* Document Scroll Animation */
.terms-document {
    max-height: 80vh;
    overflow-y: auto;
}

/* Print Styles */
@media print {
    .terms-document {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .note-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .cta-section,
    .important-notes {
        display: none;
    }
}

/* Accessibility Improvements */
.terms-section h3:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.terms-document {
    scroll-behavior: smooth;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .terms-section h3 {
        border-bottom: 2px solid var(--text-dark);
    }
    
    .contact-info {
        border-left: 4px solid var(--text-dark);
        background: rgba(0,0,0,0.1);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .terms-section,
    .note-card,
    .terms-document {
        transition: none;
    }
    
    .note-card:hover {
        transform: none;
    }
    
    .terms-section:hover h3 {
        transform: none;
    }
} 