/* =========================================================
   HELCU — PUBLIC DOCTOR PROFILE
   PREMIUM AVAILABILITY CALENDAR
   MOBILE FIRST
   0px → 767.98px
   ========================================================= */


/* =========================================================
   CALENDAR WRAPPER
========================================================= */

#hc-public-doctor-calendar-wrapper {

    width: 100%;
    margin-top: 12px;

    position: relative;
    z-index: 50;

}


/* =========================================================
   CALENDAR PANEL
========================================================= */

#hc-public-doctor-calendar {

    width: 100%;
    max-width: 360px;

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid #dce9eb;
    border-radius: 18px;

    padding: 14px;

    box-shadow:
        0 10px 30px rgba(28, 72, 78, 0.08),
        0 2px 8px rgba(28, 72, 78, 0.04);

    box-sizing: border-box;

    animation:
        hcCalendarFadeIn
        0.18s
        ease-out;

}


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

.hc-public-doctor-calendar-header {

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

    margin-bottom: 12px;

}


/* =========================================================
   MONTH TITLE
========================================================= */

#hc-public-doctor-calendar-month {

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

    color: #173f45;

    letter-spacing: -0.15px;

}


/* =========================================================
   MONTH NAVIGATION BUTTONS
========================================================= */

#hc-public-doctor-calendar-prev,
#hc-public-doctor-calendar-next {

    width: 34px;
    height: 34px;

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

    border: 1px solid #dcebed;

    border-radius: 10px;

    background: #ffffff;

    color: #52757a;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;

}


#hc-public-doctor-calendar-prev:hover,
#hc-public-doctor-calendar-next:hover {

    background: #effafa;

    border-color: #acd8da;

    color: #087c83;

}


#hc-public-doctor-calendar-prev:active,
#hc-public-doctor-calendar-next:active {

    transform: scale(0.94);

}


#hc-public-doctor-calendar-prev:disabled,
#hc-public-doctor-calendar-next:disabled {

    opacity: 0.35;

    cursor: not-allowed;

    transform: none;

}


/* =========================================================
   WEEKDAY ROW
========================================================= */

.hc-public-doctor-calendar-weekdays {

    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 4px;

    margin-bottom: 5px;

}


.hc-public-doctor-calendar-weekdays > span {

    height: 28px;

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

    font-size: 11px;

    font-weight: 600;

    color: #718b8f;

    user-select: none;

}


/* =========================================================
   CALENDAR DAYS GRID
========================================================= */

#hc-public-doctor-calendar-days {

    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 5px;

}


/* =========================================================
   EMPTY CELLS
========================================================= */

.hc-public-doctor-calendar-empty {

    width: 100%;

    aspect-ratio: 1 / 1;

}


/* =========================================================
   DAY BUTTON
========================================================= */

.hc-public-doctor-calendar-day {

    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1;

    min-width: 0;

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

    border: 0;

    border-radius: 10px;

    background: transparent;

    font-size: 13px;

    font-weight: 500;

    color: #5e777b;

    cursor: default;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;

}


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

.hc-public-doctor-calendar-day.is-past {

    background: #f6f8f9;

    color: #c5d0d2;

    cursor: not-allowed;

}


/* =========================================================
   NOT AVAILABLE
========================================================= */

.hc-public-doctor-calendar-day.is-no-schedule {

    background: #f5f8f9;

    color: #c4ced0;

    cursor: not-allowed;

}


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

.hc-public-doctor-calendar-day.is-available {

    background: #ffffff;

    color: #087b82;

    font-weight: 650;

    cursor: pointer;

}


/* =========================================================
   AVAILABLE HOVER
========================================================= */

.hc-public-doctor-calendar-day.is-available:hover {

    background: #eaf8f8;

    color: #056b72;

    box-shadow:
        inset 0 0 0 1px #a8d8da;

}


/* =========================================================
   AVAILABLE ACTIVE
========================================================= */

.hc-public-doctor-calendar-day.is-available:active {

    transform: scale(0.92);

}


/* =========================================================
   TODAY
========================================================= */

.hc-public-doctor-calendar-day.is-today {

    font-weight: 750;

}


/* =========================================================
   TODAY INDICATOR
========================================================= */

