/* ====== CONTACT PAGE STYLING ====== */
:root {
    --contact-primary: #0f7f1e; 
    --contact-secondary: #034819; 
    --contact-accent: #2E7D32; 
    --contact-light: #4CAF50; 
    --contact-bg: #f8fafc;
    --contact-card: #ffffff;
    --contact-text: #1e293b;
    --contact-border: #e2e8f0;
    --contact-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --contact-glow: 0 0 20px rgba(76, 175, 80, 0.15);
}


/* ====== PAGE HEADER ====== */
.page-header {
    background: linear-gradient(135deg, #0c2461 0%, #104c02 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--contact-accent), var(--contact-light));
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.9) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ====== CONTACT SECTION ====== */
.contact-section {
    padding: 100px 0;
    background: var(--contact-bg);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Form Styling */
.contact-form-wrapper {
    background: var(--contact-card);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--contact-shadow);
    border: 1px solid var(--contact-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.contact-form-wrapper h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--contact-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.form-subtext {
    color: #64748b;
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--contact-border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    background: white;
    color: var(--contact-text);
    transition: all 0.3s ease;
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--contact-light);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.btn.primary.full {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--contact-primary), var(--contact-secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn.primary.full:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(12, 36, 97, 0.2);
}

.btn.primary.full:active {
    transform: translateY(0);
}

/* Contact Info Styling */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--contact-primary);
    font-weight: 700;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--contact-shadow);
    border: 1px solid var(--contact-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--contact-accent), var(--contact-light));
}

.info-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.info-card span {
    display: block;
    color: var(--contact-light);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card p {
    color: var(--contact-text);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.info-note {
    background: linear-gradient(135deg, rgba(12, 36, 97, 0.05), rgba(46, 125, 50, 0.05));
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    font-style: italic;
    color: var(--contact-primary);
    font-weight: 500;
    border: 2px dashed var(--contact-light);
    margin-top: 20px;
}

/* Map Container */
.map-container {
    grid-column: 1 / -1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--contact-shadow);
    margin-top: 40px;
    border: 1px solid var(--contact-border);
}

.map-placeholder {
    height: 400px;
    background: linear-gradient(135deg, var(--contact-primary), var(--contact-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.map-placeholder::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 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.2"/></svg>') repeat;
    animation: mapGrid 20s linear infinite;
}
/* ===== MODAL POPUP STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #0066cc, #004d99);
    color: white;
    padding: 20px 30px;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #ffeb3b;
}

.modal-body {
    padding: 40px 30px;
    text-align: center;
}

.success-icon {
    font-size: 70px;
    color: #4CAF50;
    margin-bottom: 20px;
    animation: bounce 0.6s ease;
}

.modal-body p {
    margin: 15px 0;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.5;
}

.modal-footer {
    padding: 20px 30px;
    background: #f9f9f9;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes mapGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
    display: none;
    animation: fadeIn 0.5s ease;
}

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

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 40px;
    }
    
    .contact-form-wrapper,
    .contact-info {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2.8rem;
    }
    
    .contact-form-wrapper h2,
    .contact-info h2 {
        font-size: 2rem;
    }
    
    .contact-form-wrapper,
    .contact-info {
        padding: 30px;
    }
    
    .info-card p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-form-wrapper,
    .contact-info {
        padding: 25px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 15px;
    }
    
    .btn.primary.full {
        padding: 16px;
    }
}

/* ====== ENHANCED INTERACTIONS ====== */
.form-group {
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== DECORATIVE ELEMENTS ====== */
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(12, 36, 97, 0.02)"/></svg>');
    pointer-events: none;
}

/* Loading State */
.btn.primary.full.loading {
    position: relative;
    color: transparent;
}

.btn.primary.full.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}