/* google font link */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;700&family=Rufina:wght@400;700&display=swap');

/* presets */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    user-select: none;
    /* border: 1px solid #614545; */
}

:root {
    --steps: 4;
    --progress-width: calc((var(--steps) - 1) / var(--steps) * 100%);
}

.wrapper { 
    display: flex;
    min-height: 100vh; 
}
/* info */
.info { 
    width: 35%;
    padding: 50px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center; 
    justify-content: center;
}
.info h1 {
    font-size: 70px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-white);
    font-family: 'Playfair display', sans-serif;
}
.info p:nth-of-type(1) {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--color-white);
    font-family: 'Lato', sans-serif;
    letter-spacing: 4px;
}
.info p:nth-of-type(2) {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--color-white);
    font-family: 'Lato', sans-serif;
    letter-spacing: 1px;
}

/* booking */
.booking {
    width: 65%;
    padding: 50px 100px;
    overflow-y: auto !important;
    height: 100vh;
}
.booking .cancel {
    margin-bottom: 20px;
}
.booking .cancel a {
    text-decoration: none;
    text-align: right;
    background: var(--color-primary);
    width: fit-content;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 12px;
    font-family: 'Lato', sans-serif;
    color: var(--color-white);
}
.booking h1 {
    font-size: 30px;
    text-align: center;
    font-weight: 800;
    color: var(--color-primary);
    font-family: 'Rufina', sans-serif;
}
.booking .sub-text {
    text-align: center;
    font-family: 'Playfair display', sans-serif;
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-dark);
}
.step-indicator {
    width: 100%;
    margin-bottom: 40px;
}
.step-indicator::before {
    content: "";
    height: 2px;
    width: var(--progress-width);
    background: #c9c8c8;
    position: absolute;
    top: calc(40px / 2);
    left: 50%;
    translate: -50% -50%;
}
.step-indicator .progress {
    content: "";
    height: 2px;
    width: var(--progress-width);
    background: var(--color-primary);
    position: absolute;
    top: calc(40px / 2);
    left: 50%;
    translate: -50% -50%;
    z-index: 2;
    transform: scaleX(0);
    transform-origin: left;
    transition: .2s;
}
.booking .steps {
    counter-reset: step-number;
    position: relative;
    z-index: 3;
}
.booking .steps span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #c9c8c8;
    flex: 1;
    transition: .2s linear .2s;
}
.booking .steps span::before {
    counter-increment: step-number;
    content: counter(step-number);
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid #c9c8c8;
    background-color: #ffffff;
    color: #c9c8c8;
    font-weight: 300;
    transition: .2s linear .2s;
}
.booking .steps span:where(.done, .current) {
    color: var(--color-primary);
    font-weight: 600;
}
.booking .steps span.done::before {
    background: #8a028a;
    border: transparent;
}
.booking .steps span.current::before {
    background: var(--color-primary);
    box-shadow: 0 2px 5px 3px #8000803f;
    border: 1px solid #800080;
}


/* toast notification */
.toast-msg {
    position: fixed;
    top: 20px;
    left: 67.5%;
    transform: translateX(-50%) translateY(-100px);
    background: #800080; /* Your salon pink */
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-weight: 500;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
}

.toast-msg.show {
    transform: translateX(-50%) translateY(0);
}

/* step 1 */
.service-list {
    width: 100%;
}
.service-category { 
    background: #fff; 
    border: 1px solid #f3e5f5;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px; 
}
.service-category h3 { 
    font-family: 'Playfair Display', serif; 
    color: #4a004a; 
    margin-bottom: 10px; 
    border-left: 4px solid var(--color-primary); 
    padding-left: 10px; 
}
.service-item label { 
    display: block; 
    padding: 8px 0; 
    cursor: pointer; 
}
.addon-section { 
    background: #fdf7ff; 
    padding: 15px; 
    border-radius: 8px; 
    border: 1px dashed #d1c4e9; 
    margin-top: 10px; 
}
.addon-section label {
    display: block;
    padding: 8px 0; 
    cursor: pointer; 
}
.lash-addon:disabled {
    cursor: not-allowed;
}

