/* Financing Page Styles */

/* Hero Section */
.financing-hero {
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .financing-hero {
        background-attachment: scroll;
        min-height: 80vh;
        padding: 60px 0 !important;
    }
    
    .financing-hero h1 {
        font-size: 36px !important;
    }
    
    .financing-hero p {
        font-size: 18px !important;
    }
    
    .trust-badges {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .financing-partners > div {
        gap: 30px !important;
    }
    
    .hero-cta {
        flex-direction: column !important;
    }
    
    .hero-benefits {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Financing Cards */
.financing-card {
    transition: all 0.3s ease;
    position: relative;
}

.financing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.financing-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 131, 71, 0.4) !important;
}

/* Benefits Section */
.benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15) !important;
}

/* FAQ Section */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-question:hover {
    background: #e8f5e8 !important;
}

/* Form Section */
.financing-form-section {
    background-attachment: fixed;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .financing-form-section {
        background-attachment: scroll;
        padding: 60px 0 !important;
    }
    
    .financing-form-section .wide-container > div {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .financing-form-section h2 {
        font-size: 32px !important;
    }
    
    .financing-form-section p {
        font-size: 16px !important;
    }
}

/* Form Styling */
.financing-form input,
.financing-form select,
.financing-form textarea {
    transition: all 0.3s ease;
}

.financing-form input:focus,
.financing-form select:focus,
.financing-form textarea:focus {
    border-color: #2A8347 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 131, 71, 0.1);
    transform: translateY(-1px);
}

.financing-form button {
    transition: all 0.3s ease;
}

.financing-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 131, 71, 0.4) !important;
}

.financing-form button:active {
    transform: translateY(0);
}

/* Partner Logos */
.partner-logo {
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Utility Classes */
.wide-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Button Animations */
.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: white !important;
    color: #2A8347 !important;
}

/* Loading States */
.financing-form.loading button {
    opacity: 0.7;
    cursor: not-allowed;
}

.financing-form.loading button:after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.form-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {
    .financing-options-section .wide-container > div:last-child {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 900px) {
    .financing-options-section .wide-container > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .financing-card {
        padding: 30px !important;
    }
    
    .financing-card h4 {
        font-size: 24px !important;
    }
}

@media (max-width: 600px) {
    .financing-card .financing-card > div:last-child {
        grid-template-columns: 1fr !important;
    }
    
    .financing-form > div:first-child {
        grid-template-columns: 1fr !important;
    }
}

/* Print Styles */
@media print {
    .financing-hero,
    .financing-form-section {
        background: none !important;
        color: black !important;
    }
    
    .financing-card {
        border: 2px solid #ccc !important;
        break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .financing-card {
        border: 3px solid #000 !important;
    }
    
    .benefit-card {
        border: 2px solid rgba(255,255,255,0.8) !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .financing-card,
    .benefit-card,
    .partner-logo,
    .financing-form input,
    .financing-form select,
    .financing-form textarea,
    .financing-form button {
        transition: none !important;
    }
    
    .financing-hero {
        background-attachment: scroll !important;
    }
    
    .financing-form-section {
        background-attachment: scroll !important;
    }
}

/* Focus Visible for Accessibility */
.financing-form input:focus-visible,
.financing-form select:focus-visible,
.financing-form textarea:focus-visible,
.financing-form button:focus-visible {
    outline: 3px solid #2A8347;
    outline-offset: 2px;
}

/* Custom Scrollbar */
.financing-form select[multiple] {
    scrollbar-width: thin;
    scrollbar-color: #2A8347 #f1f1f1;
}

.financing-form select[multiple]::-webkit-scrollbar {
    width: 8px;
}

.financing-form select[multiple]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.financing-form select[multiple]::-webkit-scrollbar-thumb {
    background: #2A8347;
    border-radius: 4px;
}

.financing-form select[multiple]::-webkit-scrollbar-thumb:hover {
    background: #5b812a;
}
