:root {
    --sp-green-dark: #007a5e;
    --sp-green-range: #007a5e;
    --sp-text-main: #222222;
    --sp-text-muted: #717171;
    --sp-border-light: #ebebeb;
    --sp-bg-light: #f7f7f7;
    --sp-booked-red: #e53e3e;
}

.sp-booking-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1100px;
    margin: 40px auto;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--sp-text-main);
}


@media (min-width:1080px) {
    .sp-booking-container {
        flex-direction: row;
    }

}

.sp-panel-left {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--sp-border-light);
    border-radius: 16px;
    padding: 32px;
}

/* Header & Nav */
.sp-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sp-cal-header h2 {
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.sp-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--sp-border-light);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s;
}

.sp-nav-btn:hover {
    background: var(--sp-bg-light);
}

/* Grid */
.sp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 8px;
}

.sp-day-head {
    font-size: 12px;
    color: var(--sp-text-muted);
    font-weight: 600;
    padding-bottom: 20px;
    text-align: center;
}

.sp-day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    z-index: 1;
    transition: 0.2s;
}

/* Selection Range Styles */
.sp-day.selected {
    background-color: var(--sp-green-dark) !important;
    color: #ffffff !important;
    border-radius: 50%;
    font-weight: bold;
}

.sp-day.in-range {
    background-color: var(--sp-green-range);
    color: #ffffff;
    border-radius: 50%;
    /* Replicating the circular range dots from Image 2 & 4 */
}

/* Booked & Empty */
.sp-day.booked {
    background-color: rgba(255, 0, 0, 0.6);
    color: #fff;
    cursor: not-allowed;
    text-decoration: none;
}

.sp-day:not(.empty):not(.booked):not(.selected):hover {
    background-color: var(--sp-green-dark);
    border-radius: 50%;
}

/* Info Footer */
.sp-info-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--sp-border-light);
}

.sp-check span {
    display: block;
    font-size: 14px;
    color: var(--sp-text-muted);
    margin-bottom: 4px;
}

.sp-check strong {
    font-size: 18px;
    font-weight: bold;
}

/* Legend */
.sp-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 30px;
    font-size: 12px;
    color: var(--sp-text-muted);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.dot.sel {
    background: var(--sp-green-range);
}

.dot.avl {
    background: #e0e0e0;
}

.dot.bkd {
    background: var(--sp-booked-red);
}

/* Right Panel - Form */
.sp-panel-right {
    flex: 0.85;
    background: #ffffff;
    border: 1px solid var(--sp-border-light);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.sp-panel-right h3 {
    font-size: 22px;
    margin: 0 0 24px 0;
}

.sp-group {
    margin-bottom: 20px;
}

.sp-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sp-group input,
.sp-group select,
.sp-group textarea {
    width: 93%;
    padding: 14px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #fcfcfc;
    font-size: 14px;
}

.sp-btn-submit {
    width: 100%;
    background: #007a5e;
    color: white;
    border: none;
    margin-top: 4rem;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sp-btn-submit:hover {
    background: #006a52;
}

.sp-disclaimer {
    font-size: 11px;
    color: var(--sp-text-muted);
    text-align: center;
    margin-top: 16px;
}