@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&display=swap');

:root {
    --primary-color: #F07B2A;
    --primary-hover: #d96822;
    --bg-color: #0F1F3D;
    --card-bg: #162847;
    --text-main: #F5F4F0;
    --text-light: #9ca3af;
    --border-color: rgba(240, 123, 42, 0.2);
    --border-active: #F07B2A;
    --success-color: #10b981;
    --radius: 16px;
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 15px 40px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

h1, h2, h3, h4, .brand, .step-number {
    font-family: 'DM Serif Display', serif;
    font-weight: normal;
}

/* Floating Clean Widget */
.booking-widget {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: var(--shadow-md);
    max-width: 500px;
    width: 100%;
}

.scheduler-container {
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 5px;
}

.scheduler-container::-webkit-scrollbar { width: 6px; }
.scheduler-container::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

.scheduler-header {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 10px;
}

.scheduler-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.scheduler-header p {
    color: var(--text-light);
    font-size: 15px;
}

/* Animations Core */
.animate-pop { animation: popBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both; }
.animate-slide-in { animation: slideInFade 0.4s ease-out forwards; }
.click-pop-effect { animation: clickPop 0.3s ease-out forwards; }

@keyframes popBounce {
    0% { transform: scale(0.9) translateY(20px); opacity: 0; }
    50% { transform: scale(1.02) translateY(-5px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes slideInFade {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes clickPop {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Steps */
.step-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.step-card.active {
    box-shadow: 0 4px 20px rgba(240, 123, 42, 0.15);
    border-color: var(--primary-color);
}

.step-card.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.step-card.disabled .step-header { cursor: default; }

.step-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: transparent;
}

.step-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    width: 28px;
    height: 28px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.step-card.active .step-number {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.step-card.disabled .step-number {
    border-color: var(--text-light);
    color: var(--text-light);
}

.step-card.completed .step-number {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

.step-title h3 {
    font-size: 18px;
}

.step-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-selected-value {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.edit-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.edit-btn:hover {
    background: var(--border-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

.edit-btn.hidden { display: none; }

.step-content {
    padding: 0 16px 20px 16px;
    display: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 8px;
    padding-top: 16px;
}

.step-card.active .step-content {
    display: block;
    animation: slideInFade 0.3s ease-out forwards;
}

/* Service Options */
.service-list { display: flex; flex-direction: column; gap: 10px; }

.service-option {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    user-select: none;
}

.service-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(240, 123, 42, 0.05);
    transform: translateY(-2px);
}

.service-info h4 {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--text-main);
}

.service-info p {
    font-size: 13px;
    color: var(--text-light);
}

.price-tag {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-color);
    background: rgba(240, 123, 42, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.service-option:hover .price-tag {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* Calendar */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.icon-btn {
    background: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-main);
    transition: var(--transition);
}
.icon-btn:hover { border-color: var(--primary-color); color: var(--primary-color); transform: scale(1.1); }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.weekday {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}

.day-btn {
    border: 1px solid transparent;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin: 0 auto;
    transition: var(--transition);
    color: var(--text-main);
}

.day-btn:hover:not(.disabled) {
    background-color: rgba(240, 123, 42, 0.1);
    color: var(--primary-color);
}

.day-btn.selected {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(240, 123, 42, 0.3);
}

.day-btn.disabled { color: #374151; cursor: not-allowed; }

/* Time Slots */
.section-desc { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }

.time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 10px; }

.time-slot {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 0;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
}

.time-slot:hover {
    border-color: var(--primary-color);
    background: rgba(240, 123, 42, 0.05);
    transform: translateY(-2px);
}

.time-slot.selected {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Forms */
.details-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; gap: 16px; width: 100%; }
.input-group { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.input-group label { font-size: 13px; font-weight: 600; color: var(--text-main); }

.input-group input {
    width: 100%; box-sizing: border-box; padding: 14px;
    border: 1px solid var(--border-color); border-radius: 12px;
    font-size: 15px; font-family: inherit; background: rgba(0,0,0,0.1);
    color: var(--text-main); transition: var(--transition);
}

.input-group input:focus {
    outline: none; border-color: var(--primary-color);
    background: rgba(240, 123, 42, 0.05);
}

.summary-box {
    background-color: rgba(255,255,255,0.03);
    border-radius: 12px; padding: 16px; margin-top: 4px;
    display: flex; flex-direction: column; gap: 10px; font-size: 14px;
    border-left: 3px solid var(--primary-color);
}

.summary-box i { color: var(--primary-color); width: 22px; }

/* Global Buttons Refactor */
.btn {
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 123, 42, 0.3);
}

.btn-primary:active { transform: scale(0.98); }

.btn-primary:disabled {
    background-color: #374151; color: #9ca3af;
    cursor: not-allowed; transform: none; box-shadow: none;
}

.hidden { display: none !important; }

/* Success Card UI Override */
.success-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
}
.success-title { font-size: 28px; color: var(--text-main); margin-bottom: 12px; }
.success-desc { color: var(--text-light); line-height: 1.6; margin-bottom: 30px; font-size: 15px; }
