/* ===================================
   Variáveis de Cores
   =================================== */
:root {
    --primary-color: #f2f209;
    --primary-dark: #d9d008;
    --secondary-color: #FFFFFF;
    --tertiary-color: #F5F5F5;
    --text-dark: #2C2C2C;
    --text-gray: #666666;
    --border-color: #E0E0E0;
    --success-color: #4CAF50;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Reset e Configurações Globais
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--tertiary-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Header
   =================================== */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo h1 {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 1rem;
}

/* Botão Planos - Preto com letras brancas */
nav a:first-child {
    background-color: #2C2C2C;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    border: 2px solid #2C2C2C;
}

nav a:first-child:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

/* Botão Assinar - Branco com borda preta e letras pretas */
nav a:last-child {
    background-color: #FFFFFF;
    color: #2C2C2C;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    border: 2px solid #2C2C2C;
}

nav a:last-child:hover {
    background-color: #f0f0f0;
}

nav a:last-child.active {
    background-color: #2C2C2C;
    color: #FFFFFF;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    background: #F5F5F5;
    padding: 4rem 0;
    text-align: center;
    color: var(--text-dark);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* ===================================
   Plans Section
   =================================== */
.plans {
    padding: 4rem 0;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--secondary-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.card-featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.card-header {
    text-align: center;
    border-bottom: 2px solid var(--tertiary-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.currency {
    font-size: 1.25rem;
    color: var(--text-gray);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 1rem;
    color: var(--text-gray);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
}

.check-icon {
    flex-shrink: 0;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-copy {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.btn-copy:hover {
    background: var(--primary-dark);
}

/* ===================================
   Form Section
   =================================== */
.form-section {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--secondary-color);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-header p {
    color: var(--text-gray);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-step {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-step.hidden {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-message {
    color: #f44336;
    font-size: 0.875rem;
    display: none;
}

.error-message.show {
    display: block;
}

.user-info {
    text-align: center;
    padding: 2rem;
    background: var(--tertiary-color);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.user-avatar {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.user-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.doc-number {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.doc-extra {
    color: var(--text-gray);
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 0.25rem;
}

/* Campo de data readonly */
input[readonly] {
    background-color: #f5f5f5 !important;
    cursor: not-allowed !important;
    color: var(--text-gray) !important;
    border-color: #e0e0e0 !important;
}

input[readonly]:focus {
    border-color: #e0e0e0 !important;
    box-shadow: none !important;
}

.plan-selected {
    background: var(--tertiary-color);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.plan-selected h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.plan-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ===================================
   Payment Section
   =================================== */
.payment-section {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

.payment-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--secondary-color);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.payment-header {
    text-align: center;
    margin-bottom: 3rem;
}

.success-icon {
    margin-bottom: 1rem;
}

.payment-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.payment-header p {
    color: var(--text-gray);
    font-size: 1.125rem;
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.order-summary {
    background: var(--tertiary-color);
    padding: 1.5rem;
    border-radius: 12px;
}

.order-summary h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.summary-item.total {
    font-size: 1.25rem;
    padding-top: 1rem;
}

.pix-container {
    text-align: center;
}

.pix-container h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.pix-instructions {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.qr-code {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--tertiary-color);
    border-radius: 12px;
}

.pix-code-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pix-code-container input {
    flex: 1;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: monospace;
    background: var(--tertiary-color);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #E8F5E9;
    color: var(--success-color);
}

.alert.hidden {
    display: none;
}

.pix-note {
    background: #FFF9E6;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.pix-note p {
    color: var(--text-dark);
    font-size: 0.875rem;
}

.payment-actions {
    margin-top: 2rem;
    text-align: center;
}

/* ===================================
   Footer
   =================================== */
footer {
    background: var(--text-dark);
    color: var(--secondary-color);
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

footer p {
    opacity: 0.8;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.75rem;
    }

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

    .cards-container {
        grid-template-columns: 1fr;
    }

    .card-featured {
        transform: scale(1);
    }

    .card-featured:hover {
        transform: translateY(-8px);
    }

    nav {
        gap: 0.5rem;
    }

    nav a:first-child,
    nav a:last-child {
        padding: 0.4rem 1rem;
        font-size: 0.875rem;
    }

    .form-container,
    .payment-container {
        padding: 1.5rem;
    }

    .form-actions {
        grid-template-columns: 1fr;
    }

    .pix-code-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 35px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .amount {
        font-size: 2.5rem;
    }

    .payment-header h2,
    .form-header h2 {
        font-size: 1.5rem;
    }
}

/* ===================================
   Novos Estilos - Site de Referência
   =================================== */

/* Novo Header */
.new-header {
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}

.btn-cadastro {
    background-color: #000000;
    color: #FFFFFF;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cadastro:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
}

/* Hero Main */
.hero-main {
    background-color: #F5F5F5;
    padding: 3rem 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-dark);
    max-width: 900px;
    margin: 0 auto;
}

/* Slider Section */
.slider-section {
    background-color: #FFFFFF;
    padding: 2rem 0;
}

.slider-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.5s;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f2f209;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slider-dots {
    text-align: center;
    padding: 20px 0;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
    background-color: #000000;
}

/* FAQ Section */
.faq-section {
    background-color: #1a1a1a;
    color: #FFFFFF;
    padding: 4rem 0;
}

.faq-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #FFFFFF;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item-wrapper {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 2rem;
}

.faq-question {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.question-icon {
    color: #f2f209;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.faq-question p {
    margin: 0;
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 600;
}

.faq-answer {
    padding-left: 2.5rem;
}

.faq-answer p {
    margin: 0;
    color: #CCCCCC;
    line-height: 1.6;
    font-size: 1rem;
}

/* New Footer */
.new-footer {
    background-color: #F5F5F5;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--text-dark);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-dark);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-col a:hover {
    opacity: 0.7;
}

.footer-col p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.app-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.app-btn img {
    height: 40px;
    width: auto;
}

.social-title {
    margin-top: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-dark);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #E0E0E0;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
}

.footer-bottom p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.responsibility {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.cookie-link {
    color: var(--text-dark);
    text-decoration: underline;
    font-size: 0.875rem;
}

.cookie-link:hover {
    opacity: 0.7;
}

/* Responsive - Novos componentes */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

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

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

    .slider-container {
        padding: 0 2rem;
    }

    .slider-wrapper {
        height: 280px;
    }

    .faq-list {
        padding: 0 1rem;
    }

    .faq-item-wrapper {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .app-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .btn-cadastro {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .slider-container {
        padding: 0 1rem;
    }

    .slider-wrapper {
        height: 220px;
    }

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

    .faq-item-wrapper {
        padding: 1rem;
    }

    .faq-question p {
        font-size: 1rem;
    }

    .faq-answer {
        padding-left: 1.5rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }
}
