/* ==============================================
   CONTACT PAGE STYLES
   ============================================== */

/* Hero Section */
.contact-hero {
    background: var(--primary-color, #7A8769);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.contact-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.contact-hero .lead {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
}

/* Contact Form Card */
.contact-form-card {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.contact-form-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    position: relative;
}

.contact-form-card h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary-color, #7A8769);
    margin-top: 15px;
    border-radius: 2px;
}

/* Form Styles */
.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form .form-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-form .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color, #7A8769);
    box-shadow: 0 0 0 4px rgba(122, 135, 105, 0.15);
    background: #fff;
}

.contact-form .form-control::placeholder {
    color: #a0aec0;
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn-submit {
    background: var(--primary-color, #7A8769);
    border: none;
    color: #fff;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form .btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(122, 135, 105, 0.4);
    background: var(--btn-primary-hover-bg, #6b7a5c);
}

.contact-form .btn-submit:active {
    transform: translateY(0);
}

.contact-form .btn-submit i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.contact-form .btn-submit:hover i {
    transform: translateX(5px);
}

/* Contact Info */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.contact-info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf2f7;
}

.contact-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color, #7A8769);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon i {
    font-size: 1.3rem;
    color: #fff;
}

.contact-info-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.contact-info-content p {
    color: #718096;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-info-content a {
    color: var(--primary-color, #7A8769);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-content a:hover {
    color: var(--btn-primary-hover-bg, #6b7a5c);
}

/* Social Links */
.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.contact-social a {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background: var(--primary-color, #7A8769);
    color: #fff;
    transform: translateY(-3px);
}

/* Map Section */
.contact-map-card {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-map-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    padding: 25px 30px;
    margin: 0;
    border-bottom: 1px solid #edf2f7;
}

.contact-map-wrapper {
    position: relative;
    height: 480px;
    border-radius: 8px;
    overflow: hidden;
}

/* Custom map marker popup overlay */
.map-marker-popup {
    position: absolute;
    top: 120px;
    left: 24px;
    z-index: 10;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.22);
    padding: 20px 22px 16px;
    min-width: 230px;
    max-width: 280px;
    font-family: 'Segoe UI', Arial, sans-serif;
    transition: opacity 0.2s, transform 0.2s;
}

.map-marker-popup.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
}

.map-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.map-popup-close:hover {
    color: #333;
}

.map-popup-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    padding-right: 20px;
}

.map-popup-title i {
    color: var(--primary-color, #7A8769);
    font-size: 17px;
}

.map-popup-divider {
    margin: 10px 0;
    border-color: #e8e8e8;
}

.map-popup-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.map-popup-row i {
    color: var(--primary-color, #7A8769);
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.map-popup-row a {
    color: #444;
    text-decoration: none;
}

.map-popup-row a:hover {
    color: var(--primary-color, #7A8769);
}

.map-popup-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 9px 0;
    background: var(--primary-color, #7A8769);
    color: #fff !important;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.2s;
}

.map-popup-btn:hover {
    background: var(--primary-dark, #5f6b52);
    color: #fff !important;
}

.map-popup-btn i {
    margin-right: 5px;
    font-size: 12px;
}

.map-popup-arrow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,0.12));
}

.contact-map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#contactMap {
    width: 100%;
    height: 100%;
    min-height: 480px;
    z-index: 1;
}

/* Leaflet popup custom styles */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.leaflet-popup-content {
    margin: 10px 12px;
}

/* Working Hours */
.working-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.working-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
}

.working-hours-list li:last-child {
    border-bottom: none;
}

.working-hours-list li span:first-child {
    font-weight: 600;
}

.working-hours-list li span:last-child {
    color: var(--primary-color, #7A8769);
}

/* Form Success/Error Messages */
.form-message {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive */
@media (max-width: 991px) {
    .contact-hero {
        padding: 60px 0;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero .lead {
        font-size: 1rem;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 25px;
    }
    
    .contact-form-card h3,
    .contact-info-card h3 {
        font-size: 1.4rem;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading spinner for form */
.btn-submit.loading {
    position: relative;
    pointer-events: none;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
