/* ===== Contact Page Styles ===== */

/* Contact Header */
.contact-header {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.9), rgba(32, 134, 55, 0.95));
    color: white;
    padding: 6rem 0 4rem;
    position: relative;
    margin-top: -100px;
    padding-top: 150px;
    overflow: hidden;
}

.contact-header::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 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,700 1000,1000"/><polygon fill="rgba(255,255,255,0.05)" points="0,700 1000,500 1000,700 0,1000"/></svg>');
    background-size: cover;
    background-position: bottom;
}

/* Contact Form Section */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8, #007bff);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    display: block;
    font-size: 1rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    width: 100%;
}

.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    background: #ffffff;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-control.is-valid {
    border-color: #28a745;
    background: #f8fff9;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Input Icons */
.input-icon {
    position: relative;
}

.input-icon .form-control {
    padding-left: 3rem;
}

[dir="rtl"] .input-icon .form-control {
    padding-left: 1.5rem;
    padding-right: 3rem;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.2rem;
    z-index: 5;
}

[dir="rtl"] .input-icon i {
    left: auto;
    right: 1rem;
}

.form-control:focus + i {
    color: #28a745;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 150px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
    color: white;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit .loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .loading {
    display: inline-block;
}

/* Contact Info Cards */
.contact-info {
    padding: 3rem 0;
}

.contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #007bff);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.contact-icon i {
    font-size: 2rem;
    color: white;
    z-index: 2;
    position: relative;
}

.contact-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.contact-card a {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #1e7e34;
}

/* Success/Error Messages */
.alert {
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f1aeb5);
    color: #721c24;
}

.alert i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

[dir="rtl"] .alert i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Map Section */
.map-section {
    padding: 0;
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.2rem;
    text-align: center;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 3rem 0;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-question {
    background: white;
    padding: 1.5rem;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
}

[dir="rtl"] .faq-question {
    text-align: right;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question i {
    float: right;
    transition: transform 0.3s ease;
    color: #28a745;
}

[dir="rtl"] .faq-question i {
    float: left;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #6c757d;
    line-height: 1.7;
    display: none;
}

.faq-answer.show {
    display: block;
    animation: slideDown 0.3s ease;
}

/* Animations */
@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(180deg); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-header {
        padding: 4rem 0 2rem;
        margin-top: -80px;
        padding-top: 120px;
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-form-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }
    
    .contact-icon i {
        font-size: 1.5rem;
    }
    
    .form-control {
        padding: 0.8rem 1rem;
    }
    
    .input-icon .form-control {
        padding-left: 2.5rem;
    }
    
    [dir="rtl"] .input-icon .form-control {
        padding-left: 1rem;
        padding-right: 2.5rem;
    }
    
    .btn-submit {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .map-section {
        height: 300px;
        margin: 0 1rem;
    }
}

@media (max-width: 576px) {
    .contact-form-container {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .contact-card {
        padding: 1.5rem 1rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }
}
