:root {
    --primary-blue: #6366f1;
    --primary-gray: #64748b;
    --border-color: #e2e8f0;
    --hover-color: #4f46e5;
    --text-dark: #1e293b;
    --text-light: #94a3b8;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 90px);
    margin-top: 90px;
}

.contact-form-section {
    padding: 3rem 4rem;
    background: #fff;
}

.contact-form-section h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-form-section > p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s ease;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    background: #fff;
    padding: 0 0.5rem;
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.875rem;
    color: var(--primary-blue);
}

.contact-image-section {
    background: var(--primary-blue);
    padding: 3rem;
    display: flex;
    align-items: center;
}

.image-content {
    color: #fff;
    padding: 2rem;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.testimonial {
    padding: 1.5rem 0;
}

.testimonial p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author span {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

.author small {
    color: rgba(255, 255, 255, 0.7);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--hover-color);
}

@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-image-section {
        display: none; /* Hide image section on tablets and mobile */
    }

    .contact-form-section {
        padding: 2rem;
        max-width: 800px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .phone-group {
        flex-direction: column;
        gap: 1rem;
    }

    .phone-group select {
        width: 100%;
    }

    .contact-form-section h1 {
        font-size: 1.75rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
    }

    .popup-content {
        padding: 25px;
        margin: 15px;
    }
}

@media (max-width: 480px) {
    .contact-form-section {
        padding: 1rem;
    }

    .contact-form-section h1 {
        font-size: 1.5rem;
    }

    .contact-form-section > p {
        font-size: 0.9rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .btn-submit {
        padding: 0.875rem;
    }

    .popup-content {
        padding: 20px;
    }

    .success-checkmark {
        width: 60px;
        height: 60px;
    }

    .check-icon {
        width: 60px;
        height: 60px;
    }
}

/* Add touch-friendly improvements */
@media (hover: none) {
    .btn-submit,
    .close-btn {
        padding: 1.125rem; /* Larger touch target */
    }

    input, 
    select, 
    textarea {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
}

.phone-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.phone-group select {
    width: 120px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: white;
    cursor: pointer;
}

.phone-group .form-group {
    flex: 1;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

body {
    margin: 0;
    padding: 0;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.contact-container {
    min-height: 100vh;
    margin-top: 0;
    padding-top: 90px;
}

.thank-you-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 90%;
    z-index: 1000;
    animation: slideIn 0.5s ease forwards;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 2rem;
    animation: scaleIn 0.5s ease 0.3s forwards;
    transform: scale(0);
}

.thank-you-message h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.5s forwards;
}

.thank-you-message p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.7s forwards;
}

.thank-you-message .btn-close {
    background: var(--primary-blue);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.9s forwards;
}

.thank-you-message .btn-close:hover {
    background: var(--hover-color);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.thank-you-message .btn-ok {
    background: var(--primary-blue);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.9s forwards;
}

.thank-you-message .btn-ok:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Add these styles at the root level, not nested inside any other class */
.popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.success-popup {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10000;
}

.checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: block;
}

.checkmark-circle {
    stroke: #4CAF50;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-linecap: round;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: #4CAF50;
    stroke-width: 2;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-linecap: round;
    fill: none;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    0% {
        stroke-dashoffset: 166;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* Keep only one instance of .close-btn styles */
.close-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    transform: scale(1);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}

.close-btn:hover {
    background: var(--hover-color);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.close-btn:active {
    transform: scale(0.98);
}

.close-btn:active {
    transform: scale(0.98);
}

.success-popup h2 {
    color: var(--text-dark);
    margin: 10px 0;
}

.success-popup p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.close-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    transform: scale(1);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}

.close-btn:hover {
    background: var(--hover-color);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.close-btn:active {
    transform: scale(0.98);
}

.close-btn:active {
    transform: scale(0.98);
}

.success-popup h2 {
    color: #333;
    margin: 10px 0;
}

.success-popup p {
    color: #666;
    margin-bottom: 20px;
}

.close-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: #45a049;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .navbar-container {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px;
        display: block;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-dark);
        text-decoration: none;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .mobile-menu {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
    }

    .mobile-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--text-dark);
        transition: all 0.3s ease;
    }

    .mobile-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Remove duplicate popup-content styles and keep only this one */
.popup-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: popupIn 0.5s ease-in-out;
}

/* Footer styles remain the same */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .footer-section {
        text-align: center;
    }

    .contact-info {
        justify-content: center;
    }

    .contact-group {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-group span {
        font-size: 14px;
        word-wrap: break-word;
        max-width: 100%;
    }

    .social-links {
        justify-content: center;
    }
}

/* Utility classes for text handling */
.text-wrap {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 100%;
}