@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --cor-fundo: #e5e2da;
    --cor-container:#f1f0ec;
    --cor-painel-animacao: #E9E4DE; 
    --cor-primaria: #49582c;
    --cor-texto-principal: #333333;
    --cor-texto-secundario: #777777;
    --cor-borda: #DDDDDD;
    --cor-sombra: rgba(0, 0, 0, 0.2);
    --cor-sabonete: #FDFBF5;

    --bg-header: #f1f0ec; 
    --bg-main:#e5e2da; 
    --verde-vitta: #49582c; 
    --vermelho-vitta: #8d3229;
    --vermelho-hover:  #690c03;
    --primary-green: #8B9A5B;
    --light-vitta: #ffeccc; 
    --white: #FFFFFF;
    --font-title: 'Belleza', serif;
    --font-body: 'Questrial', sans-serif;
    --container-max-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Questrial', sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto-principal);
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 2rem;
}

/* --- O Melhor Container da Minha Vida :) --- */
.container {
    background-color: var(--bg-header);
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    width: 900px;
    max-width: 100%;
    min-height: 600px;
    display: flex;
}

.animation-panel {
    flex-basis: 45%;
    background-color: var(--primary-green);
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.soap-scene {
    position: relative;
    width: 200px;
    height: 300px;
}

.soap-character {
    width: 150px;
    height: 90px;
    background: var(--cor-sabonete);
    border-radius: 25px; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.soap-character::before,
.soap-character::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--cor-texto-principal);
    border-radius: 50%;
    top: 35px;
    animation: blink 4s infinite;
}
.soap-character::before { left: 40px; }
.soap-character::after { right: 40px; }

.bubble {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    bottom: -30px;
    left: 50%;
    opacity: 0;
    animation: rise 8s infinite ease-out;
}

.bubble:nth-child(1) { width: 20px; height: 20px; left: 40%; animation-duration: 7s; animation-delay: 0s; }
.bubble:nth-child(2) { width: 10px; height: 10px; left: 60%; animation-duration: 5s; animation-delay: 1.5s; }
.bubble:nth-child(3) { width: 25px; height: 25px; left: 70%; animation-duration: 8s; animation-delay: 3s; }
.bubble:nth-child(4) { width: 15px; height: 15px; left: 30%; animation-duration: 6s; animation-delay: 4.5s; }
.bubble:nth-child(5) { width: 18px; height: 18px; left: 55%; animation-duration: 7.5s; animation-delay: 6s; }


/* --- Painel do Formulário (Direita) --- */
.form-panel {
    flex-basis: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

.form-panel h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--cor-primaria);
    margin-bottom: 0.5rem;
}

.form-panel span {
    font-size: 1rem;
    color: var(--cor-texto-secundario);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.form-panel input {
    background-color: #f8f8f8;
    border: 2px solid transparent;
    margin: 10px 0;
    padding: 14px 18px;
    font-size: 16px;
    border-radius: 12px;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.form-panel input:focus {
    background-color: var(--bg-main);
    border-color: #5C8374;
    box-shadow: 0 0 0 3px rgba(92, 131, 116, 0.1);
}

.form-panel button {
    display: block; 
    width: 100%; 
    max-width: 600px;
    background-color: var(--primary-green);
    color: var(--white); 
    border: none;
    border-radius: 12px;
    font-family: var(--font-body); 
    font-size: 14px; 
    font-weight: 600; 
    text-transform: uppercase;
    padding: 18px 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); 
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 20px auto;
}

.form-panel button:hover {
    background-color: var(--cor-primaria);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.voltar{
    background: transparent;
    border: 0;
    font-size: 14px;
    color: var(--verde-vitta);
    cursor: pointer;
    text-decoration: underline;
    padding: 10px;
}

.php-output {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
}
.php-output a {
    color: var(--cor-primaria);
    text-decoration: none;
    font-weight: 600;
}
.php-output a:hover {
    text-decoration: underline;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) translateY(0) rotate(0deg); }
    50% { transform: translate(-50%, -50%) translateY(-25px) rotate(5deg); }
    100% { transform: translate(-50%, -50%) translateY(0) rotate(0deg); }
}

@keyframes blink {
    0%, 48%, 52%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

@keyframes rise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(-350px) translateX(20px);
        opacity: 0;
    }
}

/* --- Responsividade --- */
@media (max-width: 920px) {
    .container {
        flex-direction: column;
        width: 450px;
        min-height: auto;
    }
    .animation-panel {
        flex-basis: auto;
        height: 250px;
        width: 100%;
    }
    .form-panel {
        flex-basis: auto;
        width: 100%;
        padding: 2.5rem;
    }
    .form-panel h1 { font-size: 1.8rem; }
    .form-panel span { font-size: 0.9rem; margin-bottom: 2rem; }
}