/* cadastro.css - Estilos para a página de auto-cadastro */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #007bff; /* Azul moderno */
    --primary-dark: #0056b3; /* Azul mais escuro (hover) */
    --secondary-color: #6c757d; /* Cinza médio (secundário) */
    --light-color: #f8f9fa; /* Cinza muito claro */
    --dark-color: #212529; /* Cinza escuro (quase preto) */
    --success-color: #28a745; /* Verde */
    --info-color: #17a2b8; /* Azul claro */
    --warning-color: #ffc107; /* Amarelo */
    --danger-color: #dc3545; /* Vermelho */
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefit-card,
.store-card {
    opacity: 0;
}

.benefit-card.animated,
.store-card.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Defasagem na animação para cada card */
.benefit-card:nth-child(1),
.store-card:nth-child(1) {
    animation-delay: 0.1s;
}
.benefit-card:nth-child(2),
.store-card:nth-child(2) {
    animation-delay: 0.2s;
}
.benefit-card:nth-child(3),
.store-card:nth-child(3) {
    animation-delay: 0.3s;
}
.benefit-card:nth-child(4),
.store-card:nth-child(4) {
    animation-delay: 0.4s;
}
.benefit-card:nth-child(5),
.store-card:nth-child(5) {
    animation-delay: 0.5s;
}
.benefit-card:nth-child(6),
.store-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Incluir a fonte Caveat */
@font-face {
    font-family: 'Caveat';
    src: url('../fonts/Caveat-Medium.ttf') format('truetype');
}

/* Estilo para animação de spin (para botões de loading) */
.spin {
    animation: spinner-border 1s linear infinite;
}
@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-contact {
    list-style: none;
    padding-left: 0;
}

.footer-contact li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-color);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
}

/* Estilo para a descrição */
.store-description {
    font-size: 2rem;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Estilo para as informações da loja */
.store-info {
    padding: 15px;
    text-align: center;
}

.store-info h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.store-info p {
    font-size: 1rem;
    color: #6c757d;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 123, 255, 0.8), rgba(0, 123, 255, 0.9)), url('../img/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section .lead {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

.cta-section .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Lojas Section */
.stores-section {
    background-color: #f9f9f9;
}

.store-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 -10px;
}

/* MODIFICADO: Cards de Lojas com degradê na parte superior */
.store-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    margin-bottom: 20px;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* MODIFICADO: Estilo para o fundo colorido com degradê e descrição centralizada */
.store-background {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Caveat', cursive;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Adiciona o efeito de degradê sobre a cor de fundo */
.store-background:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.4));
    z-index: -1;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.benefit-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Ajustes para layout responsivo dos cards */
@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (max-width: 767px) {
    .col-sm-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* Estilos gerais */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
    padding-top: 56px; /* Exatamente a altura da navbar */
}

section {
    padding: 80px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.btn {
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.lead {
    font-size: 1.2rem;
    font-weight: 300;
}

/* Navbar */
.navbar-dark.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Hero Section com Banner Fixo e Carousel de Textos */
.hero-section {
    padding: 0;
    margin-top: 0px;
    position: relative;
    height: 500px;
}

.hero-background {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
}

.text-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-caption {
    position: static;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: var(--border-radius);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.carousel-caption h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: white;
}

/* Aumentar a visibilidade dos controles do carousel */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Formulário de Cadastro */
.cadastro-section {
    background-color: #f9f9f9;
    padding: 100px 0;
    position: relative;
}

.cadastro-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.cadastro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: none;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.card-body {
    padding: 30px;
}

/* Estilos dos campos de formulário (form-floating) */
.form-floating {
    position: relative;
    margin-bottom: 1rem;
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    padding: 1rem 0.75rem;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    color: #6c757d;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    background: none;
    height: auto;
    padding: 0;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:focus-visible {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

.form-floating > textarea.form-control {
    height: 100px;
    min-height: 100px;
}

/* Estilo para botão de login */
.btn-login {
    background: var(--primary-color);
    border: none;
    padding: 0.8rem;
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Ajuste para small texto abaixo do campo documento */
small.form-text {
    display: block;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    color: #6c757d;
}

/* Ajuste para select estar corretamente posicionado */
.form-floating > .form-select {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.cadastro-info {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.check-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.check-list li {
    padding: 10px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list li i {
    color: var(--success-color);
    font-size: 1.2rem;
}

/* Benefícios Section */
.benefits-section {
    background-color: white;
}

/* MODIFICADO: Cards de Benefícios com degradê na parte superior */
.benefit-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    height: 100%;
    transition: var(--transition);
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-bottom: 20px;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

/* Modificação: adicionando degradê na parte superior dos cards */
.benefit-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--info-color));
    z-index: -1;
}

/* cadastro.css - Estilos para a página de auto-cadastro */

/* Estilo para o botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

.whatsapp-float i {
    margin-top: 0;
}

/* Animação de pulso para chamar atenção */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}
