/* 
 * ==========================================
 * TEMA BUK - ESTILO SIMPLES E ELEGANTE
 * ==========================================
 */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    width: 100%;
}

body {
    background-color: #fce4ec; /* Rosa pastel muito suave */
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    width: 100%;
}

/* ── HEADER (BANNER + FOTO) ── */
.buk-header {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 20px;
}

.buk-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6; /* Escurecer um pouco ou deixar claro */
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

.buk-salon-info {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 20px;
}

.buk-salon-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: #fff;
}

.buk-salon-name {
    margin: 10px 0 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ── CARTÃO PRINCIPAL (SPA) ── */
.buk-card {
    background: #fff;
    width: 100%;
    max-width: 550px;
    margin: 0 auto 40px auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    position: relative;
    z-index: 2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.buk-card-header {
    text-align: center;
    padding: 24px 24px 14px;
    border-bottom: none;
    position: relative;
}

.buk-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1f2937;
}

.buk-card-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.buk-back-btn {
    position: absolute;
    left: 20px;
    top: 24px;
    background: none;
    border: none;
    font-size: 18px;
    color: #4b5563;
    cursor: pointer;
    padding: 4px;
}

.buk-card-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 0;
}

/* ── CATEGORIAS & SERVIÇOS ── */
.buk-category {
    border-bottom: 1px solid #f0f0f0;
}

.buk-category-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: #111827;
    background: #fff;
    transition: background 0.2s;
}

.buk-category-header:hover {
    background: #f9fafb;
}

.buk-category-icon {
    transition: transform 0.3s;
}
.buk-category.open .buk-category-icon {
    transform: rotate(180deg);
}

.buk-services-list {
    display: none;
    background: #fff;
}
.buk-category.open .buk-services-list {
    display: block;
}

.buk-service-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #f9fafb;
    cursor: pointer;
    transition: background 0.2s;
}
.buk-service-item:hover {
    background: #f9fafb;
}
.buk-service-item.selected {
    background: #f0fdf4;
}

.buk-service-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: transparent;
    transition: all 0.2s;
}
.buk-service-item.selected .buk-service-check {
    border-color: #10b981;
    background-color: #10b981;
    color: #fff;
}

.buk-service-info {
    flex: 1;
}

.buk-service-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.buk-service-price {
    font-size: 13px;
    color: #6b7280;
}

/* ── BOTÃO DE CONTINUAR / AÇÃO ── */
.buk-floating-action {
    position: relative;
    width: 100%;
    padding: 16px 24px 20px;
    background: #FFFFFF;
    border-top: 1px solid #F3F4F6;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.buk-btn-primary {
    background: #27303d;
    color: #fff;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.buk-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.buk-btn-primary:hover:not(:disabled) {
    opacity: 0.9;
}

/* ── PASSO 2: CALENDÁRIO ── */
.buk-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 10px;
    font-weight: 600;
}
.buk-calendar-nav {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    color: #4b5563;
}
.buk-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 0 16px 16px;
    gap: 4px 0;
    justify-items: center;
    align-items: center;
}
.buk-calendar-day-name {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 36px;
    margin: 0 auto 4px auto;
}
.buk-calendar-day {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50%;
    cursor: pointer;
    color: #374151;
    transition: all 0.15s ease;
    margin: 0 auto;
}
.buk-calendar-day:hover:not(.disabled) {
    background: #f3f4f6;
}
.buk-calendar-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
}
.buk-calendar-day.selected {
    background: #27303d;
    color: #fff;
}

/* Slots de Horas */
.buk-slots-container {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
}
.buk-slots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}
.buk-slot-col h4 {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 12px 0;
    font-weight: 500;
}
.buk-slot-btn {
    display: block;
    width: 100%;
    padding: 8px 0;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 20px;
    font-size: 13px;
    color: #374151;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.buk-slot-btn:hover {
    border-color: #d1d5db;
}
.buk-slot-btn.selected {
    background: #27303d;
    color: #fff;
    border-color: #27303d;
}

/* ── PASSO 3: FORMULÁRIO ── */
.buk-summary {
    padding: 20px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #f0f0f0;
}
.buk-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 8px;
}
.buk-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #d1d5db;
}

.buk-form {
    padding: 20px 24px;
}
.buk-form-group {
    margin-bottom: 16px;
}
.buk-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.buk-input:focus {
    outline: none;
    border-color: #27303d;
}
.buk-checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 12px;
    color: #6b7280;
}
.buk-checkbox-group input {
    margin-right: 8px;
    margin-top: 2px;
}

/* Footer do Site */
.buk-footer {
    text-align: center;
    padding: 20px;
    color: #9ca3af;
    font-size: 12px;
}
.buk-footer p {
    margin: 4px 0;
}
.buk-footer a {
    color: #9ca3af;
    text-decoration: underline;
}

/* Utilitários */
.hidden { display: none !important; }
