:root {
    --primary-color: #1295d9;
    --secondary-color: #27f7c6;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --dark-bg: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Enhanced Navbar */
.custom-navbar {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(18, 149, 217, 0.07);
    border-bottom: 1.5px solid #e2e8f0;
    z-index: 9999 !important;
    transition: all 0.3s ease;
}

.navbar-logo {
    height: 38px;
    width: auto;
    margin-right: 10px;
    display: inline-block;
}

.navbar-brand-text {
    font-weight: 800;
    font-size: 1.45rem;
    color: #1295d9 !important;
    letter-spacing: 0.5px;
}

.navbar-toggler {
    border: 2px solid #1295d9 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    background: rgba(18, 149, 217, 0.1) !important;
    z-index: 10000 !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(18, 149, 217, 0.25) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231295d9' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 20px !important;
    height: 20px !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #1e293b !important;
    margin: 0 4px;
    font-size: 1.08rem;
    transition: color 0.3s, background 0.3s;
    border-radius: 8px;
    padding: 8px 18px !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #27f7c6 !important;
    background: #f0f9ff;
}

.btn-navbar-cta {
    background: linear-gradient(90deg, #1295d9 60%, #27f7c6 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 1.08rem;
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    box-shadow: 0 4px 18px rgba(18, 149, 217, 0.1);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-navbar-cta:hover {
    background: #1295d9;
    color: #fff !important;
    transform: translateY(-2px) scale(1.04);
}

/* Contact Hero Section with Wave Background */
.contact-hero {
    background: linear-gradient(135deg, rgba(18, 149, 217, 0.9) 0%, rgba(39, 247, 198, 0.8) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::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 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23FFFFFF"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23FFFFFF"></path><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23FFFFFF"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease-out;
}

.contact-hero h1 i {
    margin-right: 20px;
    color: var(--secondary-color);
}

.contact-hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease-out 0.2s both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Styling */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Contact Form Section */
.contact-form-section {
    background: var(--bg-light);
}

.contact-form-container {
    background: white;
    padding: 60px 50px;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 18px 25px;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(18, 149, 217, 0.25);
    background: #f0f9ff;
}

.form-control.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-control.success {
    border-color: var(--secondary-color);
    background: #f0fdf4;
}

.btn-submit {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(18, 149, 217, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(18, 149, 217, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Map Container */
.map-container {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    height: 100%;
    min-height: 500px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 500px;
}

/* Contact Info Cards */
.contact-info-section {
    background: white;
}

.contact-info-card {
    background: white;
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    border: 2px solid #e2e8f0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-info-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.contact-info-card:hover::before {
    transform: scaleX(1);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
    transition: transform 0.4s ease;
    box-shadow: 0 10px 30px rgba(18, 149, 217, 0.3);
}

.contact-info-card:hover .contact-icon {
    transform: scale(1.1) rotate(10deg);
}

.contact-info-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-info-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-action-btn {
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
}

.contact-action-btn:hover {
    background: #1ee6b8;
    transform: translateY(-2px);
    color: var(--text-dark);
}

/* Office Hours Section */
.office-hours-section {
    background: var(--bg-light);
}

.office-hours-card {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.office-hours-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 15px 35px rgba(18, 149, 217, 0.3);
}

.office-hours-table {
    width: 100%;
    margin-top: 20px;
}

.office-hours-table td {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.1rem;
}

.office-hours-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

.office-hours-table td:last-child {
    color: var(--text-light);
    text-align: right;
}

/* Social Media Section */
.social-section {
    background: white;
}

.social-links-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-link {
    width: 80px;
    height: 80px;
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s ease;
    font-size: 2rem;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scale(0);
    transition: transform 0.4s ease;
    border-radius: 50%;
}

.social-link i {
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
}

.social-link:hover {
    transform: translateY(-10px) scale(1.1);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 35px rgba(18, 149, 217, 0.3);
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover i {
    color: white;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, var(--secondary-color), #1ee6b8);
    color: var(--text-dark);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-top: 20px;
    display: none;
    animation: slideInUp 0.5s ease-out;
}

.success-message.show {
    display: block;
}

/* WhatsApp Button */
.whatsapp-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: #25d366;
    border-radius: 35px;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
    padding: 0 28px;
    min-width: 0;
    height: 56px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    color: #fff;
    font-size: 1.15rem;
    text-decoration: none;
    z-index: 9998 !important;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn i {
    font-size: 2rem;
    margin-right: 14px;
    margin-left: 2px;
}

.whatsapp-btn-text {
    font-weight: 600;
    font-size: 1.13rem;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.5px;
    margin: 0;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: scale(1.08);
    color: #fff;
}

.whatsapp-btn::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(37, 211, 102, 0.3);
    border-radius: 40px;
    animation: ripple 2s infinite;
    z-index: -1;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 100px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.footer-section p,
.footer-section li {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.newsletter-form {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #475569;
    border-radius: 12px;
    background: #334155;
    color: white;
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.newsletter-form button {
    background: var(--secondary-color);
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    color: var(--text-dark);
    font-weight: 600;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #1ee6b8;
}

.footer-bottom {
    border-top: 1px solid #475569;
    padding-top: 40px;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: #475569;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98) !important;
        border-radius: 15px !important;
        margin-top: 15px !important;
        padding: 20px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid #e2e8f0 !important;
    }

    .btn-navbar-cta {
        width: 100%;
        text-align: center;
        margin-top: 16px;
    }

    .navbar-nav .nav-link {
        margin: 0 0 8px 0;
        text-align: center;
    }

    .contact-form-container {
        padding: 40px 30px;
        margin-bottom: 30px;
    }

    .map-container {
        min-height: 400px;
    }

    .social-links-container {
        gap: 20px;
    }

    .social-link {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.8rem;
    }

    .contact-hero p {
        font-size: 1.2rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .contact-form-container {
        padding: 30px 20px;
    }

    .contact-info-card {
        padding: 30px 20px;
        margin-bottom: 30px;
    }

    .contact-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .office-hours-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .social-link {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .whatsapp-btn {
        height: 48px;
        padding: 0 14px;
        right: 16px;
        bottom: 16px;
        border-radius: 24px;
    }

    .whatsapp-btn i {
        font-size: 1.3rem;
        margin-right: 8px;
    }

    .whatsapp-btn-text {
        font-size: 0.98rem;
    }

    .footer {
        padding: 60px 0 30px;
    }

    .footer-content {
        gap: 30px;
        margin-bottom: 30px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .contact-hero h1 {
        font-size: 2.2rem;
    }

    .contact-hero p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .contact-info-card h4 {
        font-size: 1.2rem;
    }

    .office-hours-table td {
        font-size: 1rem;
    }

    .social-links-container {
        gap: 15px;
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}