
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --teal: #2F9C95;
    --teal-dark: #268179;
    --teal-light: #4FB4AD;
    --orange: #E3732D;
    --orange-dark: #C95F22;
    --gray-light: #F4F4F4;
    --gray-medium: #E0E0E0;
    --gray-dark: #666;
    --black: #1A1A1A;
    --white: #FFFFFF;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--gray-light) 0%, #E8E8E8 100%);
    color: var(--black);
    min-height: 100vh;
    overflow-x: hidden;
}




@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}







/* ========================================
   CONTAINER DO FORMULÁRIO
======================================== */

.form-screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.form-screen.active {
    display: flex;
}

.container {
    width: 100%;
    max-width: 600px;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(47, 156, 149, 0.15);
}

.header {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
    padding: 32px 24px 28px;
    text-align: center;
    position: relative;
}
.header img{
    max-width: 150px;
}
.logo-form {
    width: 180px;
    max-width: 100%;
}

.tagline {
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    opacity: 0.95;
}

.progress-bar {
    height: 4px;
    background: var(--gray-light);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange-dark) 100%);
    transition: width 0.4s ease;
    width: 0%;
}

.form-content {
    padding: 32px 24px;
    min-height: 400px;
}

.question {
    display: none;
}

.question.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.question-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: inline-block;
    padding: 5px 12px;
    background: rgba(47, 156, 149, 0.1);
    border-radius: 3px;
}

.question-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.4;
}

.question-subtitle {
    font-size: 13px;
    color: var(--gray-dark);
    margin-top: 6px;
}

.required {
    color: var(--orange);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 13px 15px;
    border: 2px solid var(--gray-medium);
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    min-height: 48px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(47, 156, 149, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 13px 15px;
    border: 2px solid var(--gray-medium);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.radio-option:hover {
    border-color: var(--teal);
    background: rgba(47, 156, 149, 0.05);
}

.radio-option.selected {
    border-color: var(--teal);
    background: var(--teal);
    color: var(--white);
}

.radio-option input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.actions {
    display: flex;
    gap: 8px;
    padding: 20px;
    background: var(--gray-light);
    border-top: 1px solid var(--gray-medium);
}

.btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    min-height: 52px;
}

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

.btn-back {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--gray-medium);
}

.btn-back:hover:not(:disabled) {
    border-color: var(--teal);
}

.btn-next {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(47, 156, 149, 0.4);
}

.success-message {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.success-message.active {
    display: block;
    animation: successPop 0.6s ease;
}

@keyframes successPop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon {
    font-size: 80px;
    color: var(--teal);
    margin-bottom: 24px;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #E1306C 0%, #C13584 50%, #833AB4 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
}

.btn-instagram i {
    font-size: 20px;
}

.loading-indicator {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    z-index: 9999;
    align-items: center;
    gap: 15px;
}

.loading-indicator.active {
    display: flex;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Upload de Arquivos */
.file-upload {
    margin-bottom: 20px;
}

.file-upload-area {
    border: 2px dashed var(--gray-medium);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}

.file-upload-area:hover {
    border-color: var(--teal);
    background: rgba(47, 156, 149, 0.05);
}

.file-upload-area.has-file {
    border-color: var(--teal);
    background: rgba(47, 156, 149, 0.1);
}

.file-upload-icon {
    font-size: 48px;
    color: var(--teal);
    margin-bottom: 15px;
}

.file-upload-text {
    font-size: 16px;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.file-upload-info {
    font-size: 13px;
    color: var(--gray-dark);
}

.file-preview {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(47, 156, 149, 0.1);
    border-radius: 8px;
    align-items: center;
    gap: 15px;
}

.file-preview.active {
    display: flex;
}

.file-preview-icon {
    font-size: 32px;
    color: var(--teal);
}

.file-preview-info {
    flex: 1;
}

.file-preview-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 4px;
}

.file-preview-size {
    font-size: 12px;
    color: var(--gray-dark);
}

.file-preview-remove {
    background: var(--orange);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.file-preview-remove:hover {
    transform: scale(1.1);
    background: var(--orange-dark);
}

/* Mapa */
.map-container {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    border: 2px solid var(--gray-medium);
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.map-center-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 1000;
    pointer-events: none;
    font-size: 48px;
    color: var(--orange);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.map-info {
    font-size: 13px;
    color: var(--gray-dark);
    padding: 12px;
    background: rgba(47, 156, 149, 0.05);
    border-radius: 6px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.map-info i {
    margin-right: 6px;
    color: var(--teal);
}

.map-coordinates {
    font-size: 12px;
    color: var(--teal);
    font-weight: 600;
    margin-top: 8px;
}

/* Rodapé */
.footer {
    text-align: center;
    padding: 20px;
    background: var(--gray-light);
    border-top: 1px solid var(--gray-medium);
}

.footer-text {
    font-size: 13px;
    color: var(--gray-dark);
}

.footer-link {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--teal-dark);
    text-decoration: underline;
}

/* Captura de Vídeo - Estilo Bancário Profissional */
.video-capture-container {
    position: relative;
    width: 100%;
}

.video-capture-screen {
    display: none;
}

.video-capture-screen.active {
    display: block;
}

.video-bank-style {
    text-align: center;
    padding: 30px 20px;
}

.video-bank-icon {
    font-size: 64px;
    color: var(--teal);
    margin-bottom: 20px;
}

.video-bank-style h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.video-bank-subtitle {
    font-size: 14px;
    color: var(--gray-dark);
    margin-bottom: 30px;
}

.video-instructions {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.video-instructions li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(47, 156, 149, 0.05);
    border-radius: 6px;
    font-size: 14px;
}

.video-instructions i {
    font-size: 20px;
    color: var(--teal);
    flex-shrink: 0;
}

.video-preview-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-preview-container video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

.video-face-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    pointer-events: none;
}

.face-circle {
    width: 100%;
    height: 100%;
}

#progress-circle-video_confirmacao {
    stroke-dasharray: 502.65;
    stroke-dashoffset: 502.65;
    transition: stroke-dashoffset 0.3s ease;
}

.face-instruction {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(47, 156, 149, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-step-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(47, 156, 149, 0.95);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-success-content {
    text-align: center;
    padding: 40px 20px;
}

.success-check {
    font-size: 80px;
    color: var(--teal);
    margin-bottom: 20px;
    animation: scaleIn 0.6s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.video-success-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.video-success-content p {
    font-size: 15px;
    color: var(--gray-dark);
    margin-bottom: 30px;
}

.btn-video {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.btn-video-start {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
}

.btn-video-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(47, 156, 149, 0.4);
}

.btn-video-cancel {
    background: var(--white);
    color: var(--gray-dark);
    border: 2px solid var(--gray-medium);
}

.btn-video-cancel:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.btn-video-retry {
    background: var(--orange);
    color: var(--white);
}

.btn-video-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(227, 115, 45, 0.4);
}

/* Responsivo */
@media (max-width: 768px) {
    .welcome-container {
        padding: 40px 24px;
    }



    .video-face-guide {
        width: 200px;
        height: 200px;
    }

    .face-instruction {
        font-size: 12px;
        padding: 10px 18px;
        bottom: -50px;
    }
}
