/* ===========================
   FAQ PAGE — faq.css
=========================== */

/* ---------------------------
   HERO
--------------------------- */
.faq-hero {
    position: relative;
    padding: 9rem 0 5rem;
    min-height: 42vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.faq-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: scale(1.05);
}

.faq-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 17, 23, 0.95) 0%,
        rgba(17, 24, 39, 0.85) 60%,
        rgba(220, 38, 38, 0.1) 100%
    );
}

.faq-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 0;
}

.faq-hero-content .section-label {
    color: rgba(249, 250, 251, 0.6);
    margin-bottom: 0.75rem;
    display: block;
}

.faq-hero-content h1 {
    margin: 0.5rem 0 1rem;
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: #F9FAFB;
}

.faq-hero-content p {
    max-width: 540px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: rgba(249, 250, 251, 0.75);
    line-height: 1.75;
}

/* ---------------------------
   FAQ ACCORDION SECTION
--------------------------- */
.faq-page-section {
    background: var(--bg-primary);
}

.faq-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-page-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-top: 0.5rem;
}

.faq-page-header h2 span {
    color: var(--accent);
}

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item.open {
    border-color: rgba(220, 38, 38, 0.4);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    flex-shrink: 0;
    transition: transform var(--transition), stroke var(--transition);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    stroke: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    font-size: 0.9rem;
    line-height: 1.8;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.faq-answer strong {
    color: var(--accent);
}

/* ---------------------------
   FORM SECTION
--------------------------- */
.faq-form-section {
    background: var(--bg-section);
    border-top: 1px solid var(--border);
}

.faq-form-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: start;
}

.faq-form-intro .section-label {
    margin-bottom: 0.5rem;
}

.faq-form-intro h2 {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    margin: 0.5rem 0 1rem;
    line-height: 1.25;
}

.faq-form-intro h2 span {
    color: var(--accent);
}

.faq-form-intro > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.faq-form-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-form-contact p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Form inherits contact.css styles for .contact-form, .form-group, .form-row, .form-alert */
.faq-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.faq-form-wrap .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-form-wrap .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.faq-form-wrap .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-form-wrap .form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-form-wrap .form-group label span {
    color: var(--accent);
}

.faq-form-wrap .form-group input,
.faq-form-wrap .form-group textarea {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.faq-form-wrap .form-group input::placeholder,
.faq-form-wrap .form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.faq-form-wrap .form-group input:focus,
.faq-form-wrap .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.faq-form-wrap .form-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.faq-form-wrap .form-alert--success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.faq-form-wrap .form-alert--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

/* ---------------------------
   CTA  (reuses .cta-section from style.css or servicii.css)
--------------------------- */
.cta-section {
    position: relative;
    padding: 7rem 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 17, 23, 0.92) 0%,
        rgba(17, 24, 39, 0.80) 60%,
        rgba(220, 38, 38, 0.12) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-content .section-label {
    color: rgba(249, 250, 251, 0.6);
    display: block;
    margin-bottom: 0.75rem;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: #F9FAFB;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(249, 250, 251, 0.75);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.cta-phones {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------------------------
   RESPONSIVE
--------------------------- */
@media (max-width: 992px) {
    .faq-form-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .faq-form-intro {
        text-align: center;
    }

    .faq-form-contact {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .faq-hero {
        padding: 7rem 0 4rem;
    }

    .cta-bg {
        background-attachment: scroll;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .faq-form-wrap {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 5rem 0;
    }
}