.hc-public-doctor-calendar-day.is-today::after {

    content: "";

    position: absolute;

    bottom: 4px;
    left: 50%;

    width: 4px;
    height: 4px;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background: #0b8b91;

}


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

.hc-public-doctor-calendar-day.is-selected {

    background: #087c83;

    color: #ffffff;

    box-shadow:
        0 5px 12px rgba(
            8,
            124,
            131,
            0.22
        );

}


/* =========================================================
   REMOVE TODAY DOT FROM SELECTED DATE
========================================================= */

.hc-public-doctor-calendar-day.is-selected::after {

    background: #ffffff;

}


/* =========================================================
   SELECTED + HOVER
========================================================= */

.hc-public-doctor-calendar-day.is-selected:hover {

    background: #076f76;

    color: #ffffff;

}


/* =========================================================
   CALENDAR LEGEND
========================================================= */

.hc-public-doctor-calendar-legend {

    display: flex;

    align-items: center;

    justify-content: flex-start;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 13px;

    padding-top: 11px;

    border-top: 1px solid #edf2f3;

}


/* =========================================================
   LEGEND ITEM
========================================================= */

.hc-public-doctor-calendar-legend-item {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    font-size: 11px;

    font-weight: 500;

    color: #6f8589;

    white-space: nowrap;

}


/* =========================================================
   LEGEND DOT — BASE
========================================================= */

.hc-public-doctor-calendar-legend-dot {

    width: 8px;

    height: 8px;

    min-width: 8px;

    min-height: 8px;

    flex: 0 0 8px;

    display: inline-block;

    border-radius: 50%;

    box-sizing: border-box;

}


/* =========================================================
   AVAILABLE
   MATCHES HTML:
   .hc-available
========================================================= */

.hc-public-doctor-calendar-legend-dot.hc-available {

    background: #63bfc1;

}


/* =========================================================
   CANCELLED
   MATCHES HTML:
   .hc-unavailable
========================================================= */

.hc-public-doctor-calendar-legend-dot.hc-unavailable {

    background: #e3a1a1;

}


/* =========================================================
   NO AVAILABILITY
   MATCHES HTML:
   .hc-no-schedule
========================================================= */

.hc-public-doctor-calendar-legend-dot.hc-no-schedule {

    background: #cbd4d6;

}


/* =========================================================
   SELECTED DATE PANEL
========================================================= */

#hc-public-doctor-selected-date-panel {

    width: 100%;

    margin-top: 12px;

    padding: 13px 14px;

    box-sizing: border-box;

    background:
        linear-gradient(
            135deg,
            #f2fbfb,
            #eaf7f7
        );

    border: 1px solid #d5ecee;

    border-radius: 14px;

    opacity: 0;

    transform:
        translateY(-4px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;

}


/* =========================================================
   SELECTED DATE PANEL — VISIBLE
========================================================= */

#hc-public-doctor-selected-date-panel.is-visible {

    opacity: 1;

    transform:
        translateY(0);

}


/* =========================================================
   SELECTED DATE LABEL
========================================================= */

#hc-public-doctor-selected-date {

    font-size: 12px;

    font-weight: 650;

    color: #087b82;

}


/* =========================================================
   SELECTED DATE VALUE
========================================================= */

#hc-public-doctor-selected-date-value {

    margin-top: 3px;

    font-size: 13px;

    font-weight: 600;

    color: #21484d;

}


/* =========================================================
   SCHEDULES CONTAINER
========================================================= */

#hc-public-doctor-schedules {

    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-top: 12px;

}


/* =========================================================
   SCHEDULE CARD
========================================================= */

.hc-public-doctor-schedule-card {

    display: flex;

    flex-direction: column;

    gap: 12px;

    padding: 14px;

    background: #ffffff;

    border: 1px solid #e0ecee;

    border-radius: 15px;

    box-shadow:
        0 4px 14px rgba(
            27,
            70,
            76,
            0.045
        );

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;

}


.hc-public-doctor-schedule-card:hover {

    border-color: #c7e3e5;

    box-shadow:
        0 8px 20px rgba(
            27,
            70,
            76,
            0.07
        );

}


/* =========================================================
   SCHEDULE TOP LINE
========================================================= */

