/* ========================================
   RESET E BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-dark-bg: #0a0a0a;
    --color-dark-overlay: rgba(0, 0, 0, 0.75);
    --color-white: #ffffff;
    --color-green-neon: #ccff00;
    --color-green-bright: #b8ff00;
    --color-text-light: #f5f5f5;
    --color-text-gray: #9ca3af;
    --color-text-dark: #1f2937;
    --color-blue: #2563eb;
    --color-blue-dark: #1e40af;
    --color-gray-light: #e5e7eb;
    --color-gray-medium: #d1d5db;
    --color-gray-dark: #6b7280;
    --color-success: #10b981;
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-button: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-small: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-dark-bg);
    color: var(--color-white);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ========================================
   MENU HAMBÚRGUER
   ======================================== */
.menu-toggle {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    transition: opacity 0.3s ease;
}

.menu-toggle:hover {
    opacity: 0.8;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 10, 0.95) 50%, rgba(0, 0, 0, 0.9) 100%),
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    background-size: cover, cover, cover, cover;
    background-position: center, 20% 30%, 80% 70%, 40% 80%;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 0 80px;
    max-width: 60%;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.title-line-1 {
    display: block;
    color: var(--color-white);
    margin-bottom: 12px;
}

.title-line-2 {
    display: block;
}

.pedagios {
    color: var(--color-white);
}

.online {
    color: var(--color-green-neon);
    font-size: 72px;
    display: inline-block;
    text-shadow: 
        0 0 20px rgba(204, 255, 0, 0.8),
        0 0 40px rgba(204, 255, 0, 0.6),
        0 0 60px rgba(204, 255, 0, 0.4);
    font-weight: 900;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    font-weight: 300;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
}

/* ========================================
   CARD DE FORMULÁRIO
   ======================================== */
.form-card-container {
    position: fixed;
    bottom: 5%;
    right: 5%;
    width: 100%;
    max-width: 520px;
    z-index: 100;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-card);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 28px;
    line-height: 1.5;
    text-align: center;
}

/* ========================================
   FORMULÁRIO
   ======================================== */
.consult-form {
    width: 100%;
}

.input-group {
    margin-bottom: 24px;
}

.plate-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 2px solid var(--color-gray-light);
    border-radius: var(--radius-small);
    background: var(--color-white);
    color: var(--color-text-dark);
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-align: center;
}

.plate-input:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.plate-input::placeholder {
    color: var(--color-gray-dark);
    letter-spacing: 1px;
    text-transform: none;
    font-weight: 400;
}

/* ========================================
   CHECKBOXES
   ======================================== */
.checkboxes-group {
    margin-bottom: 28px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    cursor: pointer;
    position: relative;
    padding-left: 36px;
}

.checkbox-item:last-child {
    margin-bottom: 0;
}

.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: absolute;
    left: 0;
    top: 2px;
    height: 22px;
    width: 22px;
    background-color: var(--color-white);
    border: 2px solid var(--color-gray-medium);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.checkbox-item input[type="checkbox"]:checked ~ .checkbox-custom {
    background-color: #9333ea;
    border-color: #9333ea;
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.2);
}

.checkbox-custom:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-item input[type="checkbox"]:checked ~ .checkbox-custom:after {
    display: block;
}

.checkbox-text {
    font-size: 14px;
    color: var(--color-text-dark);
    line-height: 1.5;
}

.link-text {
    color: var(--color-blue);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.link-text:hover {
    color: var(--color-blue-dark);
}

/* ========================================
   BOTÃO BUSCAR
   ======================================== */
.btn-search {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-dark);
    background: var(--color-gray-light);
    border: none;
    border-radius: var(--radius-small);
    cursor: not-allowed;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.btn-search:enabled {
    color: var(--color-white);
    background: var(--color-blue);
    cursor: pointer;
    opacity: 1;
    box-shadow: var(--shadow-button);
}

.btn-search:enabled:hover {
    background: var(--color-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-search:enabled:active {
    transform: translateY(0);
}

/* ========================================
   TELA DE PAGAMENTO
   ======================================== */
.payment-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-bottom: 5%;
    padding-right: 5%;
    pointer-events: none;
}

.payment-screen .form-card-container {
    position: relative;
    pointer-events: auto;
    animation: slideUp 0.5s ease;
}

.result-info {
    background: #f3f4f6;
    border-radius: var(--radius-small);
    padding: 18px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.info-label {
    font-size: 14px;
    color: var(--color-gray-dark);
    font-weight: 500;
}

.info-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-dark);
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--color-success);
    color: var(--color-white);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

.amount-section {
    background: #f3f4f6;
    border-radius: var(--radius-small);
    padding: 20px;
    margin-bottom: 24px;
    border: 2px solid var(--color-gray-light);
}

.amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amount-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.amount-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-blue);
}

