﻿/* Agenda Page Styles — identidade e header idênticos ao Index */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #7E6DDB;
    --primary-dark: #6151b8;
    --secondary-color: #F8B595;
    --accent-color: #A5DEE5;
    --dark-color: #2D3047;
    --light-color: #F9F9F9;
    --text-color: #4A4A68;
    --text-light: #8B8BA5;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #F9D5BB);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --whatsapp: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, .agenda-page {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header Moderno ===== */
.modern-header {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 110px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.header-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.header-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/images/head5.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: none;
    will-change: auto;
}

.floating-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.1;
    filter: blur(40px);
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 22%;
    right: 10%;
    background: var(--gradient-secondary);
    animation-delay: 2s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    bottom: 25%;
    right: 20%;
    animation-delay: 6s;
}

.shape-5 {
    width: 220px;
    height: 220px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 8s;
}

.header-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.35) 0%, rgba(228, 232, 240, 0.35) 100%);
    backdrop-filter: none;
}

.header-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

.header-text {
    flex: 1;
    max-width: 600px;
}

.header-title {
    font-size: 3.4rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
}

.title-line {
    display: block;
}

    .title-line.accent {
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.header-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.3rem;
    color: var(--text-light);
    max-width: 520px;
}

.header-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.08rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

    .cta-button.primary {
        background: var(--gradient);
        color: #fff;
    }

        .cta-button.primary:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(126,109,219,0.4);
        }

    .cta-button.secondary {
        background: transparent;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
    }

        .cta-button.secondary:hover {
            background: var(--primary-color);
            color: #fff;
            transform: translateY(-5px);
        }

.header-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.visual-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.main-image {
    position: relative;
    z-index: 3;
    animation: float 6s infinite ease-in-out;
}

.hero-logo {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.2));
}

.floating-elements {
    position: absolute;
    inset: 0;
}

.element {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    animation: float 8s infinite ease-in-out;
}

.element-1 {
    top: 10%;
    right: 10%;
    animation-delay: 1s;
}

.element-2 {
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.element-3 {
    top: 50%;
    right: 0;
    animation-delay: 3s;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-color);
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--gradient);
    margin-bottom: 10px;
    animation: scrollLine 2s infinite;
}

.scroll-indicator i {
    animation: bounce 2s infinite;
}

/* ===== Seções ===== */
.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 2.2rem;
    color: var(--dark-color);
}

.agenda-benefits {
    padding: 100px 0;
    background: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: #fff;
    padding: 2.2rem 2rem;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
    border: 1px solid #e2e8f0;
    text-align: center;
}

    .benefit-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 36px rgba(0,0,0,0.12);
    }

.benefit-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.8rem;
}

.benefit-card h3 {
    margin-bottom: .6rem;
    color: var(--dark-color);
}

.benefit-card p {
    color: var(--text-light);
}

/* ===== Formulário ===== */
.booking-form-section {
    padding: 100px 0;
    background: #fafbfc;
    position: relative;
}

.form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2.2rem;
}

    .form-header h2 {
        font-size: 2.2rem;
        margin-bottom: .6rem;
        color: var(--dark-color);
    }

    .form-header p {
        color: var(--text-light);
    }

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    margin-bottom: .45rem;
    color: var(--text-color);
}

.required {
    color: #e53e3e;
    margin-left: .25rem;
}

.form-input,
.form-textarea {
    padding: .9rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .form-input:focus,
    .form-textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(126,109,219,.14);
    }

    .form-input.error,
    .form-textarea.error {
        border-color: #e53e3e;
    }

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.field-error {
    color: #e53e3e;
    font-size: .88rem;
    margin-top: .4rem;
}

.field-hint {
    color: var(--text-light);
    font-size: .88rem;
    margin-top: .4rem;
}

.link {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    font-weight: 600;
}

    .link:hover,
    .link:focus {
        text-decoration-thickness: 2.5px;
    }

    .link:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }

    .link:visited {
        color: #5a44d6;
    }

/* ===== Checkbox corrigido ===== */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: .75rem;
    cursor: pointer;
}

    .checkbox-label input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #e2e8f0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: all .2s ease;
}

.checkbox-label input:checked + .checkbox-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

    .checkbox-label input:checked + .checkbox-custom::after {
        content: '✓';
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
    }

.checkbox-text {
    line-height: 1.5;
}

/* ===== Botões ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(126,109,219,.35);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 26px rgba(126,109,219,.45);
    }

.btn-submit {
    width: 100%;
    justify-content: center;
    background: var(--whatsapp);
}

    .btn-submit:hover {
        background: #128C7E;
        transform: translateY(-2px);
    }

.btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

/* ===== Alertas ===== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    border-left: 4px solid;
}

.alert-success {
    background: #f0fdf4;
    border-left-color: #22c55e;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-left-color: #e53e3e;
    color: #991b1b;
}

/* ===== Overlay ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: #fff;
    padding: 2rem;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,.18);
}

    .loading-content i {
        font-size: 2rem;
        color: var(--primary-color);
        margin-bottom: .6rem;
    }

/* ===== Como funciona ===== */
.how-it-works {
    padding: 100px 0;
    background: #fff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 1200px) {
    .steps-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.step-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    transition: transform .25s ease, box-shadow .25s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

    .step-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 28px rgba(0,0,0,.12);
    }

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* ===== CTA final ===== */
.final-cta {
    background: var(--gradient);
    padding: 5rem 0;
    text-align: center;
    color: #fff;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: .8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,.2);
}

.cta-content p {
    color: rgba(255,255,255,.95);
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 1.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.final-cta .cta-button {
    display: inline-block;
    padding: 14px 28px;
    background: #fff;
    color: var(--primary-color);
    border-radius: 999px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
    overflow: hidden;
}

    .final-cta .cta-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
        transition: left .7s ease;
    }

    .final-cta .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(255,255,255,.3);
        background: var(--dark-color);
        color: #fff;
    }

        .final-cta .cta-button:hover::before {
            left: 100%;
        }

/* ===== Animações ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes scrollLine {
    0% {
        height: 40px;
    }

    50% {
        height: 20px;
    }

    100% {
        height: 40px;
    }
}

@keyframes bounce {
    0%,20%,50%,80%,100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ===== Responsivo ===== */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .header-text {
        max-width: 100%;
    }

    .header-title {
        font-size: 2.8rem;
    }

    .header-actions {
        justify-content: center;
    }

    .hero-logo {
        max-width: 340px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 2.1rem;
    }

    .header-subtitle {
        font-size: 1.05rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .element {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .modern-header {
        padding: 90px 0 60px;
    }

    .header-title {
        font-size: 1.8rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .shape {
        display: none;
    }

    .shape-1, .shape-5 {
        display: block;
    }
}

/* ===== Correções iOS e overflow ===== */
html {
    overflow-x: hidden;
}

.form-row > .form-group {
    min-width: 0;
}

.form-input,
.form-textarea,
.form-group select {
    width: 100%;
    max-width: 100%;
}

.flatpickr-input {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    padding: .9rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
}

.form-group select {
    -webkit-appearance: none;
    appearance: none;
    background-image: none;
}

@media (max-width: 420px) {
    .form-card {
        padding: 1.5rem;
    }
}
