/* CSS specific to the Contact Us Page */

.contact-hero {
    padding-top: 160px;
    padding-bottom: 60px;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, rgba(234, 179, 8, 0.05) 0%, transparent 60%);
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.contact-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Options Grid */
.contact-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.contact-opt-card {
    padding: 30px 20px;
    text-align: center;
}

.contact-opt-card svg {
    color: var(--primary);
    margin-bottom: 16px;
    transition: var(--transition-smooth);
}

.contact-opt-card:hover svg {
    transform: scale(1.15) rotate(5deg);
    color: var(--secondary);
}

.contact-opt-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.contact-opt-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.contact-opt-card a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-opt-card a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Form & Map Section */
.contact-section-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: stretch;
    margin-bottom: 80px;
}

.contact-form-wrapper {
    padding: 48px;
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-form-wrapper > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Floating Input Styling */
.form-field-group {
    position: relative;
    margin-bottom: 28px;
}

.form-input-field {
    width: 100%;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

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

/* Floating label effect */
.form-field-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

textarea.form-input-field ~ .form-field-label {
    top: 24px;
    transform: none;
}

/* Float label when focused or contains text */
.form-input-field:focus ~ .form-field-label,
.form-input-field:not(:placeholder-shown) ~ .form-field-label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    color: var(--primary);
    background-color: var(--bg-dark);
    padding: 0 8px;
    border-radius: 4px;
}

/* Custom Checkbox */
.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.form-checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-checkbox-group label a {
    color: var(--primary);
}

/* Map Container styling */
.map-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    box-shadow: var(--glass-shadow);
}

.map-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Stylized interactive Map grid graphics */
.map-canvas {
    flex-grow: 1;
    min-height: 350px;
    background: radial-gradient(circle at center, rgba(5, 150, 105, 0.08) 0%, transparent 80%), #f1f5f9;
    position: relative;
    overflow: hidden;
}

/* Background grid */
.map-canvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Decorative location markers */
.map-marker {
    position: absolute;
    cursor: pointer;
    z-index: 10;
}

.map-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: ping 2s infinite;
}

@keyframes ping {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

.marker-dot {
    width: 14px;
    height: 14px;
    background: var(--primary);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.map-marker:hover .marker-dot {
    background: var(--secondary);
}

.marker-label {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: var(--glass-shadow);
}

.map-marker:hover .marker-label, .map-marker.active .marker-label {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* Markers placement on custom map graphic */
.marker-delhi { top: 35%; left: 35%; }
.marker-noida { top: 55%; left: 60%; }
.marker-ghaziabad { top: 25%; left: 65%; }

/* Regional Office list */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.branch-card {
    padding: 32px;
}

.branch-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.branch-city-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.branch-address {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.branch-contact-info {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
}

.branch-contact-info a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.branch-contact-info a:hover {
    color: var(--primary);
}


/* Responsive Media Queries */
@media (max-width: 1024px) {
    .contact-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-section-grid {
        grid-template-columns: 1fr;
    }
    
    .map-canvas {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.8rem;
    }
    
    .contact-options-grid {
        grid-template-columns: 1fr;
    }
    
    .branches-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
}
