:root {
    --azul-escuro: #0C2C5E;
    --azul-escuro-hover: #0a2349;
    --amarelo: #F5D033;
    --amarelo-hover: #e6c42b;
    --branco: #ffffff;
    --cinza-claro: #f0f0f0;
    --cinza-medio: #6b7280;
    --cinza-campo: #e5e7eb;
    --vermelho-erro: #dc2626;
    --sombra: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1f2937;
    background: var(--cinza-claro);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    background: var(--azul-escuro);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--branco);
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-tratornew {
    letter-spacing: 0.02em;
}

.logo-newholland {
    font-size: 0.95rem;
    opacity: 0.95;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.nav-links a {
    color: var(--branco);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .site-header {
        padding: 0.5rem 1rem;
    }
    .header-inner {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
}

.main-content {
    min-height: 60vh;
}

.hero {
    position: relative;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background-color: #0b2241;
}

.hero-bg-wrap {
    width: min(100%, 2560px);
    margin: 0 auto;
    padding: 0;
}

.hero-bg-image {
    display: block;
    width: 100%;
    height: auto;
    border: none;
    object-fit: contain;
    object-position: center top;
    image-rendering: auto;
}

.hero-media-frame {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 520px;
    background: rgba(12, 44, 94, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem 1.25rem 1.75rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(2px);
}

.hero-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.hero-badge-dia {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--amarelo);
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.hero-badge-ribbon {
    display: inline-block;
    background: var(--amarelo);
    color: var(--azul-escuro);
    font-weight: 800;
    font-size: 1rem;
    padding: 0.35rem 1.25rem;
    margin-top: -4px;
    letter-spacing: 0.08em;
}

.hero-date {
    background: linear-gradient(90deg, #143b74, #0c2c5e);
    color: var(--branco);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    padding: 0.58rem 1.3rem;
    display: inline-block;
    margin-bottom: 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-tagline {
    color: var(--branco);
    font-size: 1.05rem;
    margin: 0 0 1.5rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.btn-cta {
    display: inline-block;
    background: linear-gradient(180deg, #f9da56 0%, #f5d033 100%);
    color: var(--azul-escuro);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    padding: 0.9rem 2rem;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.btn-cta:hover {
    background: var(--amarelo-hover);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.form-section {
    display: flex;
    align-items: stretch;
    max-width: 1280px;
    margin: 1.25rem auto 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    background: var(--branco);
}

@media (max-width: 900px) {
    .form-section {
        grid-template-columns: 1fr;
    }
}

.form-section-image {
    flex: 1 1 50%;
    position: relative;
    background-color: #0b2241;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 100%;
}

.form-section-image-inner {
    width: 100%;
    height: 100%;
    min-height: 100%;
    background-image: url('../Imagens/ap_BannerForm_12DiaTratornew_1600x1200.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.form-image-frame {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.form-image-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(12, 44, 94, 0.35) 55%, rgba(245, 208, 51, 0.55) 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.form-section-image-asset {
    display: none;
}

.form-section-form {
    flex: 1 1 50%;
    background: #f8fafc;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

@media (max-width: 900px) {
    .form-section {
        flex-direction: column;
        margin-top: 0.75rem;
    }

    .form-section-image {
        padding: 0.75rem;
    }

    .form-image-frame {
        border-radius: 14px;
    }

    .form-image-frame::before {
        border-radius: 14px;
    }

    .form-section-image-inner {
        min-height: 240px;
        background-size: contain;
    }
}

@media (max-width: 540px) {
    .hero-bg-wrap {
        width: 100%;
    }
}

.form-intro {
    background: linear-gradient(120deg, #0c2c5e 0%, #1d4d8e 100%);
    color: var(--branco);
    font-weight: 600;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    border-radius: 10px;
}

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

.form-cadastro input {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    background: var(--branco);
}

.form-cadastro input::placeholder {
    color: var(--cinza-medio);
}

.form-cadastro input:focus {
    outline: none;
    border-color: var(--azul-escuro);
    box-shadow: 0 0 0 2px rgba(12, 44, 94, 0.2);
}

.form-cadastro select {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    background: var(--branco);
    color: #1f2937;
    width: 100%;
}

.form-cadastro select:focus {
    outline: none;
    border-color: var(--azul-escuro);
}

.form-cadastro select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
}

.form-field-hint {
    font-size: 0.85rem;
    color: var(--cinza-medio);
    margin: -0.25rem 0 0;
    line-height: 1.3;
}

.form-field-note {
    font-size: 0.8rem;
    color: var(--cinza-medio);
    opacity: 0.85;
    margin: 0.25rem 0 0;
    line-height: 1.3;
}

.form-group-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin: 0.35rem 0 0.15rem;
}

.form-group-cidade {
    margin-bottom: 0;
}

.form-cidade-brasil {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) minmax(10rem, 2fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 500px) {
    .form-cidade-brasil {
        grid-template-columns: 1fr;
    }
}

.btn-enviar {
    margin-top: 0.5rem;
    padding: 0.9rem;
    background: linear-gradient(120deg, #2f3d54 0%, #1f2937 100%);
    color: var(--branco);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 8px 18px rgba(31, 41, 55, 0.25);
}

.btn-enviar:hover {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(31, 41, 55, 0.3);
}

.btn-enviar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.site-footer {
    background: var(--cinza-claro);
    padding: 1rem 1.5rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-map-section {
    background: var(--azul-escuro);
    border-radius: 8px;
    overflow: hidden;
}

.map-header {
    padding: 1rem 1.25rem;
    color: var(--branco);
}

.map-header .address {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
}

.btn-maps {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--branco);
    color: var(--azul-escuro);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 4px;
}

.btn-maps:hover {
    opacity: 0.95;
}

.map-placeholder {
    height: 220px;
    background: #e5e7eb;
}

.map-placeholder iframe {
    display: block;
}

.footer-promo .promo-title {
    color: var(--azul-escuro);
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

.promo-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 8px;
    overflow: hidden;
}

.promo-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.copyright {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--cinza-medio);
    text-align: center;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-box {
    position: relative;
    background: var(--branco);
    border-radius: 8px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
}

.modal-close:hover {
    color: #1f2937;
}

.modal-icon {
    text-align: center;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.modal-icon-erro {
    color: var(--vermelho-erro);
    font-weight: bold;
}

.modal-title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    text-align: center;
}

.modal-erro .modal-title {
    color: var(--vermelho-erro);
}

.modal-mensagem {
    margin: 0 0 1.25rem;
    text-align: center;
    color: #374151;
}

.modal-sucesso .modal-title-sucesso {
    background: var(--azul-escuro);
    color: var(--branco);
    padding: 0.75rem 1rem;
    margin: -2rem -2rem 1rem -2rem;
    border-radius: 8px 8px 0 0;
    font-size: 1rem;
}

.modal-qr-id-wrap {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #374151;
}

.modal-qr-id {
    display: inline-block;
    font-family: monospace;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: var(--azul-escuro);
    background: #f3f4f6;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
}

.modal-qr-wrap {
    text-align: center;
    margin: 1rem 0;
}

.modal-qr-image {
    max-width: 220px;
    height: auto;
    display: inline-block;
}

.modal-instrucao,
.modal-nao-esqueca {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #374151;
}

.btn-baixar-qr {
    margin: 0.6rem 0 0.85rem;
}

.modal-nao-esqueca {
    color: var(--azul-escuro);
}

.modal-nao-esqueca strong {
    color: var(--amarelo);
    display: block;
    margin-bottom: 0.25rem;
}

.modal-qr-info {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--cinza-medio);
}

.btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary {
    background: var(--azul-escuro);
    color: var(--branco);
    margin-top: 1rem;
}

.btn-primary:hover {
    background: var(--azul-escuro-hover);
}

.btn-secondary {
    background: #374151;
    color: var(--branco);
}

.btn-secondary:hover {
    background: #1f2937;
}

.form-cadastro input.invalid {
    border-color: var(--vermelho-erro);
}

.checkin-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.checkin-title {
    font-size: 1.5rem;
    color: var(--azul-escuro);
    margin: 0 0 0.25rem;
    text-align: center;
}

.checkin-admin-link {
    text-align: center;
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
}

.checkin-admin-link a {
    color: var(--azul-escuro);
    text-decoration: none;
}

.checkin-admin-link a:hover {
    text-decoration: underline;
}

.checkin-busca {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkin-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--cinza-campo);
    border-radius: 4px;
    font-size: 1rem;
    min-width: 140px;
}

.checkin-input {
    flex: 1;
    min-width: 120px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--cinza-campo);
    border-radius: 4px;
    font-size: 1rem;
}

.checkin-busca .btn {
    margin-top: 0;
    width: auto;
    padding: 0.5rem 1.25rem;
}

.checkin-aviso {
    font-size: 0.9rem;
    color: var(--cinza-medio);
    margin-bottom: 1rem;
}

.checkin-aviso code {
    background: #f3f4f6;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.85em;
}

.checkin-camera-wrap {
    margin-bottom: 1rem;
}

.checkin-camera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.checkin-camera-actions .btn-secondary {
    background: #6b7280;
    color: var(--branco);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
}

.checkin-camera-actions .btn-secondary:hover {
    background: #4b5563;
}

.checkin-camera-video-wrap {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    max-height: 320px;
}

.checkin-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkin-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
}

.checkin-camera-dica {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: var(--branco);
    font-size: 0.85rem;
    text-align: center;
}

.checkin-msg {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.checkin-erro {
    background: #fef2f2;
    color: var(--vermelho-erro);
    border: 1px solid #fecaca;
}

.checkin-sucesso {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.checkin-card {
    background: var(--branco);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--sombra);
    margin-top: 1rem;
}

.checkin-card-title {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: var(--azul-escuro);
}

.checkin-ja-feito {
    background: #fef3c7;
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.checkin-form .checkin-campo {
    margin-bottom: 1rem;
}

.checkin-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.checkin-input-readonly {
    background: #f9fafb;
    color: #374151;
    cursor: default;
}

.checkin-campo-readonly .checkin-input-readonly {
    font-family: monospace;
}

.checkin-campo-actions {
    margin-top: 1.25rem;
}

.checkin-campo-actions .btn {
    margin-top: 0;
}

