/* =========================================
   СТИЛІ ДЛЯ СТОРІНКИ КОНТАКТІВ (contacts.css)
   ========================================= */

.content-wrapper-contacts {
    /* position: relative; */
    /* z-index: 10; */
}

/* --- HERO СЕКЦІЯ КОНТАКТІВ --- */
.contacts-hero {
    position: relative;
    padding: 110px 0 60px;
    background: linear-gradient(to right, rgba(15, 19, 25, 1) 0%, rgba(15, 19, 25, 0.8) 50%, rgba(15, 19, 25, 0.3) 100%), url(../image/contacts-hero-bg.jpeg) no-repeat center right;
    background-size: cover;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.contacts-hero-content {
    padding: 80px 20px 0;
}

.contacts-hero-content h1 {
    font-size: 5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    font-weight: 500;
}

.contacts-hero-content p {
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

.contacts-desc {
    color: var(--sub-text-light) !important;
    font-size: 1rem !important;
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 40px !important;
}

.hero-features-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-white);
    font-size: 0.75rem;
    letter-spacing: 1px;
    line-height: 1.4;
}

.feature-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* --- ГОЛОВНА СЕКЦІЯ ТА КАРТКИ --- */
.contacts-main {
    padding: 60px 0 100px;
    position: relative;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    margin-bottom: 30px;
}

.contact-card {
    background: rgba(24, 29, 36, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 40px 40px 20px;
    transition: border-color 0.3s ease;
}

.contact-card:hover {
    border-color: rgba(212, 175, 55, 0.2);
}

.card-title {
    color: var(--text-gold);
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* Контактна інформація (Ліва картка) */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon-box {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon-box img {
    width: 25px;
    height: 25px;
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    color: var(--sub-text-light);
    margin-bottom: 4px;
}

.info-value {
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 4px;
}

.info-sub {
    font-size: 0.8rem;
    color: var(--sub-text);
}

/* Форма (Права картка) */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.input-group {
    flex: 1;
}

input, textarea {
    width: 100%;
    background: rgba(15, 19, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 15px 20px;
    color: var(--text-white);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    outline: none;
}

input::placeholder, textarea::placeholder {
    color: var(--sub-text-light);
}

input:focus, textarea:focus {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(15, 19, 25, 0.8);
}

textarea {
    resize: vertical;
}

/* --- КНОПКА ФОРМИ --- */
/* Розтягуємо глобальну кнопку .btn-cta на 100% ширини форми */
.btn-submit {width: 70%;margin: 10px auto;}

.btn-submit .btn-text {
    flex: 1; /* Змушує текст центруватися, відштовхуючи стрілку вправо */
    justify-content: center;
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.privacy-note img {
    width: 25px;
    opacity: 0.6;
}

.privacy-note span {
    font-size: 0.75rem;
    color: var(--sub-text);
}

/* --- СЕКЦІЯ СПІЛЬНОТИ --- */
.community-box {
    background: rgba(24, 29, 36, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    transition: border-color 0.3s ease;
}

.community-box:hover {
    border-color: rgba(212, 175, 55, 0.2);
}

.community-text {
    max-width: 600px;
}

.community-text p {
    color: var(--text-white);
    font-size: 1.1rem;
}

.community-socials {
    display: flex;
    gap: 15px;
}

.social-circle {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-circle img {
    width: 25px;
    height: 25px;
}

.social-circle:hover {
    border-color: var(--text-gold);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-3px);
}

/* --- FAQ СЕКЦІЯ --- */
/* --- СЕКЦІЯ FAQ ТА ФОН СПРАВА --- */
.faq-wrapper {
    position: relative;
    width: 100%;
    /* Фонова картинка розміщується праворуч від блоку FAQ */
    background: url('../image/faq-bg.png') no-repeat right center;
    background-size: 50% auto; /* Картинка займає ~32% ширини справа */
}

/* Блок FAQ займає 66% ширини сторінки */
.faq-section {
    width: 66%;
    background: rgba(24, 29, 36, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 40px;
    transition: border-color 0.3s ease;
}

.faq-section:hover {
    border-color: rgba(212, 175, 55, 0.2);
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
}

.faq-question {
    font-size: 1.1rem;
    color: var(--text-white);
    transition: color 0.3s ease;
    font-weight: 400;
}

.faq-plus {
    color: var(--text-gold);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.4s ease;
}

.faq-header:hover .faq-question {
    color: var(--text-gold);
}

/* Активний стан (JS) */
.faq-item.active .faq-question {
    color: var(--text-gold);
}

.faq-item.active .faq-plus {
    transform: rotate(45deg); /* Поворот плюсика */
}

/* Прихована відповідь */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--sub-text-light);
    line-height: 1.6;
    padding-bottom: 20px;
}

/* Показуємо відповідь */
.faq-item.active .faq-answer {
    max-height: 300px;
    opacity: 1;
}

/* --- АДАПТИВНІСТЬ --- */
@media (max-width: 900px) {
    .contacts-hero h1{
        font-size: 4rem;
    }
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .community-box {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .card-title {
        text-align: center;
    }
    
    .community-text p {
        margin: 0 auto;
    }
    
    .hero-features-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .faq-wrapper {
        background-image: none; /* Прибираємо фонову картинку на мобільних */
    }
    
    .faq-section {
        width: 100%; /* На мобільних розтягуємо картку на 100% */
        padding: 30px 20px;
    }
    
    .faq-content {
        max-width: 100%; /* Текст на 100% ширини */
    }
}