:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --secondary-color: #6366f1;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --white: #ffffff;
    --background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    --card-shadow: 0 10px 40px rgba(79, 70, 229, 0.1);
    --card-shadow-hover: 0 20px 60px rgba(79, 70, 229, 0.15);
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* =============================================
   CONTACT SECTION CONTAINER
   ============================================= */
.contact-section {
    padding: 60px 0 80px;
    /* background: var(--background); */
    position: relative;
    overflow: hidden;
}

/* Decorative Background Elements */
.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* =============================================
   SECTION HEADER
   ============================================= */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    margin-top: 20px;
}

/* =============================================
   CONTACT FORM WRAPPER
   ============================================= */
.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.contact-form-wrapper:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.form-title i {
    color: var(--primary-color);
}

/* =============================================
   FORM CONTROLS
   ============================================= */
.form-floating {
    position: relative;
}

.form-floating .form-control {
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius-sm);
    padding: 1rem 1rem;
    height: auto;
    font-size: 1rem;
    background-color: #fafbfc;
    transition: var(--transition);
}

.form-floating .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background-color: var(--white);
}

.form-floating .form-control:hover:not(:focus) {
    border-color: #cbd5e1;
    background-color: var(--white);
}

.form-floating label {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 1rem;
}

.form-floating label i {
    color: var(--primary-color);
}

.form-floating textarea.form-control {
    min-height: 140px;
    resize: none;
}

/* =============================================
   SUBMIT BUTTON
   ============================================= */
.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--white);
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.35);
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit .btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline-flex !important;
    align-items: center;
}

/* =============================================
   MAP WRAPPER
   ============================================= */
.map-wrapper {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    height: 100%;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.map-wrapper:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
}

.map-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.map-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.map-title i {
    color: var(--primary-color);
}

.map-address {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.map-address i {
    color: var(--text-light);
}

.map-container {
    flex: 1;
    min-height: 300px;
    position: relative;
}

.map-container iframe {
    border-radius: 0;
    filter: saturate(1.1) contrast(1.05);
    transition: var(--transition);
}

.map-container:hover iframe {
    filter: saturate(1.2) contrast(1.1);
}

/* =============================================
   CONTACT INFO CARDS
   ============================================= */
.contact-info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 30px 30px;
    background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
    border-top: 1px solid #f1f5f9;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--white);
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--text-dark);
}

.info-card i {
    color: var(--primary-color);
    font-size: 1rem;
}

.info-card:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15);
}

/* =============================================
   FADE-IN ANIMATION
   ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delay for children */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }

/* =============================================
   RESPONSIVE STYLES
   ============================================= */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .contact-form-wrapper,
    .map-header,
    .contact-info-cards {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .contact-section {
        padding: 80px 0 60px;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .contact-form-wrapper,
    .map-wrapper {
        height: auto;
    }

    /* .map-container {
        min-height: 350px;
    } */

    .map-container iframe {
        min-height: 350px;
        border: 0 !important;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .contact-section {
        padding: 60px 0 50px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .contact-form-wrapper {
        padding: 30px 25px;
    }

    .form-title,
    .map-title {
        font-size: 1.35rem;
    }

    .map-header {
        padding: 25px;
    }

    .contact-info-cards {
        padding: 20px 25px 25px;
        justify-content: center;
    }

    .info-card {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .contact-section {
        padding: 50px 0 40px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .map-container {
        min-height: 280px;
    }

    .btn-submit {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .contact-info-cards {
        flex-direction: column;
        align-items: stretch;
    }

    .info-card {
        justify-content: center;
        border-radius: var(--border-radius-sm);
    }
}

/* =============================================
   ACCESSIBILITY & FOCUS STATES
   ============================================= */
.form-control:focus,
.btn-submit:focus {
    outline: none;
}

.btn-submit:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .contact-form-wrapper:hover,
    .map-wrapper:hover,
    .btn-submit:hover {
        transform: none;
    }
}

/* =============================================
   SUCCESS MESSAGE STYLES
   ============================================= */
.success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.success-message.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.success-message i {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
}

.success-message h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.success-message p {
    color: var(--text-muted);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
