@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Jost:wght@300;400;500&display=swap');

#moire-booking-app * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#moire-booking-app {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: #1a1008;
    max-width: 700px;
    margin: 0 auto;
    padding: 32px 20px 80px;
    background: linear-gradient(160deg, #fdf6e3 0%, #f5e6b8 60%, #ede0a0 100%);
    border-radius: 4px;
}

/* Typography */
#moire-booking-app h1 {
    font-size: clamp(30px, 6vw, 52px);
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.05;
    color: #1a1008;
    margin: 8px 0 12px;
}

.mb-lbl {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #5a3e10;
    display: block;
    margin-bottom: 12px;
}

.mb-subtitle {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 2px;
    color: #7a5c1e;
    text-transform: uppercase;
}

.mb-address {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #3d2800;
    letter-spacing: 1px;
    margin-top: 4px;
}

.mb-divider {
    width: 48px;
    height: 2px;
    background: #b8891e;
    margin: 14px auto;
}

.mb-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7a5c1e;
    border: 1px solid #dcc878;
    padding: 5px 14px;
    background: #fdf6e3;
}

.mb-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b8891e;
    flex-shrink: 0;
}

/* Progress */
.mb-progress {
    display: flex;
    align-items: center;
    margin: 32px 0 6px;
}

.mb-step-dot {
    width: 30px;
    height: 30px;
    border: 1.5px solid #dcc878;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #9a7a3a;
    flex-shrink: 0;
    background: #fdf6e3;
    transition: all 0.3s;
}

.mb-step-dot.active {
    background: rgba(184, 137, 30, 0.1);
    border-color: #b8891e;
    color: #b8891e;
}

.mb-step-dot.done {
    background: #b8891e;
    border-color: #b8891e;
    color: #fff;
}

.mb-step-line {
    flex: 1;
    height: 1.5px;
    background: #dcc878;
    transition: background 0.3s;
}

.mb-step-line.done {
    background: #b8891e;
}

.mb-step-labels {
    display: flex;
    justify-content: space-between;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 2px;
    color: #9a7a3a;
    text-transform: uppercase;
    margin-bottom: 32px;
}

/* Sections */
.mb-section {
    margin-bottom: 32px;
}

/* Duration buttons */
.mb-dur-row {
    display: flex;
    gap: 10px;
}

.mb-dur-btn {
    flex: 1;
    padding: 16px 8px;
    border: 1.5px solid #dcc878;
    background: #fdf6e3;
    color: #1a1008;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.mb-dur-btn:hover {
    border-color: #b8891e;
    color: #1a1008;
}

.mb-dur-btn.active {
    border-color: #b8891e;
    background: #b8891e;
    color: #fff;
    font-weight: 500;
}

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

.mb-cal-nav {
    background: #fdf6e3;
    border: 1.5px solid #dcc878;
    color: #b8891e;
    cursor: pointer;
    font-size: 22px;
    padding: 4px 14px;
    font-family: 'Jost', sans-serif;
    transition: all 0.2s;
    line-height: 1.3;
}

.mb-cal-nav:hover {
    background: #b8891e;
    color: #fff;
    border-color: #b8891e;
}

.mb-cal-month {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1008;
}

.mb-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    justify-items: center;
}

.mb-cal-dn {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9a7a3a;
    padding-bottom: 10px;
    text-align: center;
    width: 100%;
}

.mb-cal-day {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    border: 1.5px solid transparent;
}

.mb-cal-day:hover:not(.dis):not(.sel) {
    background: #f0d878;
    border-color: #dcc878;
}

.mb-cal-day.sel {
    background: #b8891e;
    color: #fff;
    border-color: #b8891e;
    font-weight: 500;
}

.mb-cal-day.dis {
    color: #cdb96a;
    cursor: default;
}

.mb-cal-day.tod:not(.sel)::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #b8891e;
    border-radius: 50%;
}

.mb-cal-hint {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #9a7a3a;
    margin-top: 12px;
    text-align: center;
}

/* Time slots */
.mb-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 8px;
}

.mb-slot-btn {
    padding: 13px 6px;
    border: 1.5px solid #dcc878;
    background: #fdf6e3;
    color: #3d2800;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.mb-slot-btn:hover:not(.taken) {
    border-color: #b8891e;
    background: #f5e6b8;
}

.mb-slot-btn.active {
    background: #b8891e;
    border-color: #b8891e;
    color: #fff;
    font-weight: 500;
}