.hc-public-doctor-schedule-topline {

    display: flex;

    align-items: center;

}


/* =========================================================
   STATUS
========================================================= */

.hc-public-doctor-schedule-status {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    font-size: 10.5px;

    font-weight: 650;

    color: #168187;

}


/* =========================================================
   STATUS DOT
========================================================= */

.hc-public-doctor-schedule-status-dot {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #19a1a0;

    box-shadow:
        0 0 0 3px #e5f7f7;

}


/* =========================================================
   SCHEDULE HEADER
========================================================= */

.hc-public-doctor-schedule-header {

    display: flex;

    flex-direction: column;

    gap: 6px;

}


/* =========================================================
   CHAMBER NAME
========================================================= */

.hc-public-doctor-schedule-chamber {

    font-size: 14px;

    line-height: 1.4;

    font-weight: 700;

    color: #1c4449;

}


/* =========================================================
   TIME
========================================================= */

.hc-public-doctor-schedule-time {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    font-size: 12px;

    color: #607c80;

}


.hc-public-doctor-schedule-time i {

    font-size: 13px;

    color: #0b858b;

}


/* =========================================================
   ADDRESS
========================================================= */

.hc-public-doctor-schedule-address {

    display: flex;

    align-items: flex-start;

    gap: 6px;

    font-size: 11.5px;

    line-height: 1.45;

    color: #74898d;

}


.hc-public-doctor-schedule-address i {

    margin-top: 2px;

    color: #7a9da1;

    flex: 0 0 auto;

}


/* =========================================================
   BOOKING ACTION
========================================================= */

.hc-public-doctor-schedule-action {

    width: 100%;

}


/* =========================================================
   BOOK BUTTON
========================================================= */

.hc-public-doctor-book-button {

    width: 100%;

    min-height: 42px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 9px 14px;

    border: 0;

    border-radius: 11px;

    background: #087c83;

    color: #ffffff;

    font-size: 12px;

    font-weight: 650;

    cursor: pointer;

    box-shadow:
        0 5px 14px rgba(
            8,
            124,
            131,
            0.16
        );

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;

}


.hc-public-doctor-book-button:hover {

    background: #076f76;

    box-shadow:
        0 7px 17px rgba(
            8,
            124,
            131,
            0.22
        );

    transform:
        translateY(-1px);

}


.hc-public-doctor-book-button:active {

    transform:
        translateY(0)
        scale(0.98);

}


/* =========================================================
   DISABLED BOOK BUTTON
========================================================= */

.hc-public-doctor-book-button.is-disabled,
.hc-public-doctor-book-button:disabled {

    background: #edf2f3;

    color: #9aabad;

    box-shadow: none;

    cursor: not-allowed;

    transform: none;

}


/* =========================================================
   NO SCHEDULE MESSAGE
========================================================= */

#hc-public-doctor-no-schedules {

    padding: 14px;

    text-align: center;

    font-size: 12px;

    color: #809397;

    background: #f7f9fa;

    border: 1px solid #e8edef;

    border-radius: 12px;

}


/* =========================================================
   CALENDAR TOGGLE
========================================================= */

#hc-public-doctor-calendar-toggle {

    min-height: 42px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 9px 15px;

    border: 1px solid #cde5e7;

    border-radius: 11px;

    background: #f5fbfb;

    color: #08777e;

    font-size: 12px;

    font-weight: 650;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;

}


#hc-public-doctor-calendar-toggle:hover {

    background: #eaf7f7;

    border-color: #abd7da;

}


#hc-public-doctor-calendar-toggle.is-active {

    background: #e8f6f6;

    border-color: #9fd0d3;

    box-shadow:
        0 4px 12px rgba(
            8,
            124,
            131,
            0.08
        );

}


/* =========================================================
   CALENDAR OPEN ANIMATION
========================================================= */

