#contact-overlay {
    position: fixed;
    inset: 0; /* shorthand for top/right/bottom/left: 0 */
    background: rgba(0, 0, 0, 0.772);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    overflow: auto;
    padding-bottom: 50px;
}
#contact-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.contact-card {
    position: relative;
    left: 50%;
    top: 0px;
    margin-top: 50px;
    margin-bottom: 50px;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    transform: translateX(-50%) translateY(-100%);
    transition: transform 0.3s ease;
}
#contact-overlay.active .contact-card {
    transform: translateX(-50%) translateY(0);
}

.contact-header {
    background-color: var(--dark);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.contact-header h2 {
    font-size: 1.8rem;
    padding: 1.2rem 0rem;
}

.contact-header p {
    opacity: 0.9;
    margin-bottom: 15px;
}

.phone-number {
    display: inline-flex;
    align-items: center;
    background-color: var(--darker);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 5px;
}

.phone-number::before {
    content: "📞";
    margin-right: 8px;
}

.contact-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--darker);
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(116, 173, 140, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 14px 25px;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.submit-btn:hover {
    background-color: var(--dark);
}

.required::after {
    content: " *";
    color: #e74c3c;
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 50px;
    color: #fafafa;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #000;
}

@media (max-width: 480px) {
    .contact-header, .contact-form {
        padding: 20px;
    }
    
    .contact-header h2 {
        font-size: 1.5rem;
    }
    
    .phone-number {
        font-size: 1rem;
    }
}