.mb-slot-btn.taken {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
    font-size: 12px;
}

/* Selected time summary */
.mb-time-summary {
    border: 1.5px solid #b8891e;
    background: #fdf6e3;
    padding: 14px 20px;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #5a3e10;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Buttons */
.mb-btn-gold {
    background: #b8891e;
    color: #fff;
    border: none;
    padding: 16px 44px;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    letter-spacing: 3px;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.mb-btn-gold:hover {
    background: #9a7010;
    transform: translateY(-1px);
}

.mb-btn-gold:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
}

.mb-btn-ghost {
    background: transparent;
    color: #7a5c1e;
    border: 1.5px solid #b8891e;
    padding: 14px 32px;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    letter-spacing: 3px;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.mb-btn-ghost:hover {
    background: #b8891e;
    color: #fff;
}

.mb-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
}

/* Form */
.mb-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .mb-grid2 {
        grid-template-columns: 1fr;
    }
}

.mb-field label {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #5a3e10;
    display: block;
    margin-bottom: 8px;
}

.mb-field input,
.mb-field textarea {
    width: 100%;
    background: #fdf6e3;
    border: none;
    border-bottom: 2px solid #dcc878;
    color: #1a1008;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 17px;
    padding: 10px 0;
    outline: none;
    transition: border-color 0.2s;
    letter-spacing: 0.5px;
    border-radius: 0;
    box-shadow: none;
}

.mb-field input:focus,
.mb-field textarea:focus {
    border-bottom-color: #b8891e;
    box-shadow: none;
    outline: none;
}

.mb-field input::placeholder,
.mb-field textarea::placeholder {
    color: #c8a85a;
}

.mb-field textarea {
    resize: vertical;
    min-height: 72px;
    border: 1.5px solid #dcc878;
    padding: 10px;
}

.mb-field textarea:focus {
    border-color: #b8891e;
}

/* Tags */
.mb-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mb-tag-btn {
    padding: 12px 18px;
    border: 1.5px solid #dcc878;
    background: #fdf6e3;
    color: #1a1008;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.mb-tag-btn:hover {
    border-color: #b8891e;
    background: #f5e6b8;
}

.mb-tag-btn.active {
    border-color: #b8891e;
    background: #b8891e;
    color: #fff;
}

/* Summary stripe */
.mb-summary-bar {
    border: 1.5px solid #dcc878;
    background: #fdf6e3;
    padding: 16px 20px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.mb-sum-k {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9a7a3a;
    margin-bottom: 3px;
}

.mb-sum-v {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #1a1008;
}

/* Confirm box */
.mb-confirm-box {
    border: 1.5px solid #dcc878;
    background: #fdf6e3;
    padding: 24px;
    margin-bottom: 16px;
}

.mb-c-row {
    display: flex;
    gap: 16px;
    border-bottom: 1px solid #e8d488;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.mb-c-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.mb-c-key {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #5a3e10;
    width: 120px;
    flex-shrink: 0;
    padding-top: 2px;
}

.mb-c-val {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #1a1008;
    line-height: 1.5;
}

/* Loading */
.mb-loading-bar {
    height: 2px;
    background: #e8d488;
    overflow: hidden;
    position: relative;
    margin: 8px 0 16px;
    border-radius: 1px;
}

.mb-loading-bar::after {
    content: '';
    position: absolute;
    left: -40%;
    width: 40%;
    height: 100%;
    background: #b8891e;
    animation: mbSlide 1.2s ease-in-out infinite;
}

@keyframes mbSlide {
    0%   { left: -40%; }
    100% { left: 140%; }
}

.mb-loading-text {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #9a7a3a;
    text-align: center;
    letter-spacing: 1px;
}

/* Success */
.mb-success-icon {
    width: 64px;
    height: 64px;
    border: 2px solid #b8891e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #b8891e;
    margin: 0 auto 24px;
    background: #fdf6e3;
}

.mb-success-box {
    border: 1.5px solid #dcc878;
    background: #fdf6e3;
    padding: 18px 28px;
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #7a5c1e;
    line-height: 2.2;
    text-align: left;
}

/* Error */
.mb-error {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #8b2000;
    padding: 12px 16px;
    border: 1.5px solid #e8a090;
    background: #fff5f0;
    margin-top: 12px;
}

/* Fade animation */
.mb-fade-up {
    animation: mbFadeUp 0.4s ease forwards;
}

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

/* Header center */
.mb-header {
    text-align: center;
    margin-bottom: 8px;
}
