/* -------------------------------
   BOOKING PREMIUM AlGreen UI
-------------------------------- */

.booking-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

/* STEP CARD LIST (Services) */
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: 0.25s;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.service-card strong {
    font-size: 17px;
    color: var(--text);
}

/* CALENDAR */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.calendar-day {
    background: #fff;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: 0.25s;
}

.calendar-day:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

/* TIME SLOTS */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
}

.time-slot {
    padding: 14px 0;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: 0.25s;
}

.time-slot:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

/* CUSTOMER INFO FORM */
.customer-form label {
    margin-top: 12px;
    display: block;
    font-weight: 600;
}

.customer-form input {
    width: 100%;
    padding: 12px;
    margin-top: 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

.customer-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(196,154,219,0.25);
}

.calendar-day {
    padding: 14px;
    border-radius: 10px;
    background: #fafafa;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #eee;
}

.calendar-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.calendar-today {
    border: 2px solid #007aff;
}

.calendar-full {
    background: #ffe5e5;
    color: #a00;
    cursor: not-allowed !important;
    opacity: .6;
}

.calendar-available {
    background: #eef4f0;
    border-color: #4e7149;
}

.day-number {
    font-size: 20px;
    font-weight: bold;
}

.day-name {
    font-size: 12px;
    opacity: 0.7;
}

/* WRAPPER */
.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
    position: relative;
    z-index: 10; /* Se till att header inte blockerar grid */
}

.cal-nav {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
}

.cal-nav:hover {
    background: #f3f3f3;
}

/* GRID */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* DAG */
.calendar-day {
    padding: 14px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #eee;
    text-align: center;
    cursor: pointer;
    transition: 0.25s;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    position: relative;
    z-index: 20; /* Viktigt – gör dagen klickbar över allt annat */
}

/* Fixera barn så att de inte blockar klick */
.calendar-day * {
    pointer-events: none;
}

/* Men själva dagen ska kunna klickas */
.calendar-day {
    pointer-events: auto;
}

.calendar-day:hover {
    background: #f0f7ff;
    border-color: #90caff;
    transform: translateY(-2px);
}

/* LEDIGA TIDER */
.calendar-available {
    background: #eef4f0;
    border-color: #4e7149;
}

/* FULLBOKAT */
.calendar-full {
    background: #ffeaea;
    border-color: #e08b8b;
    color: #999;
    cursor: not-allowed;
}

.calendar-full:hover {
    background: #ffeaea;
    transform: none;
}

/* IDAG — highlight */
.calendar-today {
    box-shadow: 0 0 0 2px #4a9aff inset;
}

/* ============================================
   BOOKING CONFIRMATION PAGE (THANK YOU)
============================================ */

.confirmation-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.confirmation-card {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.confirmation-icon {
    font-size: 48px;
    color: #4e7149;
    margin-bottom: 10px;
}

.confirmation-title {
    font-size: 26px;
    margin-bottom: 6px;
    font-weight: 700;
}

.confirmation-subtitle {
    color: #555;
    margin-bottom: 25px;
}

.confirmation-details {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.cd-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 15px;
}

.cd-row:last-child {
    border-bottom: none;
}

.cd-row span {
    color: #555;
}

.confirmation-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
}

/* GRID */
.time-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

/* PREMIUM BLOCK SLOT */
.block-slot {
    padding: 18px 20px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dbe4ff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: 0.25s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.block-slot:hover {
    border-color: #8cb9ff;
    background: #f3f8ff;
    transform: translateY(-2px);
}

/* Text */
.slot-time {
    font-size: 20px;
    font-weight: 600;
    color: #1a3d7c;
}

.slot-length {
    font-size: 14px;
    color: #5e6a80;
    background: #e8f0ff;
    padding: 4px 10px;
    border-radius: 8px;
}

.booking-terms-box {
    background: #fafafa;
    border: 1px solid #e3e3e3;
    padding: 16px;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.terms-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
}

.terms-check a {
    color: #4e7149;
    font-weight: 600;
    text-decoration: none;
}

.terms-check a:hover {
    text-decoration: underline;
}

.terms-check input {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* PROGRESS BAR */
.booking-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
    padding: 15px 10px;
    background: #f2f6f3;
    border: 1px solid #d7e0d7;
    border-radius: 12px;
}

.progress-step {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #7b8d85;
    font-weight: 600;
    transition: 0.25s ease;
    position: relative;
}

.progress-step .number {
    display: inline-block;
    background: #e6efe7;
    color: #4e7149;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    line-height: 30px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 700;
}

.progress-step.active {
    color: #4e7149;
}

.progress-step.active .number {
    background: #4e7149;
    color: #fff;
}

/* Separator lines */
.progress-step::after {
    content: "";
    position: absolute;
    right: -50%;
    top: 15px;
    width: 100%;
    height: 2px;
    background: #e6efe7;
    z-index: -1;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.active::after {
    background: #4e7149;
}

/* MOBILE PROGRESS BAR FIX */
@media (max-width: 768px) {

    .booking-progress {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 10px;
        margin-bottom: 25px;
        border-radius: 12px;
        background: #f2f6f3;
    }

    .progress-step {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    .progress-step .number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .progress-step span:last-child {
        font-size: 12px;
        white-space: nowrap;
    }

    /* Reduce big header spacing */
    .booking-container {
        padding-top: 10px;
    }

    /* Step title smaller */
    .step-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
}
/* --- PREMIUM MONTH CALENDAR --- */

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.cal-nav {
    background: #fff;
    border: 1px solid var(--border);
    padding: 6px 12px;
    font-size: 20px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: 0.25s;
}

.cal-nav:hover {
    background: var(--primary);
    color: #fff;
}

/* WEEKDAY LABELS */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 6px;
    font-weight: 600;
    color: #666;
}

/* MONTH GRID */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

/* DAY CELL */
.calendar-day {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 10px;
    min-height: 85px;
    text-align: center;
    cursor: pointer;
    transition: 0.25s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-day:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Empty cells before month start */
.calendar-empty {
    background: transparent;
    border: none;
    cursor: default;
}

/* Today highlight */
.calendar-today {
    border-color: var(--primary);
    font-weight: 700;
}

/* No slots */
.calendar-full {
    background: #fde2e4;
    border-color: #f5b5bb;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Available */
.calendar-available {
    background: #eef4f0;
    border-color: #4e7149;
}

.calendar-available:hover {
    background: #e6efe7;
}

/* === PREMIUM 24H MODAL === */
.modal-24h {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-24h.hidden {
    display: none;
}

.modal-24h-content {
    background: #fff;
    padding: 26px 28px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 380px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: fadeIn 0.25s ease;
}

.modal-24h-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.modal-24h-buttons {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.modal-24h-buttons button {
    flex: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
