/* ==========================================
   Danielle Viana — Página de Agendamento
   Full Gold & Ivory — No Pink
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --gold:         #C9A227;
    --gold-light:   #E4C56A;
    --gold-lighter: #F5E6BC;
    --gold-dark:    #9B7B10;
    --gold-deep:    #7A5F0A;
    --charcoal:     #1C1C1E;
    --dark-bg:      #141009;
    --dark-card:    rgba(255,255,255,0.04);
    --ivory:        #FAF7F0;
    --cream:        #F5EDD8;
    --warm-white:   #FFFDF8;
    --text:         #2E2A22;
    --text-light:   #7A7060;
    --taupe:        #9C9080;
    --bg:           #FAF7F0;
    --gray-100:     #F0EBE1;
    --gray-200:     #E2D9CC;
    --green:        #2E7D52;
    --radius:       4px;
    --radius-round: 50px;
    --shadow:       0 8px 32px rgba(100,75,10,0.10);
    --shadow-lg:    0 24px 64px rgba(100,75,10,0.14);
    --transition:   0.35s cubic-bezier(0.25,0.46,0.45,0.94);
    --font-heading: 'Cormorant Garamond', serif;
    --font-body:    'DM Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); min-height: 100vh; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ==========================================
   HEADER
   ========================================== */
.bk-header {
    background: var(--dark-bg);
    border-bottom: 1px solid rgba(201,162,39,0.15);
    padding: 0;
    position: sticky; top: 0; z-index: 100;
}
.bk-header__container {
    max-width: 1100px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.bk-header__logo { display: flex; align-items: center; gap: 0.9rem; }
.bk-header__logo-img {
    width: 50px; height: 50px; border-radius: 50%;
    object-fit: contain; background: #fff; padding: 2px;
    box-shadow: 0 0 0 2px rgba(201,162,39,0.35);
    flex-shrink: 0;
}
.bk-header__logo-info { display: flex; flex-direction: column; gap: 1px; }
.bk-header__logo-name {
    font-family: var(--font-heading);
    font-size: 1.15rem; font-weight: 500;
    color: #F0E6C8; line-height: 1.1;
}
.bk-header__logo-sub {
    font-size: 0.62rem; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase;
    color: rgba(201,162,39,0.45);
}
.bk-header__back {
    display: flex; align-items: center; gap: 0.5rem;
    color: rgba(201,162,39,0.55); font-size: 0.8rem;
    font-weight: 600; letter-spacing: 0.5px;
    transition: color var(--transition); white-space: nowrap;
}
.bk-header__back svg { flex-shrink: 0; }
.bk-header__back:hover { color: var(--gold-light); }

/* ==========================================
   HERO SECTION
   ========================================== */
.booking__hero {
    background: linear-gradient(165deg, var(--dark-bg) 0%, #1E1810 50%, var(--dark-bg) 100%);
    text-align: center;
    padding: 4rem 2rem 3rem;
    position: relative; overflow: hidden;
}
.booking__hero::before {
    content: '';
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 70%; height: 200%;
    background: radial-gradient(ellipse, rgba(201,162,39,0.07) 0%, transparent 60%);
    pointer-events: none;
}
/* Decorative corner accents */
.booking__hero::after {
    content: '✦';
    position: absolute; bottom: 1.5rem; right: 2rem;
    color: rgba(201,162,39,0.15);
    font-size: 1rem; letter-spacing: 8px;
}
.booking__eyebrow {
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 5px; text-transform: uppercase;
    color: rgba(201,162,39,0.5);
    margin-bottom: 1rem; display: block;
}
.booking__title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    font-weight: 300; color: #F0E6C8;
    line-height: 1.05; margin-bottom: 0.65rem;
    letter-spacing: -0.5px;
}
.booking__subtitle {
    color: rgba(201,162,39,0.45); font-size: 0.88rem;
    letter-spacing: 0.5px; font-weight: 400;
}

/* ==========================================
   MAIN CONTAINER
   ========================================== */
.booking__container {
    max-width: 860px; margin: 0 auto;
    padding: 3rem 1.5rem 6rem;
}

/* ==========================================
   PROGRESS BAR
   ========================================== */
.booking__progress {
    display: flex; align-items: flex-start;
    justify-content: center; gap: 0;
    margin-bottom: 3.5rem;
}
.progress-step {
    display: flex; flex-direction: column;
    align-items: center; gap: 0.5rem;
    flex: 1; max-width: 140px;
    position: relative;
}
/* Connecting line between steps */
.progress-step + .progress-step::before {
    content: '';
    position: absolute;
    top: 20px; right: 50%;
    width: 100%; height: 1px;
    background: var(--gray-200);
    z-index: 0;
    transition: background 0.4s ease;
}
.progress-step.done + .progress-step::before { background: var(--gold-lighter); }
.progress-step__dot {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--warm-white);
    border: 2px solid var(--gray-200);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; font-weight: 700; color: var(--taupe);
    transition: all 0.4s ease;
    position: relative; z-index: 1;
}
.progress-step.active .progress-step__dot {
    background: var(--gold);
    border-color: var(--gold-dark);
    color: #fff;
    box-shadow: 0 4px 18px rgba(201,162,39,0.45);
}
.progress-step.done .progress-step__dot {
    background: var(--gold-dark);
    border-color: var(--gold-deep);
    color: #fff;
}
.progress-step.done .progress-step__dot::after {
    content: '✓';
    position: absolute; font-size: 0.85rem;
}
.progress-step.done .progress-step__dot span { display: none; }
.progress-step__label {
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--taupe); text-align: center;
    transition: color 0.4s ease; line-height: 1.3;
}
.progress-step.active .progress-step__label { color: var(--gold-dark); }
.progress-step.done .progress-step__label { color: var(--gold); }