@keyframes hcCalendarFadeIn {

    from {

        opacity: 0;

        transform:
            translateY(-5px)
            scale(0.985);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* =========================================================
   TABLET
   768px → 1199.98px
========================================================= */

@media (min-width: 768px) {


    /* -----------------------------------------------------
       CALENDAR WRAPPER
    ----------------------------------------------------- */

    #hc-public-doctor-calendar-wrapper {

        margin-top: 14px;

    }


    /* -----------------------------------------------------
       CALENDAR
    ----------------------------------------------------- */

    #hc-public-doctor-calendar {

        max-width: 390px;

        padding: 16px;

        border-radius: 19px;

    }


    /* -----------------------------------------------------
       MONTH TITLE
    ----------------------------------------------------- */

    #hc-public-doctor-calendar-month {

        font-size: 17px;

    }


    /* -----------------------------------------------------
       DAY GRID
    ----------------------------------------------------- */

    #hc-public-doctor-calendar-days {

        gap: 6px;

    }


    .hc-public-doctor-calendar-weekdays {

        gap: 6px;

    }


    .hc-public-doctor-calendar-day {

        font-size: 13.5px;

        border-radius: 11px;

    }


    /* -----------------------------------------------------
       LEGEND
    ----------------------------------------------------- */

    .hc-public-doctor-calendar-legend {

        gap: 16px;

        margin-top: 14px;

        padding-top: 12px;

    }


    .hc-public-doctor-calendar-legend-item {

        font-size: 11px;

    }


    .hc-public-doctor-calendar-legend-dot {

        width: 8px;

        height: 8px;

        min-width: 8px;

        min-height: 8px;

        flex-basis: 8px;

    }


    /* -----------------------------------------------------
       SCHEDULE CARD
    ----------------------------------------------------- */

    .hc-public-doctor-schedule-card {

        padding: 15px;

    }


    .hc-public-doctor-schedule-chamber {

        font-size: 14.5px;

    }


    /* -----------------------------------------------------
       BOOK BUTTON
    ----------------------------------------------------- */

    .hc-public-doctor-book-button {

        min-height: 43px;

    }

}


/* =========================================================
   DESKTOP
   1200px+
========================================================= */

@media (min-width: 1200px) {


    /* -----------------------------------------------------
       CALENDAR
    ----------------------------------------------------- */

    #hc-public-doctor-calendar {

        max-width: 410px;

        padding: 17px;

        border-radius: 20px;

        box-shadow:
            0 16px 40px rgba(
                28,
                72,
                78,
                0.09
            ),
            0 3px 10px rgba(
                28,
                72,
                78,
                0.04
            );

    }


    /* -----------------------------------------------------
       MONTH
    ----------------------------------------------------- */

    #hc-public-doctor-calendar-month {

        font-size: 17px;

    }


    /* -----------------------------------------------------
       NAVIGATION
    ----------------------------------------------------- */

    #hc-public-doctor-calendar-prev,
    #hc-public-doctor-calendar-next {

        width: 36px;
        height: 36px;

        border-radius: 10px;

    }


    /* -----------------------------------------------------
       DAYS
    ----------------------------------------------------- */

    #hc-public-doctor-calendar-days {

        gap: 7px;

    }


    .hc-public-doctor-calendar-weekdays {

        gap: 7px;

    }


    .hc-public-doctor-calendar-day {

        font-size: 14px;

        border-radius: 11px;

    }


    /* -----------------------------------------------------
       LEGEND
    ----------------------------------------------------- */

    .hc-public-doctor-calendar-legend {

        gap: 18px;

        margin-top: 15px;

        padding-top: 13px;

    }


    .hc-public-doctor-calendar-legend-item {

        font-size: 11.5px;

    }


    .hc-public-doctor-calendar-legend-dot {

        width: 8px;

        height: 8px;

        min-width: 8px;

        min-height: 8px;

        flex-basis: 8px;

    }


    /* -----------------------------------------------------
       SCHEDULE CARD
    ----------------------------------------------------- */

    .hc-public-doctor-schedule-card {

        padding: 16px;

        border-radius: 16px;

    }


    .hc-public-doctor-schedule-chamber {

        font-size: 15px;

    }


    .hc-public-doctor-schedule-time {

        font-size: 12.5px;

    }


    .hc-public-doctor-schedule-address {

        font-size: 12px;

    }


    /* -----------------------------------------------------
       BOOK BUTTON
    ----------------------------------------------------- */

    .hc-public-doctor-book-button {

        min-height: 44px;

        font-size: 12.5px;

    }

}