/* /var/www/html/changingper/css/contact.css */

:root {
    --primary-blue: #2c3e50;
    --soft-gold: #f39c12;
    --calm-teal: #16a085;
    --sage-bg: #dde2d5;      
    --title-bg: #fdfbf7;
    --text-gray: #3e3e3e;
    --container-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-gray);
    background-color: var(--sage-bg);
    line-height: 1.6; /* Matched to index/therapies */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- THE HEAD: Exact match to avoid shifts --- */
.navbar-head {
    background: white;
    padding: 15px 45px;
    border-radius: 0 0 50px 50px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}

.nav-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo img { height: 110px; width: auto; }

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 30px; 
    align-items: center; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--primary-blue); 
    font-weight: 500; 
    font-size: 1rem; 
    position: relative;
    transition: color 0.3s ease;
}

.text-teal { color: var(--calm-teal) !important; font-weight: 600 !important; }
.text-gold { color: var(--soft-gold) !important; font-weight: 600 !important; }

/* Global Underline Consistency */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -4px; left: 0;
    background-color: var(--soft-gold);
    transition: width 0.3s ease;
}

.nav-links a.text-teal::after { background-color: var(--calm-teal); }

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* --- TITLE PILL --- */
.title-pill {
    background-color: var(--title-bg);
    padding: 20px;
    border-radius: 100px;
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
}

.title-pill h1 { font-size: 2.2rem; color: var(--primary-blue); font-weight: 300; }
.title-pill h1 span { font-weight: 700; }
.title-pill p { font-size: 0.95rem; color: #7a8a7c; font-style: italic; }

/* --- CONSOLIDATED CONTACT BOX --- */
.contact-main-box {
    background: white;
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    text-align: center;
    margin: 0 auto 20px auto;
    width: 100%;
    overflow: hidden; 
}

.crisis-header {
    background-color: #fff0f0;
    padding: 10px 30px;
    border-bottom: 1px solid #ffcccc;
}

.crisis-header p { color: #c9302c; font-size: 0.85rem; }

.inquiry-section { padding: 25px 40px 10px 40px; }
.inquiry-section h3 { color: var(--calm-teal); font-size: 1.4rem; margin-bottom: 5px; }

.contact-details p { font-size: 1.1rem; }
.contact-details a { color: var(--primary-blue); text-decoration: none; font-weight: 600; }

.action-divider { height: 1px; background: #f0f0f0; width: 30%; margin: 15px auto; }

.action-section { padding: 0 40px 30px 40px; }
.service-notice { font-size: 0.9rem; color: #666; margin-bottom: 15px; }

.button-group { display: flex; justify-content: center; gap: 15px; }

.btn {
    padding: 12px 35px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}

.btn-teal { background: var(--calm-teal); color: white; }
.btn-gold { background: var(--soft-gold); color: white; }
.btn.disabled { opacity: 0.6; cursor: default; pointer-events: none; }

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; 
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: 0.3s; z-index: 9999;
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background: white;
    width: 90%; max-width: 850px; height: 80vh;
    border-radius: 25px; position: relative; overflow: hidden;
}

.close-btn { position: absolute; top: 15px; right: 20px; font-size: 2rem; border: none; background: none; cursor: pointer; z-index: 10; }

#contact-iframe { width: 100%; height: 100%; padding-top: 40px; }

footer { padding: 40px 0; text-align: center; font-size: 0.8rem; color: #6a7a6c; }

.animate-slide {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 850px) {
    .nav-flex { flex-direction: column; gap: 15px; }
    .logo img { height: 80px; }
    .nav-links { gap: 15px; }
}