/* ============================================
   CONTACT MODAL CSS — Triple A-Tech
   Dark Theme
   ============================================ */

.contact-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.contact-modal-overlay.show {
    display: flex;
    animation: fadeIn 0.25s ease;
}

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

.contact-modal {
    background: #151a22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.contact-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    background: #151a22;
    border-radius: 20px 20px 0 0;
    z-index: 1;
}

.contact-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.contact-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-modal-close:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.contact-modal-body {
    padding: 1.5rem;
}

.contact-modal-body .form-group {
    margin-bottom: 1.25rem;
}

.contact-modal-body .form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.contact-modal-body .form-label.required::after {
    content: ' *';
    color: #e74c3c;
}

.contact-modal-body .form-input,
.contact-modal-body .form-textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    outline: none;
}

.contact-modal-body .form-input:focus,
.contact-modal-body .form-textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.contact-modal-body .form-textarea {
    min-height: 80px;
    resize: vertical;
}

.contact-modal-body .form-input.error,
.contact-modal-body .form-textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.contact-modal-body .form-error {
    display: none;
    font-size: 0.7rem;
    color: #e74c3c;
    margin-top: 0.3rem;
}

.contact-modal-body .form-error.show {
    display: block;
}

/* Select styling */
.contact-modal-body select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%235dade2' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.contact-modal-body select.form-input option {
    background: #151a22;
    color: #fff;
}

.contact-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    bottom: 0;
    background: #151a22;
    border-radius: 0 0 20px 20px;
}

.contact-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.contact-modal-btn:hover {
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

.contact-modal-btn:active {
    transform: scale(0.97);
}

/* ===== CUSTOM SCROLLBAR ===== */
.contact-modal::-webkit-scrollbar {
    width: 5px;
}

.contact-modal::-webkit-scrollbar-track {
    background: transparent;
}

.contact-modal::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.2);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.contact-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.4);
}

/* Firefox */
.contact-modal {
    scrollbar-width: thin;
    scrollbar-color: rgba(52, 152, 219, 0.2) transparent;
    scroll-behavior: smooth;
}

@media (max-width: 480px) {
    .contact-modal {
        max-width: 100%;
        border-radius: 16px;
    }
    .contact-modal-body {
        padding: 1.25rem;
    }
}