.payment-instruction {
    font-size: 14px;
    color: var(--color-gray-dark);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ========================================
   RESUMO E BOTÃO GERAR PIX
   ======================================== */
.pix-summary-section {
    margin-bottom: 24px;
}

.summary-box {
    background: #f9fafb;
    border: 2px solid var(--color-gray-light);
    border-radius: var(--radius-small);
    padding: 24px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.summary-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-dark);
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.summary-value-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-blue);
}

.btn-generate-pix {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-blue);
    border: none;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-button);
}

.btn-generate-pix:hover {
    background: var(--color-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-generate-pix:active {
    transform: translateY(0);
}

.btn-generate-pix:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   SEÇÃO PIX
   ======================================== */
.pix-payment-section {
    margin-bottom: 24px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pix-amount {
    text-align: center;
    margin-bottom: 24px;
    padding: 16px;
    background: #f9fafb;
    border-radius: var(--radius-small);
}

.pix-label {
    display: block;
    font-size: 14px;
    color: var(--color-gray-dark);
    margin-bottom: 8px;
}

.pix-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-blue);
}

.qrcode-container {
    margin-bottom: 24px;
}

.qrcode-instruction {
    font-size: 14px;
    color: var(--color-gray-dark);
    text-align: center;
    margin-bottom: 20px;
}

.qrcode-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-white);
    border: 2px solid var(--color-gray-light);
    border-radius: var(--radius-small);
    padding: 24px;
    margin-bottom: 24px;
    min-height: 320px;
}

.qrcode-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-gray-light);
    border-top-color: var(--color-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    color: var(--color-gray-dark);
    font-size: 14px;
    margin: 0;
}

.pix-key-section {
    margin-bottom: 20px;
}

.pix-key-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.pix-key-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.pix-key-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 14px;
    border: 2px solid var(--color-gray-light);
    border-radius: var(--radius-small);
    background: #f9fafb;
    color: var(--color-text-dark);
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.pix-key-input:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-copy {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-blue);
    border: none;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-button);
}

.btn-copy:hover {
    background: var(--color-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-copy:active {
    transform: translateY(0);
}

.copy-icon {
    font-size: 18px;
}

.copy-success {
    display: block;
    font-size: 13px;
    color: var(--color-success);
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
}

.payment-note {
    font-size: 13px;
    color: var(--color-gray-dark);
    text-align: center;
    font-style: italic;
    margin-top: 16px;
}

/* ========================================
   BOTÕES DE AÇÃO
   ======================================== */
.payment-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.btn-back {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-dark);
    background: var(--color-gray-light);
    border: none;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--color-gray-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
}

.btn-back:active {
    transform: translateY(0);
}

/* ========================================
   RESPONSIVO
   ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 70%;
        padding: 100px 0 0 60px;
    }

    .hero-title {
        font-size: 52px;
    }

    .online {
        font-size: 60px;
    }

    .form-card-container {
        right: 3%;
        bottom: 3%;
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        max-width: 100%;
        padding: 100px 20px 0 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .online {
        font-size: 44px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .form-card-container {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        padding: 0 20px 20px 20px;
    }

    .form-card {
        padding: 28px 24px;
    }

    .payment-screen {
        padding-right: 0;
        padding-bottom: 0;
    }

    .payment-screen .form-card-container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px 20px 20px;
    }

    .qrcode-wrapper {
        min-height: 280px;
        padding: 20px;
    }

    .pix-key-wrapper {
        flex-direction: column;
    }

    .btn-copy {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .menu-toggle {
        top: 20px;
        left: 20px;
        width: 28px;
        height: 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .online {
        font-size: 36px;
    }

    .form-card {
        padding: 24px 20px;
    }

    .card-title {
        font-size: 16px;
    }

    .plate-input {
        font-size: 16px;
        padding: 14px 16px;
    }

    .qrcode-wrapper {
        min-height: 250px;
    }
}
