/* Reset and Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3A4965;
    --accent-color: #f9d893;
    --text-light: #ffffff;
    --text-dark: #333333;
    --section-spacing: 100px;
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.2);
    --border-radius: 10px;
    --success-color: #28a745;
    --error-color: #dc3545;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 80px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

nav ul li a.active {
    color: var(--accent-color);
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

/* Hero Section Styles */
#hero {
    background: linear-gradient(rgba(58, 73, 101, 0.7), rgba(58, 73, 101, 0.7)), url('/images/Contact_Us_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    padding: 150px 0 150px;
    text-align: center;
}

#hero h1 {
    font-size: 4rem;
    margin-top: 50px;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: 700;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    opacity: 0.95;
}

#hero h2:after {
    display: none;
}

/* Section Styles */
section {
    padding: var(--section-spacing) 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

section h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Global Offices Section */
#global-offices {
    background-color: #ffffff;
    padding: 80px 0;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.office-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    cursor: pointer;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.office-card.active {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-medium);
}

.office-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.office-flag {
    font-size: 3rem;
    margin-right: 20px;
}

.office-title h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.office-type {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.office-details {
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 12px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-icon {
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.view-map-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.view-map-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.view-map-btn:disabled {
    background: #6c757d;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.view-map-btn:disabled:hover {
    background: #6c757d;
    color: #ffffff;
    transform: none;
}

/* Map Section */
#map-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.map-container {
    position: relative;
    height: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: #ffffff;
}

.embedded-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 15px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.embedded-map.active {
    opacity: 1;
    pointer-events: all;
    z-index: 2;
}

.embedded-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
    pointer-events: all;
    touch-action: manipulation;
}

.coming-soon-map {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    pointer-events: none;
}

.coming-soon-map .coming-soon-content {
    text-align: center;
    color: var(--text-dark);
}

.coming-soon-map .coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.coming-soon-map h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.coming-soon-map p {
    opacity: 0.7;
    font-size: 1.1rem;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 73, 101, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.map-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-content {
    text-align: center;
    color: var(--text-light);
}

.overlay-content h3 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.overlay-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Map Controls Hint */
.map-controls-hint {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.map-container:hover .map-controls-hint {
    opacity: 1;
}

.map-controls-hint::before {
    content: "🖱️";
    margin-right: 5px;
}

/* Contact Form Section */
#contact-form {
    background-color: #ffffff;
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.form-container {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

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

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.submit-btn,
.reset-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--text-light);
    flex: 1;
}

.submit-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.reset-btn {
    background: #e9ecef;
    color: var(--text-dark);
    min-width: 120px;
}

.reset-btn:hover {
    background: #dee2e6;
}

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

.info-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.info-card h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.info-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.close {
    color: #666;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

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

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.modal-body h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.modal-body p {
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 25px;
}

.modal-btn {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-light);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    opacity: 1;
}

/* Footer Contact Information Styles */
.footer-contact .contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon {
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.4;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .submit-btn {
    background: #6c757d;
    cursor: not-allowed;
}

/* Form Validation */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error-color);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: var(--success-color);
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Responsive Design */
@media (max-width: 992px) {
    .offices-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        display: grid;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.8rem;
    }
    
    #hero h2 {
        font-size: 1.6rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    nav ul {
        display: none;
    }
    
    /* Mobile header container adjustment */
    header .container {
        padding: 0 10px 0 0;
    }
    
    /* Mobile logo position adjustment */
    .logo {
        margin-left: -10px;
    }
    
    .offices-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .office-card {
        padding: 25px;
    }
    
    .office-flag {
        font-size: 2.5rem;
        margin-right: 15px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .map-container {
        height: 350px;
    }
    
    .map-controls-hint {
        font-size: 0.75rem;
        padding: 5px 8px;
        top: 8px;
        right: 8px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    
    .footer-contact .contact-details {
        gap: 15px;
    }
    
    .contact-item {
        gap: 10px;
    }
    
    .contact-icon {
        font-size: 1rem;
    }
    
    .contact-label {
        font-size: 0.8rem;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2.2rem;
    }
    
    #hero h2 {
        font-size: 1.3rem;
    }
    
    .office-card {
        padding: 20px;
    }
    
    .office-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .office-flag {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .form-container {
        padding: 25px 15px;
    }
    
    .submit-btn,
    .reset-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .map-container {
        height: 300px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Page Loading Effect */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}
