/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    padding: 20px;
}

/* Container Principal */
.container {
    width: 100%;
    max-width: 480px;
}

/* Card do Formulário */
.form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.form-wrapper:hover {
    transform: translateY(-5px);
}

.form-wrapper h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
    text-align: center;
}

.form-wrapper p {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.5;
}

/* Campos do Formulário */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e1e1e1;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #fafafa;
}

.input-group input:focus {
    outline: none;
    border-color: #4CAF50;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.input-group input::placeholder {
    color: #aaa;
}

/* Botão Enviar */
button[type="submit"] {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(76, 175, 80, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loader animado */
.loader {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Mensagens de Sucesso/Erro */
.form-message {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.form-message.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Responsividade extra */
@media (max-width: 480px) {
    .form-wrapper {
        padding: 30px 20px;
    }
}

/* --- ESTILOS DO CONTAINER DE SUCESSO --- */
.success-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

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

.success-icon {
    width: 64px;
    height: 64px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-container h2 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.success-container p {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Bloco do Cupom */
.coupon-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    width: 100%;
}

.coupon-box span {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 1px;
}

.coupon-box button {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 6px;
}

.coupon-box button:hover {
    color: #4CAF50;
    background: #f1f5f9;
}

/* Botão Shop */
.shop-btn {
    display: inline-block;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.shop-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(15, 23, 42, 0.2);
}
