/* ============================================
   NC Calendar · PLUSPULS Design — Compact
   ============================================ */


/* Two-column wrapper */

.nc-calendar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, .85);
    font-family: inherit;
}


/* Intro heading above both columns */

.nc-intro {
    width: 100%;
    text-align: center;
    padding: 0 1rem .5rem;
}

.nc-intro-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 .4rem;
    letter-spacing: .02em;
}

.nc-intro-text {
    font-size: .8rem;
    color: rgba(255, 255, 255, .5);
    margin: 0;
    line-height: 1.6;
    max-width: 620px;
    margin-inline: auto;
}


/* Left column */

.nc-col-left {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    padding: .8rem;
    width: min(100%, 400px);
    max-width: 100%;
    min-width: 0;
}


/* Right column */

.nc-col-right {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 1.2rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(100%, 400px);
    max-width: 100%;
    min-width: 0;
}


/* ---- Header ---- */

.nc-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .6rem;
    min-width: 0;
    gap: .5rem;
}

.nc-calendar-header button {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 5px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .75rem;
    transition: all .2s;
    color: rgba(255, 255, 255, .6);
    flex-shrink: 0;
}

.nc-calendar-header button:hover {
    background: rgba(255, 107, 44, .3);
    border-color: var(--orange-400, #FF6B2C);
    color: #fff;
}

.nc-current-month {
    font-weight: 600;
    font-size: .78rem;
    color: #fff;
    text-align: center;
    flex: 1;
}


/* ---- Days-of-week header ---- */

.nc-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: .2rem;
}

.nc-days-header span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    font-size: .52rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .25);
    text-transform: uppercase;
    letter-spacing: .04em;
}


/* ---- Calendar Grid ---- */

.nc-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    width: 100%;
}


/* ---- Day Cells ---- */

.nc-day {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 500;
    cursor: default;
    transition: background .15s, color .15s;
    user-select: none;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.nc-day.nc-empty {
    background: transparent;
}

.nc-day.nc-disabled {
    color: rgba(255, 255, 255, .15);
    cursor: not-allowed;
}

.nc-day.nc-available {
    background: rgba(255, 107, 44, .1);
    border-color: rgba(255, 107, 44, .15);
    color: var(--orange-400, #FF6B2C);
    cursor: pointer;
}

.nc-day.nc-available:hover {
    background: rgba(255, 107, 44, .28);
    border-color: rgba(255, 107, 44, .4);
    color: #fff;
}

.nc-day.nc-today {
    box-shadow: 0 0 0 2px var(--orange-500, #FF6B2C);
    font-weight: 700;
}

.nc-day.nc-selected {
    background: var(--orange-500, #FF6B2C) !important;
    border-color: var(--orange-500, #FF6B2C) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(255, 107, 44, .35);
}


/* ---- Hint (before date selection) ---- */

.nc-hint {
    text-align: center;
    padding: 1.5rem .5rem;
}

.nc-hint-icon {
    margin-bottom: .6rem;
    opacity: .6;
}

.nc-hint p {
    font-size: .82rem;
    color: rgba(255, 255, 255, .45);
    line-height: 1.5;
}

.nc-hint strong {
    color: rgba(255, 255, 255, .7);
}


/* ---- Time Slots ---- */

.nc-time-slots h4,
.nc-booking-form h4 {
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: .7rem;
}

.nc-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .4rem;
}

.nc-slot {
    padding: .45rem .3rem;
    border: 1px solid rgba(255, 107, 44, .2);
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
    font-size: .78rem;
    font-weight: 500;
    background: rgba(255, 107, 44, .07);
    color: var(--orange-400, #FF6B2C);
}

.nc-slot:hover {
    background: rgba(255, 107, 44, .22);
    border-color: rgba(255, 107, 44, .45);
    color: #fff;
}

.nc-slot.nc-selected {
    background: var(--orange-500, #FF6B2C);
    border-color: var(--orange-500, #FF6B2C);
    color: #fff;
    box-shadow: 0 3px 8px rgba(255, 107, 44, .3);
}

.nc-slot-blocked {
    opacity: .35;
    cursor: not-allowed;
    text-decoration: line-through;
    pointer-events: none;
}

.nc-slots-loading,
.nc-slots-empty {
    grid-column: 1 / -1;
    font-size: .75rem;
    color: rgba(255, 255, 255, .4);
    padding: .4rem 0;
}


/* ---- Booking Form ---- */

.nc-booking-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.nc-selected-datetime {
    background: rgba(255, 107, 44, .1);
    border: 1px solid rgba(255, 107, 44, .2);
    border-radius: 8px;
    padding: .55rem .9rem;
    margin-bottom: 1rem;
    text-align: center;
    font-size: .82rem;
    font-weight: 600;
    color: var(--orange-300, #FFAB7A);
}

.nc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
}

.nc-form-grid .nc-full {
    grid-column: 1 / -1;
}

.nc-form .form-group label {
    display: block;
    margin-bottom: .25rem;
    font-size: .75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .55);
}

.nc-form input,
.nc-form textarea {
    width: 100%;
    padding: .55rem .75rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 7px;
    font-size: .82rem;
    font-family: inherit;
    transition: border-color .2s, background .2s;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    box-sizing: border-box;
}

.nc-form input::placeholder,
.nc-form textarea::placeholder {
    color: rgba(255, 255, 255, .25);
}

.nc-form input:focus,
.nc-form textarea:focus {
    outline: none;
    border-color: var(--orange-400, #FF6B2C);
    background: rgba(255, 255, 255, .1);
}

.nc-form textarea {
    resize: none;
}


/* ---- Success ---- */

.nc-success {
    text-align: center;
    padding: 1.5rem .5rem;
}

.nc-success-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto .8rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(34, 197, 94, .3);
}

.nc-success h4 {
    color: #22c55e;
    font-size: 1rem;
    margin-bottom: .4rem;
}

.nc-success p {
    color: rgba(255, 255, 255, .6);
    font-size: .82rem;
    line-height: 1.55;
}


/* ---- Error ---- */

.nc-error {
    text-align: center;
    padding: 1.5rem .5rem;
}

.nc-error h4 {
    color: #ef4444;
    font-size: .95rem;
    margin-bottom: .5rem;
}

.nc-error-message {
    color: rgba(255, 255, 255, .6);
    font-size: .82rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}


/* ---- Responsive ---- */

@media (max-width: 720px) {
    .nc-calendar {
        gap: 1rem;
    }
    .nc-col-left,
    .nc-col-right {
        width: min(100%, 300px);
    }
    .nc-col-right {
        min-height: auto;
        padding: 1rem;
    }
    .nc-intro {
        padding-inline: 0;
    }
    .nc-intro-text {
        font-size: .78rem;
    }
    .nc-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .nc-form-grid {
        grid-template-columns: 1fr;
    }
    .nc-form-grid .nc-full {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .nc-col-left,
    .nc-col-right {
        width: min(100%, 300px);
        padding: .7rem;
    }
    .nc-calendar-header button {
        width: 18px;
        height: 18px;
        font-size: .68rem;
    }
    .nc-current-month {
        font-size: .68rem;
    }
    .nc-days-header span {
        height: 16px;
        font-size: .44rem;
    }
    .nc-day {
        font-size: .62rem;
        border-radius: 3px;
    }
    .nc-slot {
        padding: .4rem .25rem;
        font-size: .72rem;
    }
    .nc-hint {
        padding: 1.2rem .35rem;
    }
    .nc-hint-icon svg {
        width: 40px;
        height: 40px;
    }
    .nc-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
