﻿/* Contact Page Specific Styles - Isolated from main site */
.contact-page-container {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f8fdf8 0%, #f0f7f0 100%);
    min-height: 100vh;
    padding-top: 20px;
}

/* Hero Section */
.contact-hero {
    background: linear-gradient(rgba(46, 125, 50, 0.9), rgba(56, 142, 60, 0.9)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

    .contact-hero-title i {
        margin-right: 15px;
        color: #c8e6c9;
    }

.contact-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Main Grid */
.contact-main-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Cards Common Styles */
.contact-form-card,
.contact-info-card,
.faq-card,
.cta-card,
.quick-links-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .contact-form-card:hover,
    .contact-info-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    }

/* Form Card */
.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8f5e9;
}

.form-title {
    color: #2e7d32;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

    .form-title i {
        color: #4caf50;
        margin-right: 10px;
    }

.form-subtitle {
    color: #666;
    font-size: 1rem;
}

/* Form Elements */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    font-weight: 600;
    color: #388e3c;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .contact-form label i {
        width: 20px;
        color: #4caf50;
    }

.contact-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

    .contact-form .form-control:focus {
        border-color: #4caf50;
        box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
        background: white;
    }

    .contact-form .form-control::placeholder {
        color: #999;
    }

/* Select Dropdown */
.contact-form select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234caf50' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Character Counter */
.form-text {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.875rem;
    color: #666;
}

#charCount {
    color: #4caf50;
    font-weight: 600;
}

.urgent-tip {
    color: #ff9800;
    font-weight: 500;
}

    .urgent-tip i {
        margin-right: 5px;
    }

/* Submit Button */
.form-submit {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
}

    .btn-submit:hover {
        background: linear-gradient(135deg, #1b5e20 0%, #388e3c 100%);
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
    }

    .btn-submit:active {
        transform: scale(1);
    }

.form-note {
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

    .form-note i {
        color: #4caf50;
        margin-right: 5px;
    }

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.alert-danger {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.alert i {
    margin-right: 10px;
}

.btn-close {
    box-shadow: none !important;
}

/* Contact Info Card */
.info-title {
    color: #2e7d32;
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8f5e9;
}

    .info-title i {
        color: #4caf50;
        margin-right: 10px;
    }

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

    .contact-info-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.info-icon {
    width: 40px;
    height: 40px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

    .info-icon i {
        color: #4caf50;
        font-size: 1.2rem;
    }

.info-content h4 {
    color: #388e3c;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-content p {
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.info-content .text-muted {
    color: #888 !important;
    font-size: 0.875rem;
}

/* Urgent Alert */
.urgent-alert {
    background: #fff3e0;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-left: 4px solid #ff9800;
}

.alert-icon {
    width: 40px;
    height: 40px;
    background: #ff9800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .alert-icon i {
        color: white;
        font-size: 1.2rem;
    }

.urgent-alert h5 {
    color: #e65100;
    margin-bottom: 5px;
}

.urgent-alert p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
    text-align: center;
}

.cta-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

    .cta-title i {
        margin-right: 10px;
    }

.cta-text {
    opacity: 0.9;
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
}

.btn-cta-primary {
    background: white;
    color: #2e7d32;
}

    .btn-cta-primary:hover {
        background: #f8f9fa;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

    .btn-cta-secondary:hover {
        background: rgba(255,255,255,0.1);
        transform: translateY(-2px);
    }

/* FAQ Card */
.faq-title {
    color: #2e7d32;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

    .faq-title i {
        color: #4caf50;
        margin-right: 10px;
    }

.accordion-button {
    background: #f8f9fa;
    color: #388e3c;
    font-weight: 600;
    border: 1px solid #e0e0e0;
}

    .accordion-button:not(.collapsed) {
        background: #e8f5e9;
        color: #2e7d32;
    }

.accordion-body {
    background: #fafafa;
    color: #555;
}

/* Quick Links Card */
.quick-links-card h4 {
    color: #2e7d32;
    margin-bottom: 20px;
}

    .quick-links-card h4 i {
        color: #4caf50;
        margin-right: 10px;
    }

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .quick-links li {
        margin-bottom: 12px;
    }

    .quick-links a {
        color: #555;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 12px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

        .quick-links a:hover {
            background: #e8f5e9;
            color: #2e7d32;
            padding-left: 15px;
        }

    .quick-links i {
        width: 20px;
        color: #4caf50;
    }

/* Responsive Design */
@media (max-width: 992px) {
    .contact-hero-title {
        font-size: 2rem;
    }

    .contact-hero-subtitle {
        font-size: 1rem;
    }

    .contact-form-card,
    .contact-info-card,
    .faq-card,
    .cta-card,
    .quick-links-card {
        padding: 20px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 30px 0;
    }

    .contact-hero-title {
        font-size: 1.8rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .contact-info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-icon {
        margin-bottom: 10px;
    }
}

/* Loading State */
.btn-submit.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

    .btn-submit.loading .spinner-border {
        display: inline-block !important;
    }

/* Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

    .form-control.is-invalid:focus {
        border-color: #dc3545;
        box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
    }