.addon-section {
    transition: opacity 0.3s ease;
}
.service-category .note {
    margin: 15px 0 10px;
    font-size: 14px;
    color: #4a004a;
    border-left: 3px solid var(--color-primary);
    padding-left: 5px;
}

/* Calendar Styling */
.calendar-container {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

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

.calendar-header h4 {
    font-family: 'Rufina', serif;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.calendar-header button {
    background: #f0f0f0;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 10px;
}

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

.day {
    aspect-ratio: 7 / 7;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Lato', sans-serif;
    transition: 0.2s;
}

.day:not(.disabled):hover {
    background: #fff0f5;
    color: #ff4d94;
}

.day.selected {
    background: #ff4d94 !important;
    color: white !important;
    font-weight: bold;
}

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

/* Time Selection Styling */
.time-selection {
    margin-bottom: 30px;
}
.time-selection h4 {
    margin-bottom: 15px;
    font-family: 'Rufina', serif;
    text-align: center;
    color: #555;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns for slots */
    gap: 12px;
}

.time-btn {
    padding: 12px 5px;
    border: 1px solid #eee;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    transition: 0.3s;
    text-align: center;
}

.time-btn:not(.locked):hover {
    border-color: #ff4d94;
    color: #ff4d94;
}

.time-btn.active {
    background: #333 !important; /* Darker theme for selected time */
    color: white !important;
    border-color: #333 !important;
}

/* Locked State Logic */
.time-btn.locked {
    opacity: 0.4;
    background: #fafafa;
    border: 1px dashed #ccc;
    cursor: not-allowed;
    color: #bbb;
}

/* Responsive Fix for Mobile */
@media (max-width: 992px) {
    .booking-grid {
        grid-template-columns: 1fr; /* Stack calendar and time on smaller screens */
    }
}

/* --- ANIMATIONS --- */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* step 3 */
.contact-form {
    max-width: 450px;
    margin: 0 auto;
    text-align: left;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    outline: none;
    transition: 0.3s;
    background: #fafafa;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: #ff4d94;
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 77, 148, 0.1);
}

.input-group textarea {
    resize: none;
}



/* step 4 */
.summary-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.summary-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.summary-section h4 {
    color: #ff4d94;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.summary-addon {
    font-size: 0.85rem;
    color: #888;
    padding-left: 15px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
    margin-top: 10px;
}

#final-total {
    color: #ff4d94;
}
.btn-outline {
    background: transparent;
    border: 2px solid #800080;
    color: #800080;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
}

.btn-outline:hover {
    background: #800080;
    color: #fff;
}



/* total display */
.total-display { 
    /* position: sticky; */
    width: 100%; 
    bottom: 40px; 
    background: #4a004a; 
    color: white; 
    padding: 15px; 
    border-radius: 50px; 
    text-align: center; 
    z-index: 10; 
    margin: 20px 0; 
}


/* navigation buttons */
.navigation {
    margin-bottom: 20px;
}
.booking .prev {
    background: transparent;
    width: 150px;
    padding: 10px 20px;
    border: none;
    color: var(--color-primary);
    font-family: 'Rufina', sans-serif;
    font-size: 13px;
    border-radius: 20px;
    border: 1px solid #c9c8c8;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.booking .next,
.booking .submit {
    background: var(--color-primary);
    width: 150px;
    padding: 10px 20px;
    border: none;
    color: var(--color-white);
    font-family: 'Rufina', sans-serif;
    font-size: 13px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.booking button:disabled {
    opacity: 0.8;
}

@media print {
    body * { visibility: hidden; }
    #printable-receipt, #printable-receipt * { visibility: visible; }
    #printable-receipt {
        position: absolute;
        left: 0; top: 0;
        width: 100%;
        padding: 40px;
        color: black;
        background: white;
    }
    .receipt-header h1 { color: #800080; font-family: 'Playfair', serif; }
}