@import 'user/colors.css';

.support-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
}

.page-title {
    text-align: center;
    color: var(--text-heading);
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.page-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.page-subtitle a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.page-subtitle a:hover {
    text-decoration: underline;
}

/* =========================================
   STILE FAQ (Identico alle News)
   ========================================= */
.faq-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--bg-white);
}

.faq-header:hover {
    background-color: #f8fafc;
}

.faq-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0;
    flex-grow: 1;
    padding-right: 20px;
}

/* Tondino freccia */
.expand-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-card.active .expand-icon {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    color: var(--text-body);
    line-height: 1.6;
    background-color: var(--bg-body-alt);
    border-top: 1px solid transparent;
    transition: all 0.4s ease;
}

.faq-card.active .faq-answer {
    max-height: 300px; /* Altezza massima per il testo */
    padding-bottom: 25px;
    padding-top: 15px;
    border-top-color: var(--border-color-light);
}

/* =========================================
   STILE FORM DI CONTATTO
   ========================================= */
.contact-form-wrapper {
    margin-top: 60px;
    margin-bottom: 40px;
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 24px; /* Molto stondato */
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.form-header h3 {
    color: var(--text-heading);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-heading);
}

/* Input e Select stondati */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--border-focus);
}

textarea.form-control {
    resize: vertical; /* Permette di allungare la box */
    min-height: 120px;
}

/* Messaggio di successo nascosto */
.success-message {
    display: none; /* Nascosto di default */
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.5s ease;
}

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