/* ==========================================
   STEP CARDS
   ========================================== */
.booking-step {
    background: var(--warm-white);
    border-radius: var(--radius);
    padding: 2.75rem;
    box-shadow: 0 2px 4px rgba(100,75,10,0.04), var(--shadow);
    position: relative; overflow: hidden;
    border: 1px solid rgba(201,162,39,0.1);
}
/* Gold top accent */
.booking-step::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold-deep) 0%, var(--gold-light) 50%, var(--gold-deep) 100%);
}

.step-header { margin-bottom: 2.25rem; }
.step-title {
    font-family: var(--font-heading);
    font-size: 1.9rem; font-weight: 400; color: var(--charcoal);
    margin-bottom: 0.35rem; line-height: 1.1;
}
.step-desc { color: var(--text-light); font-size: 0.88rem; line-height: 1.65; }

.step-section { margin-bottom: 2.25rem; }
.section-label {
    display: inline-flex; align-items: center; gap: 0.6rem;
    margin-bottom: 1.1rem;
}
.section-label__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--gold-lighter); color: var(--gold-dark);
    font-size: 0.72rem; font-weight: 800; flex-shrink: 0;
}
.section-label-text {
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; color: var(--text);
}
.time-section {
    margin-top: 2.25rem; padding-top: 2rem;
    border-top: 1px solid var(--gray-100);
}

/* Skeleton loading */
.loading-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.loading-card {
    height: 220px; border-radius: var(--radius);
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.loading-text { color: var(--taupe); font-size: 0.88rem; font-style: italic; padding: 0.5rem 0; }

/* ==========================================
   SERVICES GRID
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem; margin-bottom: 0.5rem;
}
.service-option {
    background: var(--warm-white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius); overflow: hidden;
    cursor: pointer; transition: all var(--transition);
    position: relative;
}
.service-option:hover {
    border-color: var(--gold-lighter);
    box-shadow: 0 8px 28px rgba(100,75,10,0.08);
    transform: translateY(-3px);
}
.service-option.selected {
    border-color: var(--gold);
    box-shadow: 0 8px 28px rgba(201,162,39,0.18);
}
/* Check badge */
.service-option.selected::after {
    content: '✓';
    position: absolute; top: 0.65rem; right: 0.65rem;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--gold); color: #fff;
    font-size: 0.75rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    z-index: 3;
}
.service-option__img { width: 100%; height: 145px; overflow: hidden; }
.service-option__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.service-option:hover .service-option__img img { transform: scale(1.06); }
.service-option__body { padding: 1.1rem 1.15rem 1.25rem; }
.service-option__icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.service-name {
    font-family: var(--font-heading);
    font-size: 1.15rem; font-weight: 500; color: var(--charcoal); margin-bottom: 0.3rem;
}
.service-desc { font-size: 0.8rem; color: var(--text-light); line-height: 1.65; margin-bottom: 0.85rem; }
.service-details {
    display: flex; align-items: center;
    justify-content: space-between;
    padding-top: 0.7rem;
    border-top: 1px solid var(--gray-100);
}
.service-price {
    font-family: var(--font-heading);
    font-size: 1.2rem; font-weight: 600; color: var(--gold-dark);
}
.service-duration { font-size: 0.75rem; color: var(--taupe); }

/* ==========================================
   DATE & TIME GRIDS
   ========================================== */
