/* ============================================
   Contact Form Modal Styles
   ============================================ */

.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 10000;
    overflow-y: auto;
    padding: 1rem;
}

.contact-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding-top: 2rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.contact-modal-content {
    background: #0a0a0a;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    max-width: 550px;
    width: 100%;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.contact-modal-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.contact-modal-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
    letter-spacing: -0.02em;
    padding-right: 2rem;
}

.contact-modal-subtitle {
    font-size: clamp(0.9375rem, 1.5vw, 1rem);
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--white);
    font-family: var(--font);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

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

.form-group select {
    cursor: pointer;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact-submit-btn {
    margin-top: 1rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
}

.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9375rem;
    min-height: 24px;
}

/* Click outside to close hint */
.contact-modal::before {
    content: 'Click outside or press ESC to close';
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    pointer-events: none;
    opacity: 0;
    animation: fadeInHint 0.5s ease 0.5s forwards;
}

@keyframes fadeInHint {
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-modal {
        padding: 0.5rem;
    }
    
    .contact-modal.active {
        padding-top: 1rem;
    }
    
    .contact-modal-content {
        padding: 2rem 1.5rem;
        max-height: 95vh;
    }
    
    .contact-modal-title {
        font-size: 1.5rem;
    }
    
    .contact-modal-subtitle {
        font-size: 0.875rem;
    }
}
