/* =========================================
   GG BARBER - BOOKING PAGE
========================================= */

.booking-page {
    min-height: 100vh;
    padding: 70px 0 100px;
    background:
        radial-gradient(circle at 80% 10%, rgba(29, 78, 216, 0.10), transparent 30%),
        radial-gradient(circle at 10% 40%, rgba(193, 18, 31, 0.08), transparent 30%),
        #080808;
}

.booking-container {
    max-width: 1050px;
}

/* =========================================
   BOOKING HEADER
========================================= */

.booking-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 65px;
}

.booking-header h1 {
    font-size: clamp(2.7rem, 6vw, 4.5rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.booking-header > p:last-child {
    margin-top: 18px;
    color: #999;
    font-size: 1.05rem;
}

/* =========================================
   BACK BUTTON
========================================= */

.booking-back {
    color: #ccc;
    font-weight: 700;
    transition: 0.3s ease;
}

.booking-back:hover {
    color: #e63946;
}

/* =========================================
   BOOKING STEPS
========================================= */

.booking-step {
    margin-bottom: 28px;
    padding: 35px;

    background: #111;
    border: 1px solid #292929;
    border-radius: 14px;

    opacity: 0.55;
    transition:
        opacity 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.booking-step.active {
    opacity: 1;
    border-color: #333;
}

.step-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
}

.step-number {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #c1121f;
    color: #fff;

    font-size: 1.1rem;
    font-weight: 900;
}

.step-heading h2 {
    font-size: 1.55rem;
    text-transform: uppercase;
    line-height: 1.1;
}

.step-heading p {
    margin-top: 5px;
    color: #888;
    font-size: 0.9rem;
}

/* =========================================
   SERVICES
========================================= */

.booking-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.booking-service-card {
    width: 100%;

    padding: 24px;

    text-align: left;

    color: #fff;
    background: #181818;

    border: 1px solid #303030;
    border-radius: 10px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.booking-service-card:hover {
    transform: translateY(-3px);
    border-color: #555;
}

.booking-service-card.selected {
    background:
        linear-gradient(
            135deg,
            rgba(193, 18, 31, 0.18),
            rgba(29, 78, 216, 0.10)
        );

    border: 2px solid #c1121f;
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;
}

.booking-service-card .service-category {
    margin: 0;

    color: #e63946;

    font-size: 0.72rem;
    font-weight: 900;

    letter-spacing: 2px;
}

.service-check {
    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #444;
    border-radius: 50%;

    color: transparent;
    font-size: 0.8rem;
}

.booking-service-card.selected .service-check {
    background: #c1121f;
    border-color: #c1121f;
    color: #fff;
}

.booking-service-card h3 {
    margin-bottom: 8px;

    font-size: 1.15rem;
    line-height: 1.3;
}

.booking-service-card p {
    min-height: 45px;

    color: #999;

    font-size: 0.9rem;
}

.booking-service-info {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 20px;
    padding-top: 15px;

    border-top: 1px solid #303030;
}

.booking-service-info span {
    color: #888;
    font-size: 0.85rem;
}

.booking-service-info strong {
    color: #fff;
    font-size: 1.25rem;
}

/* =========================================
   BARBERS
========================================= */

.barbers-selection {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.barber-selection-card {
    position: relative;

    min-height: 155px;

    padding: 22px 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: #fff;
    background: #181818;

    border: 1px solid #303030;
    border-radius: 10px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.barber-selection-card:hover {
    transform: translateY(-3px);
    border-color: #555;
}

.barber-selection-card.selected {
    background:
        linear-gradient(
            135deg,
            rgba(193, 18, 31, 0.18),
            rgba(29, 78, 216, 0.12)
        );

    border: 2px solid #c1121f;
}

.barber-avatar {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #c1121f,
            #172554
        );

    font-size: 1.25rem;
    font-weight: 900;
}

.barber-selection-card h3 {
    font-size: 0.95rem;
    line-height: 1.25;
}

.barber-selection-card p {
    margin-top: 4px;

    color: #888;
    font-size: 0.8rem;
}

.barber-check {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 23px;
    height: 23px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #444;
    border-radius: 50%;

    color: transparent;
    font-size: 0.75rem;
}

.barber-selection-card.selected .barber-check {
    background: #c1121f;
    border-color: #c1121f;
    color: #fff;
}

/* =========================================
   DATE
========================================= */

.date-selection {
    max-width: 400px;
}

.date-selection label {
    display: block;

    margin-bottom: 9px;

    color: #ccc;
    font-weight: 700;
}

.date-selection input {
    width: 100%;

    padding: 15px 17px;

    color: #fff;
    background: #181818;

    border: 1px solid #3a3a3a;
    border-radius: 8px;

    outline: none;

    color-scheme: dark;

    transition: 0.3s ease;
}

.date-selection input:focus {
    border-color: #c1121f;
    box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.12);
}

/* =========================================
   TIMES
========================================= */

.times-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.time-slot {
    padding: 14px 10px;

    color: #fff;
    background: #181818;

    border: 1px solid #353535;
    border-radius: 7px;

    font-weight: 800;

    cursor: pointer;

    transition: 0.25s ease;
}

.time-slot:hover {
    background: #222;
    border-color: #c1121f;
}

.time-slot.selected {
    background: #c1121f;
    border-color: #c1121f;
}

/* =========================================
   CUSTOMER FORM
========================================= */

.customer-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group:last-child {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;

    color: #ccc;
    font-weight: 700;
}

.form-group label span {
    color: #666;
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 14px 16px;

    color: #fff;
    background: #181818;

    border: 1px solid #333;
    border-radius: 8px;

    outline: none;

    resize: vertical;

    transition: 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #c1121f;
    box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.10);
}

.form-group textarea {
    min-height: 120px;
}

/* =========================================
   NOTIFICATIONS
========================================= */

.notification-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.notification-option {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 18px;

    background: #181818;

    border: 1px solid #333;
    border-radius: 9px;

    cursor: pointer;

    transition: 0.25s ease;
}

.notification-option:hover {
    border-color: #555;
}

.notification-option input {
    accent-color: #c1121f;
}

.notification-option span {
    font-weight: 800;
}

/* =========================================
   SUMMARY
========================================= */

.booking-summary {
    margin-top: 35px;

    padding: 38px;

    background:
        linear-gradient(
            135deg,
            #111,
            #101a2c
        );

    border: 1px solid #343434;
    border-radius: 14px;
}

.summary-header {
    margin-bottom: 30px;
}

.summary-header h2 {
    font-size: 2rem;
    text-transform: uppercase;
}

.summary-content {
    border-top: 1px solid #303030;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 17px 0;

    border-bottom: 1px solid #252525;
}

.summary-row span {
    color: #888;
}

.summary-row strong {
    text-align: right;
}

.summary-row.total {
    margin-top: 5px;

    border-bottom: 0;
}

.summary-row.total span {
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
}

.summary-row.total strong {
    color: #e63946;
    font-size: 1.7rem;
}

.booking-submit {
    width: 100%;

    margin-top: 25px;

    padding: 17px;

    border: 0;

    font-size: 1rem;
    cursor: pointer;
}

.booking-submit:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 800px) {

    .booking-page {
        padding: 45px 0 70px;
    }

    .booking-header {
        margin-bottom: 40px;
    }

    .booking-step {
        padding: 25px 20px;
    }

    .booking-services {
        grid-template-columns: 1fr;
    }

    .barbers-selection {
        grid-template-columns: repeat(2, 1fr);
    }

    .times-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .customer-form {
        grid-template-columns: 1fr;
    }

    .form-group:last-child {
        grid-column: auto;
    }

    .notification-options {
        grid-template-columns: 1fr;
    }

    .booking-summary {
        padding: 25px 20px;
    }
}

@media (max-width: 500px) {

    .booking-header h1 {
        font-size: 2.5rem;
    }

    .step-heading {
        align-items: flex-start;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .step-heading h2 {
        font-size: 1.2rem;
    }

    .barbers-selection {
        grid-template-columns: 1fr 1fr;
    }

    .times-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .summary-row strong {
        text-align: left;
    }
}

/* =========================================
   SERVICE → BARBER TABS
========================================= */

.service-barber-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
}

.service-barber-tab {
    appearance: none;
    border: none;
    background: transparent;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
}

.service-barber-tab:hover {
    color: #111;
}

.service-barber-tab.active {
    color: #fff;
    border-bottom-color: #fff;
    font-weight: 700;
}

.service-barber-content {
    width: 100%;
}

.service-barber-panel {
    width: 100%;
}

.service-barber-panel h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.barbers-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.service-barber-panel .barber-selection-card {
    width: 100%;
}


/* =========================================
   SERVICE COUNTER
========================================= */

.service-counter {
    margin: 0 0 20px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .barbers-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-barber-tabs {
        gap: 5px;
    }

    .service-barber-tab {
        padding: 12px 14px;
        font-size: 13px;
    }

}

/* =========================================
   CUSTOM CALENDAR
   ========================================= */

.custom-calendar {
    width: 100%;
    max-width: 460px;
    margin-top: 12px;

    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    padding: 20px;

    box-sizing: border-box;
}


/* =========================================
   CALENDAR HEADER
   ========================================= */

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}

