* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--cor-primaria, #808080) 0%, var(--cor-primaria, #808080) 50%, #E8E8E8 50%, #E8E8E8 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    transition: background 0.3s ease;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 1100px;
    width: 100%;
    padding: 40px;
    height: auto;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
}

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

.titulo {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 700;
    color: var(--cor-secundaria, #808080);
    transition: color 0.3s ease;
}

.logo-area {
    width: clamp(60px, 10vw, 120px);
    height: clamp(60px, 10vw, 120px);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-area.hidden {
    display: none;
}

.logo-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.conteudo {
    display: flex;
    gap: 40px;
    flex: 1;
    overflow: visible;
    flex-wrap: wrap;
}

.video-area {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    height: 280px;
}

.video-placeholder {
    position: relative;
    overflow: hidden;
}

.video-placeholder img {
    display: block;
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.video-icon {
    font-size: 80px;
    margin-bottom: 15px;
}

.video-texto {
    font-size: 18px;
    font-weight: 500;
}

.formulario-area {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 14px;
    border: 2px solid #E8E8E8;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--cor-primaria, #808080);
    box-shadow: 0 0 0 3px var(--cor-primaria-light, rgba(128, 128, 128, 0.1));
}

.btn {
    width: 100%;
    padding: 16px;
    background: var(--cor-terciaria, #808080);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    background: var(--cor-terciaria-hover, #666666);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--cor-terciaria-shadow, rgba(128, 128, 128, 0.4));
}

.required {
    color: var(--cor-terciaria, #808080);
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    gap: 20px;
}

.loading.hidden {
    display: none;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--cor-primaria, #808080);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    background: #ff4444;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    margin: 20px;
    text-align: center;
    display: none;
}

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

.checkbox-group {
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    flex: 1;
}

.checkbox-label a {
    color: var(--cor-primaria, #007bff);
    text-decoration: underline;
    font-weight: 500;
}

.checkbox-label a:hover {
    color: var(--cor-primaria-hover, #0056b3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #ccc;
}

@media (max-width: 768px) {
    .card {
        height: auto;
        min-height: unset;
        padding: 30px 20px;
    }

    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .conteudo {
        flex-direction: column;
    }

    .video-placeholder {
        height: 200px;
    }
}

@media (max-width: 600px) {
    .conteudo {
        flex-direction: column;
    }

    .card {
        padding: 24px 16px;
    }

    .titulo {
        font-size: 20px;
        text-align: center;
    }

    .logo-area {
        width: 80px;
        height: 80px;
    }
}