/**
 * Contact Page CSS
 * Página de Contato - Petições Online
 * Bootstrap 5 + Tema Verde
 */

:root {
    --verde-primario: #1a5943;
    --verde-medio: #27AE60;
    --verde-claro: #4dd4ac;
    --verde-escuro: #145238;
    --branco: #ffffff;
    --cinza-claro: #f8f9fa;
    --cinza-medio: #6c757d;
    --cinza-escuro: #2c3e50;
}

/* ==========================================
   HELP BANNER (Bloco de Ajuda Imediata)
   ========================================== */

.help-banner {
    background: linear-gradient(135deg, var(--verde-primario) 0%, var(--verde-medio) 100%);
    border-radius: 12px;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(26, 89, 67, 0.2);
    gap: 24px;
}

.help-banner-content {
    flex: 1;
}

.help-banner-title {
    color: var(--branco);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.help-banner-text {
    color: var(--branco);
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
}

.help-banner-btn {
    background: var(--branco);
    color: var(--verde-primario);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: inline-block;
}

.help-banner-btn:hover {
    background: var(--cinza-claro);
    color: var(--verde-escuro);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Responsividade do Help Banner */
@media (max-width: 768px) {
    .help-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .help-banner-title {
        font-size: 1.1rem;
    }

    .help-banner-text {
        font-size: 0.95rem;
    }

    .help-banner-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */

.contact-hero {
    background: linear-gradient(135deg, var(--verde-primario) 0%, var(--verde-medio) 100%);
    padding: 60px 0 80px;
    color: var(--branco);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Info Cards */
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--branco);
    color: var(--verde-primario);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--branco);
}

.info-content p,
.info-content a {
    font-size: 1.1rem;
    margin: 0;
    color: var(--branco);
    text-decoration: none;
    opacity: 0.9;
}

.info-content a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ==========================================
   CONTACT FORM
   ========================================== */

.contact-form-container {
    background: var(--branco);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--verde-primario);
    margin-bottom: 1.5rem;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--cinza-escuro);
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--verde-medio);
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.15);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--verde-primario) 0%, var(--verde-medio) 100%);
    color: var(--branco);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--verde-escuro) 0%, var(--verde-primario) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 89, 67, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Form Messages */
.form-success,
.form-error {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.form-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-success i {
    font-size: 1.5rem;
}

.form-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-error i {
    font-size: 1.5rem;
}

/* ==========================================
   FAQ SECTION
   ========================================== */

.faq-section {
    padding: 80px 0;
    background: var(--cinza-claro);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--verde-primario);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--cinza-medio);
    text-align: center;
    margin-bottom: 3rem;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.accordion-button {
    background: var(--branco);
    color: var(--verde-primario);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: var(--verde-primario);
    color: var(--branco);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    filter: brightness(0) invert(0.4);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--cinza-escuro);
    background: var(--branco);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .contact-info-cards {
        margin-bottom: 3rem;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .contact-hero {
        padding: 40px 0 60px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .info-card {
        padding: 1.25rem;
    }

    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .faq-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .accordion-button {
        font-size: 1rem;
        padding: 1rem;
    }

    .accordion-body {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

/* ==========================================
   CONTACT MODAL
   ========================================== */

.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.contact-modal {
    background: var(--branco);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--cinza-medio);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-modal-close:hover {
    background: var(--cinza-claro);
    color: var(--cinza-escuro);
}

.contact-modal-content {
    padding: 40px;
    text-align: center;
}

.contact-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--verde-primario) 0%, var(--verde-medio) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--branco);
    font-size: 2.5rem;
}

.contact-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--verde-primario);
    margin-bottom: 15px;
}

.contact-modal-message {
    font-size: 1.1rem;
    color: var(--cinza-escuro);
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-modal .btn {
    min-width: 150px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

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

.contact-form-container {
    animation: fadeInUp 0.6s ease-out;
}

.info-card {
    animation: fadeInUp 0.6s ease-out;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
