/* --- Contact Page Styles --- */

/* Hero */
.contact-hero {
    text-align: center;
    padding: 80px 20px 40px;
    background: radial-gradient(circle at center, #2a2a2a, var(--dark-bg));
}

.contact-hero h1 { font-size: 3rem; color: white; margin-bottom: 10px; }
.contact-hero p { color: var(--text-dim); }

/* Main Section */
.contact-section { padding: 50px 0 100px; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Form Styles */
.contact-form-wrapper {
    background: #252525;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: var(--text-light); margin-bottom: 8px; font-size: 0.9rem; }

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-block { width: 100%; }

/* Info & FAQ Styles */
.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(33, 150, 243, 0.1);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--primary);
    margin-bottom: 40px;
}

.info-card .icon-box { margin-bottom: 0; font-size: 1.5rem; }
.info-card h3 { color: white; margin-bottom: 5px; font-size: 1.1rem; }
.email-link { color: var(--primary); font-weight: 600; font-size: 1.1rem; }

/* FAQ Styles */
.faq-section h3 { color: white; margin-bottom: 20px; }

.faq-item {
    background: #252525;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-weight: 500;
    transition: background 0.3s;
}

.faq-question:hover { background: #2a2a2a; }

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #1f1f1f;
}

/* FAQ Active State */
.faq-item.active .faq-answer { padding: 15px 20px; max-height: 200px; }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--primary); }

/* --- MODAL & WAVE ANIMATION --- */

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: #252525;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* The Wave Container */
.wave-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 60px;
}

.wave-bar {
    width: 8px;
    height: 20px;
    background: var(--primary);
    border-radius: 4px;
    animation: wave-bounce 1s infinite ease-in-out;
}

/* Stagger the bars to create "wave" effect */
.wave-bar:nth-child(1) { animation-delay: 0.0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave-bounce {
    0%, 100% { height: 20px; opacity: 0.5; }
    50% { height: 60px; opacity: 1; box-shadow: 0 0 10px var(--primary); }
}

/* Success Message State */
.success-message {
    display: none; /* Hidden by default */
}

.success-message i {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 15px;
}

.success-message h3 { color: white; margin-bottom: 5px; }
.success-message p { color: var(--text-dim); margin-bottom: 20px; }

/* Fade in for the success text */
.fade-in { animation: fadeIn 0.5s ease forwards; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .email-link { font-size: 1rem; }
}