.calendar-month {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    text-transform: capitalize;
}

.calendar-nav {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #fff;
    color: #111;

    font-family: inherit;
    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.calendar-nav:hover {
    background: #111;
    color: #fff;
    border-color: #111;
    transform: translateY(-1px);
}

.calendar-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.calendar-nav:disabled:hover {
    background: #fff;
    color: #111;
    border-color: #ddd;
}


/* =========================================
   WEEKDAYS
   ========================================= */

.calendar-weekdays {
    display: grid;
    grid-template-columns:
        repeat(7, 1fr);

    margin-bottom: 8px;
}

.calendar-weekdays span {
    text-align: center;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.08em;

    color: #888;
}


/* =========================================
   DAYS
   ========================================= */

.calendar-days {
    display: grid;
    grid-template-columns:
        repeat(7, 1fr);

    gap: 6px;
}

.calendar-day {
    aspect-ratio: 1;

    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid transparent;
    border-radius: 8px;

    background: transparent;
    color: #111;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


/* Hover */

.calendar-day:not(:disabled):not(.empty):hover {
    background: #f1f1f1;
    border-color: #ddd;

    transform: translateY(-1px);
}


/* Empty cells */

.calendar-day.empty {
    pointer-events: none;
    cursor: default;
}


/* Past days */

.calendar-day.past {
    color: #ccc;
    cursor: not-allowed;
}


/* Today */

.calendar-day.today {
    border-color: #111;
    font-weight: 700;
}


/* Selected */

.calendar-day.selected {
    background: #111;
    border-color: #111;
    color: #fff;

    font-weight: 700;
}


/* Selected + hover */

.calendar-day.selected:hover {
    background: #222;
    border-color: #222;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 480px) {

    .custom-calendar {
        padding: 16px;
        border-radius: 12px;
    }

    .calendar-header {
        margin-bottom: 18px;
    }

    .calendar-month {
        font-size: 15px;
    }

    .calendar-nav {
        width: 36px;
        height: 36px;
    }

    .calendar-days {
        gap: 4px;
    }

    .calendar-day {
        font-size: 12px;
        border-radius: 7px;
    }

    .calendar-weekdays span {
        font-size: 9px;
    }
}