/* 
 * CSS Público — Sistema de Agendamento Nail Designer
 * Mobile First | Glassmorphism | Cores Premium
 */

:root {
    --primary-color: #E91E8C;     /* Rosa vibrante */
    --primary-light: #FF66B8;
    --primary-dark: #C2185B;
    --accent-color: #C9A84C;      /* Dourado elegante */
    --text-main: #2D2D2D;
    --text-muted: #666666;
    --bg-main: #FFF9FC;           /* Fundo rosado bem suave */
    --bg-card: rgba(255, 255, 255, 0.9);
    --border-color: #F0E6EA;
    --success: #28A745;
    --error: #DC3545;
    
    --shadow-sm: 0 2px 8px rgba(233, 30, 140, 0.08);
    --shadow-md: 0 8px 24px rgba(233, 30, 140, 0.12);
    --shadow-lg: 0 16px 32px rgba(233, 30, 140, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Botões ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.4);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, #DFB955, var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-block {
    width: 100%;
}

/* ─── Hero Section ───────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0 60px;
    overflow: hidden;
}

/* Bolhas de fundo (Glassmorphism) */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

.hero::before {
    width: 300px;
    height: 300px;
    background: rgba(233, 30, 140, 0.2);
    top: -50px;
    right: -100px;
}

.hero::after {
    width: 400px;
    height: 400px;
    background: rgba(201, 168, 76, 0.15);
    bottom: -100px;
    left: -150px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-main), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-img-wrap {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-main);
}

/* ─── Seções Genéricas ───────────────────────────────────────────────────── */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ─── Cards de Serviços ──────────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

/* ─── Galeria ────────────────────────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

/* ─── Wizard de Agendamento ──────────────────────────────────────────────── */
.wizard-container {
    max-width: 600px;
    margin: 40px auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px 30px;
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.wizard-header {
    text-align: center;
    margin-bottom: 30px;
}

/* Progresso */
.progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
    transform: translateY(-50%);
}

.progress-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.progress-step.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.2);
}

.progress-step.completed {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Passos (Formulários) */
.wizard-step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wizard-step-content.active {
    display: block;
}

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

/* Forms Gerais */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.1);
}

/* Seleção Visual (Serviços) */
.selection-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.selection-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.selection-item:hover {
    border-color: var(--primary-light);
    background: rgba(233, 30, 140, 0.02);
}

.selection-item.selected {
    border-color: var(--primary-color);
    background: rgba(233, 30, 140, 0.05);
}

.selection-item input[type="radio"] {
    display: none;
}

.selection-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.selection-info flex {
    flex: 1;
}

.selection-title-text {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
}

.selection-price {
    color: var(--primary-color);
    font-weight: 700;
}

/* Grid de Horários */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.time-slot {
    padding: 12px 5px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.time-slot:hover {
    border-color: var(--primary-light);
}

.time-slot.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.time-slot input[type="radio"] {
    display: none;
}

/* Navegação do Wizard */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Resumo Final */
.summary-box {
    background: rgba(233, 30, 140, 0.03);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}
.summary-item:last-child {
    border-bottom: none;
}
.summary-label {
    color: var(--text-muted);
}
.summary-value {
    font-weight: 600;
    text-align: right;
}
.summary-total {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* ─── Utilitários & Outros ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: transform 0.3s;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alertas */
.alert {
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
}
.alert-error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}
.alert-success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

/* Confirmação */
.success-check {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 20px;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* PWA Pulse Animation */
.pwa-pulse {
    animation: pulse-pwa 2s infinite;
}

@keyframes pulse-pwa {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 30, 140, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(233, 30, 140, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 30, 140, 0);
    }
}

/* Responsivo Desktop */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .hero-logo {
        font-size: 4rem;
    }
    .wizard-container {
        padding: 50px;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
