/* =========================================
   ===== GLOBAL VARIABLES & CONTAINERS =====
   ========================================= */
:root {
    --primary-green: #10b981; 
    --light-green: #d1fae5;
    --dark-blue: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f9fafb;
    --border-color: #d1d5db;
}

.max-w-custom {
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   ===== HEADER & MAIN LAYOUT =====
   ========================================= */
.contact-page-header {
    background: linear-gradient(to bottom, #f8fafc 0%, #f0fdf4 100%);
    padding: 4rem 0 2.5rem; 
    text-align: center;
    margin-bottom: 0 !important;
}

.contact-main-title {
    font-size: clamp(2rem, 4vw, 2.8rem); /* Responsive title */
    font-weight: 700;
    color: var(--dark-blue);
}
.contact-main-title span {
    color: var(--primary-green);
}

.contact-subtitle {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 2vw, 0.95rem);
    max-width: 600px;
    margin: 0 auto;
}

.heading-divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary-green);
    margin: 1rem auto 1.5rem;
    border-radius: 2px;
}

.contact-sec-1 {
    background: linear-gradient(to bottom, #f0fdf4 0%, #e8f5e9 100%);
    padding: 2rem 0 4rem;
    margin: 0 !important;
}

/* =========================================
   ===== LEFT PANEL: CONTACT INFO =====
   ========================================= */
.contact-info-panel {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #eaeaea;
    height: 100%;
}

.info-panel-title {
    color: var(--dark-blue);
    font-size: clamp(1.2rem, 2.5vw, 1.3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem; 
}

.info-icon {
    width: 40px; 
    height: 40px;
    background-color: var(--light-green);
    color: var(--primary-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem; 
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-item:hover .info-icon {
    background-color: var(--primary-green);
    color: #ffffff;
    transform: scale(1.05);
}

.info-content h4 {
    font-size: 0.95rem; 
    font-weight: 600; 
    color: var(--dark-blue);
    margin-bottom: 0.2rem;
}

.info-content p {
    color: var(--text-muted);
    font-size: 0.85rem; 
    margin: 0;
    line-height: 1.5;
}

.map-container {
    width: 100%;
    height: 180px; 
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid #eaeaea;
}

/* =========================================
   ===== RIGHT PANEL: CONTACT FORM =====
   ========================================= */
.contact-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem; 
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    height: 100%;
}

.contact-form-title {
    font-size: clamp(1.2rem, 3vw, 1.4rem); 
    font-weight: 600; 
    color: var(--dark-blue);
    margin-bottom: 0.3rem;
}

.contact-form-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem; 
    margin-bottom: 1.5rem;
}

/* Form Inputs Customization */
.form-label-custom {
    font-size: 0.8rem; 
    font-weight: 500; 
    color: #4b5563;
    margin-bottom: 0.4rem;
    display: inline-block;
}

.input-group-custom .input-group-text {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-right: none;
    color: var(--primary-green);
    border-radius: 6px 0 0 6px;
    padding: 0.5rem 0.75rem; 
    font-size: 0.85rem;
}

.input-group-custom .form-control, 
.input-group-custom .form-select {
    border-radius: 0 6px 6px 0;
    border: 1px solid var(--border-color);
    border-left: none;
    padding: 0.5rem 0.75rem; 
    font-size: 0.85rem; 
    color: #1f2937;
    background-color: var(--bg-light);
    transition: all 0.3s;
}

.dynamic-service-select {
    border-radius: 6px !important;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    background-color: var(--bg-light);
}

.text-area-custom {
    border-radius: 6px !important; 
    border: 1px solid var(--border-color); 
    background-color: var(--bg-light); 
    padding: 0.6rem 0.75rem; 
    font-size: 0.85rem;
    resize: vertical;
}

/* Focus States (Fixing Bootstrap Defaults) */
.input-group-custom:focus-within .input-group-text,
.input-group-custom:focus-within .form-control,
.dynamic-service-select:focus,
.text-area-custom:focus {
    border-color: var(--primary-green) !important;
    background-color: #ffffff;
    box-shadow: none !important; /* Removes default blue glow */
}

.input-group-custom:focus-within,
.dynamic-service-select:focus,
.text-area-custom:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

/* =========================================
   ===== BUTTON & ACTION AREA =====
   ========================================= */
.form-action-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.security-badges {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.btn-submit-contact {
    background-color: var(--primary-green);
    color: #ffffff;
    font-weight: 600; 
    font-size: 0.9rem; 
    padding: 0.6rem 1.5rem; 
    border-radius: 6px;
    border: none;
    display: inline-block; 
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
    white-space: nowrap; /* Prevents text wrapping */
}

.btn-submit-contact:hover, 
.btn-submit-contact:focus {
    background-color: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3) !important;
    transform: translateY(-2px);
    outline: none !important;
}

/* =========================================
   ===== MEDIA QUERIES (RESPONSIVE) =====
   ========================================= */

/* Tablets & Small Desktop (Max: 991px) */
@media (max-width: 991px) {
    .contact-info-panel, .contact-form-wrapper {
        padding: 1.5rem; /* Reduces padding slightly */
    }
}

/* Mobile Devices (Max: 767px) */
@media (max-width: 767px) {
    .contact-page-header {
        padding: 3rem 0 1.5rem; /* Shorter header for mobile */
    }
    
    .contact-sec-1 {
        padding: 1.5rem 0 3rem;
    }

    .contact-info-panel, .contact-form-wrapper {
        padding: 1.25rem; /* Maximize screen real estate on phones */
    }
    
    .map-container {
        height: 200px; /* Slightly taller on mobile for better touch map interaction */
    }

    /* Change action area to stack vertically on mobile */
    .form-action-area {
        flex-direction: column-reverse; /* Button on top, security text below */
        gap: 1rem;
    }

    .btn-submit-contact {
        width: 100%; /* Full width button on mobile for easy tapping */
        text-align: center;
        padding: 0.75rem; /* Slightly larger touch target */
    }
    
    .security-badges {
        justify-content: center;
        width: 100%;
    }
}