/* Contact Popup Styles - Innovative Design */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 184, 193, 0.1) 0%, rgba(109, 214, 220, 0.05) 50%, rgba(52, 184, 193, 0.1) 100%);
    backdrop-filter: blur(12px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: overlayFadeIn 0.6s ease-out;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(12px) saturate(180%);
    }
}

.popup-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 24px;
    padding: 0;
    max-width: 520px;
    width: 90%;
    box-shadow: 
        0 32px 64px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(52, 184, 193, 0.2);
    position: relative;
    overflow: hidden;
    animation: popupBounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

@keyframes popupBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotateX(-15deg) translateY(-100px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) rotateX(5deg) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateX(0deg) translateY(0);
    }
}

.popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.popup-content::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(52, 184, 193, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

.popup-header {
    text-align: center;
    padding: 2rem 2.5rem 1rem;
    background: linear-gradient(135deg, rgba(52, 184, 193, 0.05) 0%, transparent 100%);
    position: relative;
    padding-top: 0;
}

.popup-header>*{
}

.nav-logo-container {
    padding: 1.5em 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo {
    height: 56px;
    width: auto;
    max-width: 240px;
    min-width: 140px;
    object-fit: contain;
    transition: all 0.3s ease;
    animation: bounce 2s ease-in-out infinite;
}

.nav-logo:hover {
    transform: scale(1.05);
}

/* .popup-header::before {
    content: '🎓';
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.8;
    animation: bounce 2s ease-in-out infinite;
}*/

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
} 

.popup-title {
    font-size: 1.75rem;
    
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
}

.popup-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.popup-form {
    width: 100%;
    padding: 0 2.5rem 2rem;
}

.popup-form .form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.zipcode_input_grid{
    grid-template-columns: 1fr 3fr;
}

.form-grid .form-group {
    margin-bottom: 0;
}

.contact-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 2px solid rgba(52, 184, 193, 0.2);
    border-radius: 16px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.contact-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 4px rgba(52, 184, 193, 0.1),
        0 8px 25px rgba(52, 184, 193, 0.15);
    transform: translateY(-2px);
}



.contact-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.contact-input:focus::placeholder {
    opacity: 0.5;
    transform: translateY(-2px);
}

/* Phone input with dial code styling */
.contact-input[type="tel"] {
    font-family: monospace;
}

.contact-input[type="tel"]:not(:placeholder-shown) {
    
}

/* Searchable Dropdown Styles */
.searchable-dropdown {
    position: relative;
    width: 100%;
}

.searchable-dropdown .contact-input {
    cursor: pointer;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid rgba(52, 184, 193, 0.2);
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(52, 184, 193, 0.15);
    margin-top: 0.5rem;
    display: none;
}

.dropdown-option {
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(52, 184, 193, 0.1);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: linear-gradient(135deg, rgba(52, 184, 193, 0.1) 0%, rgba(52, 184, 193, 0.05) 100%);
    color: var(--color-primary);
    padding-left: 1.5rem;
}

.dropdown-option.no-results {
    color: var(--text-secondary);
    cursor: default;
    text-align: center;
    opacity: 0.7;
}

.dropdown-option.no-results:hover {
    background: transparent;
    padding-left: 1.25rem;
}

/* Scrollbar styling for dropdown */
.dropdown-options::-webkit-scrollbar {
    width: 8px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: rgba(52, 184, 193, 0.05);
    border-radius: 10px;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}

.dropdown-options::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

.popup-form .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.popup-form .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    
    min-width: 140px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.popup-form .btn::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;
}

.popup-form .btn:hover::before {
    left: 100%;
}

.popup-form .btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    border: none;
    box-shadow: 
        0 8px 25px rgba(52, 184, 193, 0.3),
        0 4px 12px rgba(52, 184, 193, 0.2);
}

.popup-form .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(52, 184, 193, 0.4),
        0 6px 20px rgba(52, 184, 193, 0.3);
}

.popup-form .btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.popup-login-link {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1.5rem 2.5rem 0;
    border-top: 1px solid rgba(52, 184, 193, 0.1);
    position: relative;
}

.popup-login-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}



.popup-login-link p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-link {
    color: var(--color-primary);
    text-decoration: none;
    
    position: relative;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.login-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.login-link:hover {
    color: var(--color-primary-dark);
    background: rgba(52, 184, 193, 0.1);
}

.login-link:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-content {
        margin: 1rem;
        max-width: none;
        width: calc(100% - 2rem);
        border-radius: 20px;
    }
    
    .popup-header {
        padding: 2rem 1.5rem 1rem;
    }
    
    .popup-header::before {
        font-size: 1.5rem;
        top: 0.5rem;
    }
    
    .popup-title {
        font-size: 1.4rem;
        margin-top: 1rem;
    }
    
    .popup-description {
        font-size: 0.9rem;
    }
    
    .popup-form {
        padding: 0 1.5rem 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-grid .form-group {
        margin-bottom: 0;
    }
    
    .contact-input {
        padding: 1rem 1.25rem;
        border-radius: 12px;
        font-size: 0.95rem;
    }
    
    .popup-form .form-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .popup-form .btn {
        width: 100%;
        padding: 1rem 2rem;
        border-radius: 12px;
        min-width: auto;
    }
    
    .popup-login-link {
        padding: 1rem 1.5rem 0;
    }
    
    .dropdown-options {
        max-height: 250px;
    }
    
    .dropdown-option {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
    .popup-title {
        font-size: 1.25rem;
    }
    
    .popup-description {
        font-size: 0.85rem;
    }
    
    .popup-header {
        padding: 1.5rem 1.25rem 0.75rem;
    }
    
    .popup-form {
        padding: 0 1.25rem 1.5rem;
    }
    
    .contact-input {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .dropdown-options {
        max-height: 200px;
    }
    
    .dropdown-option {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
    }
}

