:root {
    --cor-principal: #018333; /* Verde do clube */
    --cor-secundaria: #016a28; /* Verde mais escuro para hover */
    --cor-bg: #f8fafc;
    --cor-texto: #1e293b;
    --cor-borda: #cbd5e1;
    --cor-erro: #ef4444;
    --cor-sucesso: #10b981;
}

@font-face {
    font-family: 'Space Grotesk Local';
    src: url('../fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--cor-bg);
    color: var(--cor-texto);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 500px;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

h2, h3 {
    font-family: 'Space Grotesk Local', 'Space Grotesk', sans-serif;
    color: var(--cor-principal);
    margin-top: 0;
}

.progress-container {
    width: 100%;
    background-color: #e2e8f0;
    border-radius: 10px;
    height: 8px;
    margin-bottom: 20px;
    display: none;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--cor-principal);
    width: 0%;
    transition: width 0.4s ease-in-out;
}

.slide-wrapper {
    position: relative;
    width: 100%;
    min-height: 300px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.4s ease-in-out;
    pointer-events: none;
}

.slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.slide.slide-out-left {
    transform: translateX(-50px);
}

.input-group {
    margin-bottom: 20px;
    width: 100%;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #475569;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--cor-borda);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--cor-principal);
    box-shadow: 0 0 0 3px rgba(1, 131, 51, 0.1);
}

.input-group input:disabled {
    background-color: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

button {
    width: 100%;
    padding: 14px;
    background-color: var(--cor-principal);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    margin-top: 10px;
}

button:hover {
    background-color: var(--cor-secundaria);
}

button:active {
    transform: scale(0.98);
}

button.btn-secondary {
    background-color: #e2e8f0;
    color: #475569;
    margin-top: 10px;
}

button.btn-secondary:hover {
    background-color: #cbd5e1;
}

.welcome-msg {
    background: #f0fdf4;
    border-left: 4px solid var(--cor-principal);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #14532d;
    line-height: 1.5;
    display: none;
}

.photo-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.photo-box {
    border: 2px dashed var(--cor-borda);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.photo-box:hover {
    border-color: var(--cor-principal);
    background: #f8fafc;
}

.photo-box svg {
    width: 40px;
    height: 40px;
    color: var(--cor-principal);
    margin-bottom: 10px;
}

#cropContainer {
    margin-top: 15px;
    display: none;
    max-height: 400px;
}

.badge-sucesso {
    display: none;
    background: var(--cor-sucesso);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

.help-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.help-modal.show {
    opacity: 1;
}

.help-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.help-modal.show .help-content {
    transform: scale(1);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-whatsapp:hover { background-color: #1ebc59; }

.global-loader {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--cor-principal);
    border-radius: 50%;
    width: 40px; height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.error-msg {
    color: var(--cor-erro);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.global-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: none;
}