.date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 0.7rem;
}
.date-slot {
    background: var(--warm-white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius); padding: 0.85rem 0.5rem;
    text-align: center; cursor: pointer;
    transition: all var(--transition);
}
.date-slot:hover { border-color: var(--gold-lighter); background: #FFFBF0; transform: translateY(-2px); }
.date-slot.selected {
    border-color: var(--gold); background: var(--gold-lighter);
    box-shadow: 0 4px 14px rgba(201,162,39,0.2);
}
.date-slot__weekday {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-light); margin-bottom: 0.2rem;
}
.date-slot__day {
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 600; color: var(--charcoal);
    line-height: 1; margin-bottom: 0.15rem;
}
.date-slot__month { font-size: 0.65rem; color: var(--taupe); text-transform: uppercase; letter-spacing: 0.5px; }
.date-slot.selected .date-slot__weekday,
.date-slot.selected .date-slot__day,
.date-slot.selected .date-slot__month { color: var(--gold-dark); }

.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 0.55rem; }
.time-slot {
    background: var(--warm-white); border: 2px solid var(--gray-200); border-radius: var(--radius);
    padding: 0.65rem 0.4rem; text-align: center; cursor: pointer;
    font-size: 0.9rem; font-weight: 600; color: var(--text);
    transition: all var(--transition);
}
.time-slot:hover { border-color: var(--gold-lighter); background: #FFFBF0; transform: translateY(-2px); }
.time-slot.selected {
    background: var(--gold); border-color: var(--gold-dark); color: #fff;
    box-shadow: 0 4px 14px rgba(201,162,39,0.35);
}

/* ==========================================
   STEP 3 — Form + Summary
   ========================================== */
.step3-grid {
    display: grid; grid-template-columns: 1fr 300px;
    gap: 2.25rem; margin-bottom: 0.5rem; align-items: start;
}

/* Form */
.booking-form .form-field { position: relative; margin-bottom: 1.6rem; }
.booking-form .form-label {
    display: block; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-light); margin-bottom: 0.45rem;
    transition: color 0.3s;
}
.booking-form .form-field:focus-within .form-label { color: var(--gold-dark); }
.booking-form .form-input {
    width: 100%; padding: 0.85rem 0;
    border: none; border-bottom: 1.5px solid var(--gray-200);
    font-family: var(--font-body); font-size: 0.93rem;
    color: var(--text); background: transparent; outline: none;
    transition: border-color 0.3s;
}
.booking-form .form-input:focus { border-bottom-color: var(--gold); }
.booking-form .form-input::placeholder { color: #C0B090; font-size: 0.87rem; }
.booking-form textarea.form-input { resize: none; min-height: 75px; padding: 0.5rem 0; }
.label-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: #C0B090; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* Summary dark panel */
.booking-summary {
    background: linear-gradient(165deg, #1A1510, #211A0E);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: var(--radius); overflow: hidden;
    position: sticky; top: 6rem;
}
.summary-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(201,162,39,0.12);
    display: flex; align-items: center; gap: 0.6rem;
}
.summary-ornament { color: var(--gold-light); font-size: 0.8rem; }
.summary-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem; font-weight: 500; color: #F0E6C8;
}
.summary-body { padding: 1.2rem 1.5rem; }
.summary-row {
    display: flex; justify-content: space-between;
    align-items: baseline; gap: 0.75rem; padding: 0.5rem 0;
}
.summary-label {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(201,162,39,0.45); flex-shrink: 0;
}
.summary-value { font-size: 0.85rem; color: #E8DFC8; text-align: right; font-weight: 500; }
.summary-divider { height: 1px; background: rgba(201,162,39,0.12); margin: 0.4rem 0; }
.summary-row--total .summary-label { color: rgba(201,162,39,0.65); font-size: 0.73rem; }
.summary-price {
    font-family: var(--font-heading) !important;
    font-size: 1.45rem !important; font-weight: 600 !important;
    color: var(--gold-light) !important;
}

/* ==========================================
   NAVIGATION BUTTONS
   ========================================== */
.step-nav {
    display: flex; align-items: center;
    justify-content: space-between; gap: 1rem;
    margin-top: 2.25rem; padding-top: 1.75rem;
    border-top: 1px solid var(--gray-100);
}
.step-nav--right { justify-content: flex-end; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: var(--charcoal);
    color: #fff; border: none; border-radius: var(--radius-round);
    font-size: 0.82rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    cursor: pointer; transition: all var(--transition); white-space: nowrap;
    position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s ease; z-index: 0;
}
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary:hover::before { transform: scaleX(1); }
.btn-primary:hover { color: #1A1208; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary:disabled::before { display: none; }
.btn-primary:disabled:hover { color: #fff; }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.9rem 1.5rem; background: transparent;
    color: var(--text-light); border-radius: var(--radius-round);
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.5px;
    cursor: pointer; transition: all var(--transition);
    border: 1.5px solid var(--gray-200);
}
.btn-ghost:hover { border-color: var(--gold-lighter); color: var(--gold-dark); background: var(--gold-lighter); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 2rem; background: transparent;
    color: rgba(201,162,39,0.8); border-radius: var(--radius-round);
    font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    border: 1.5px solid rgba(201,162,39,0.35);
    transition: all var(--transition); white-space: nowrap;
}
.btn-outline:hover { background: rgba(201,162,39,0.1); border-color: var(--gold-light); color: var(--gold-light); }

/* ==========================================
   CONFIRMATION
   ========================================== */
.confirmation { text-align: center; padding: 2rem 1rem 1rem; }
.confirmation__icon {
    width: 88px; height: 88px;
    background: rgba(46,125,82,0.08);
    border: 1.5px solid rgba(46,125,82,0.25);
    border-radius: 50%; margin: 0 auto 1.75rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--green);
}
.confirmation__eyebrow {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 5px;
    text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem;
}
.confirmation__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 300;
    color: var(--charcoal); margin-bottom: 0.75rem;
}
.confirmation__text {
    color: var(--text-light); font-size: 0.92rem;
    line-height: 1.85; margin-bottom: 2.25rem;
}
.confirmation__card {
    background: linear-gradient(165deg, #1A1510, #211A0E);
    border: 1px solid rgba(201,162,39,0.18);
    border-radius: var(--radius);
    padding: 1.5rem; max-width: 360px; margin: 0 auto 2.25rem; text-align: left;
}
.confirmation__row {
    display: flex; justify-content: space-between;
    align-items: baseline; gap: 1rem; padding: 0.55rem 0;
    border-bottom: 1px solid rgba(201,162,39,0.08);
}
.confirmation__row:last-child { border-bottom: none; }
.confirmation__row span {
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(201,162,39,0.45);
}
.confirmation__row strong { font-size: 0.88rem; color: #E8DFC8; font-weight: 500; text-align: right; }
.confirmation__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.confirmation__whatsapp {
    padding: 1.5rem; background: var(--gray-100);
    border-radius: var(--radius); max-width: 340px; margin: 0 auto;
}
.confirmation__whatsapp p { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.85rem; }
.btn-whatsapp {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.82rem 1.85rem; background: #25D366; color: #fff;
    border-radius: var(--radius-round); font-size: 0.85rem; font-weight: 700;
    letter-spacing: 0.5px; transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.4); }

/* ==========================================
   TOAST & FOOTER
   ========================================== */
.toast {
    position: fixed; bottom: 2rem; left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 0.9rem 2rem; border-radius: var(--radius-round);
    color: #fff; font-weight: 600; font-size: 0.88rem;
    z-index: 9999; opacity: 0; transition: all 0.4s ease;
    pointer-events: none; box-shadow: 0 8px 28px rgba(0,0,0,0.2);
    letter-spacing: 0.3px;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: var(--green); }
.toast.error   { background: #B33A2A; }

.bk-footer {
    background: var(--charcoal); text-align: center;
    padding: 1.25rem; border-top: 1px solid rgba(201,162,39,0.1);
}
.bk-footer p { font-size: 0.75rem; color: rgba(255,255,255,0.28); letter-spacing: 0.5px; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 780px) {
    .step3-grid { grid-template-columns: 1fr; }
    .booking-summary { position: static; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .booking__container { padding: 2rem 1rem 5rem; }
    .booking-step { padding: 1.75rem 1.25rem; }
    .booking__hero { padding: 2.75rem 1.25rem 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .loading-cards { grid-template-columns: 1fr; }
    .loading-card { height: 150px; }
    .date-grid { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); }
    .time-grid { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
    .step-nav { flex-direction: column-reverse; }
    .step-nav--right { flex-direction: column; }
    .btn-primary, .btn-ghost, .btn-outline { width: 100%; justify-content: center; }
    .confirmation__actions { flex-direction: column; align-items: center; }
    .progress-step__label { font-size: 0.6rem; }
}
@media (max-width: 400px) {
    .booking__title { font-size: 2rem; }
    .step-title { font-size: 1.65rem; }
    .progress-step__label { display: none; }
    .progress-step__dot { width: 34px; height: 34px; font-size: 0.78rem; }
}
