/* Popup Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 540px;
    padding: 2.25rem;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
}

.modal-close:hover {
    color: #0f172a;
}

.modal-card h3 {
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    text-align: left;
}

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

@media(max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.form-group input, 
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.925rem;
    font-family: inherit;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.phone-input-group {
    display: flex;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.phone-input-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.country-select {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.75rem;
    background: #f8fafc;
    border-right: 1px solid #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
}

.phone-input-group input {
    border: none;
    flex: 1;
    border-radius: 0;
}

.phone-input-group input:focus {
    box-shadow: none;
}

.submit-btn {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 0.85rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background-color: #1d4ed8;
}

.form-status {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    margin-top: -0.5rem;
}

.modal-whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    color: #16a34a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-whatsapp-link:hover {
    text-decoration: underline;
}

/* Styling for Country Code Dropdown */
.country-select-dropdown {
    padding: 0.75rem 0.5rem;
    background: #f8fafc;
    border: none;
    border-right: 1px solid #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    cursor: pointer;
    max-width: 150px;
    font-family: inherit;
}

.country-select-dropdown:focus {
    background: #ffffff;
}