* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    font-family:
	Inter,
	Arial,
	sans-serif;
    background: transparent;
    color: #222;
	
}

/* ---------------------------------
	Container
--------------------------------- */

#booking-app {
    max-width: 900px;
    margin: 0 auto;
}

/* ---------------------------------
	Header
--------------------------------- */

.booking-header {
    margin-bottom: 20px;
}

.booking-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.booking-subtitle {
    color: #666;
    font-size: 15px;
}

/* ---------------------------------
	Controls
--------------------------------- */

.booking-controls {

    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.booking-controls select,
.booking-controls input[type="date"] {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    background: white;
    min-width: 220px;
}

/* ---------------------------------
	Slots grid
--------------------------------- */

#slotsContainer {
    display: grid;
    grid-template-columns:
	repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

/* ---------------------------------
	Slot buttons
--------------------------------- */

.slot-button {
    border: none;
    border-radius: 10px;
    padding: 14px 10px;
    font-size: 14px;
    font-weight: 600;
    transition:
	transform 0.15s ease,
	opacity 0.15s ease,
	background 0.15s ease;
}

/* ---------------------------------
	Available
--------------------------------- */

.slot-button.available {
    background: var(--slot-available-bg, #2e7d32);
    color: white;
    cursor: pointer;
}

.slot-button.available:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

/* ---------------------------------
	Booked
--------------------------------- */

.slot-button.booked {
    background: #b8b8b8;
    color: white;
    cursor: not-allowed;
    opacity: 0.75;
}

/* ---------------------------------
	Blocked
--------------------------------- */

.slot-button.blocked {
    background: #555;
    color: white;
    cursor: not-allowed;
    opacity: 0.75;
}

/* ---------------------------------
	Past
--------------------------------- */

.slot-button.past {
    background: #e0e0e0;
    color: #888;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ---------------------------------
	Empty state
--------------------------------- */

.no-slots {

    grid-column: 1 / -1;
    padding: 20px;
    background: #ccc;
    border: 1px solid #888;
    border-radius: 10px;
    color: #c62828;
    font-weight: bold;
	font-size: 16px;
    text-align: center;
}

/* ---------------------------------
	Mobile
--------------------------------- */

@media (max-width: 640px) {
	
    body {
        padding: 12px;
	}
	
    .booking-controls {
        flex-direction: column;
	}
	
    .booking-controls select,
    .booking-controls input[type="date"] {
        width: 100%;
	}
	
    #slotsContainer {
        grid-template-columns:
		repeat(2, 1fr);
	}
}


.booking-container h1,
.booking-container p {
    text-align: center;
}

p{	
	margin-top:0px;
	margin-left:8px;
}

h1{
	margin-bottom:4px;
	color: var(--slot-available-bg, #444);
	opacity: .5;
}

/* ---------------------------------
	Modal
--------------------------------- */

.modal-overlay {
	position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
	
    display: flex;
    align-items: center;
    justify-content: center;
	
    z-index: 1000;
}

.modal-overlay.hidden {
    display: none;
}

.hidden{
	display:none;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 420px;
	
    border-radius: 14px;
	
    padding: 10px;
	
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
	
    border: none;
    background: transparent;
	
    font-size: 26px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
	
    border: 1px solid #ccc;
    border-radius: 10px;
	
    font-size: 14px;
}

.submit-booking-btn {
    width: 100%;
	
    border: none;
    border-radius: 10px;
	
    background: var(--slot-available-bg, #2e7d32);
    color: white;
	
    padding: 14px;
	
    font-size: 15px;
    font-weight: 700;
	
    cursor: pointer;
}

h2 {
	
	margin:8px;
	
	
}

/* ---------------------------------
	Booking Actions
--------------------------------- */

.booking-actions {
	
    display: flex;
    gap: 12px;
	
    margin-top: 20px;
}

.booking-actions button {
	
    flex: 1;
}

/* ---------------------------------
	Back Button
--------------------------------- */


/* ---------------------------------
	Mobile
--------------------------------- */

@media (max-width: 640px) {
	
    .booking-actions {
		
        flex-direction: column;
	}
	
	h1{
		margin:4px;
		color: var(--slot-available-bg, #444);
		opacity: .5;
	}
}


/* ---------------------------------
	Confirm Button
--------------------------------- */

.submit-booking-btn {
	
    width: 100%;
	
    border: none;
    border-radius: 10px;
	
    background: var(--slot-available-bg, #2e7d32);
    color: white;
	
    padding: 14px;
	
    font-size: 15px;
    font-weight: 700;
	
    cursor: pointer;
	
    transition:
	background 0.15s ease,
	transform 0.15s ease,
	opacity 0.15s ease;
}

.submit-booking-btn:hover {
	
    background: #256628;
	
    transform: translateY(-1px);
}

/* ---------------------------------
	Back Button
--------------------------------- */

.back-button {
	
    border: none;
    border-radius: 10px;
	
    background: #546e7a;
    color: white;
	
    padding: 14px;
	
    font-size: 15px;
    font-weight: 700;
	
    cursor: pointer;
	
    transition:
	background 0.15s ease,
	transform 0.15s ease,
	opacity 0.15s ease;
}

.back-button:hover {
	
    background: #455a64;
	
    transform: translateY(-1px);
}

/* ---------------------------------
   Powered By
--------------------------------- */

.powered-by {

    text-align: center;
    margin-top: 28px;
    font-size: 13px;
    color: #888;
}

.powered-by span {

    color: #2e7d32;
    font-weight: 700;
}

/* ---------------------------------
   Refresh Button
--------------------------------- */

.refresh-button {

    border: 1px solid #d0d5dd;
    border-radius: 10px;

    background: #f8f9fb;
    color: #344054;

    padding: 12px 18px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.refresh-button:hover {

    background: #eef2f6;

    border-color: #b8c0cc;

    transform: translateY(-1px);
}

#patientType {

    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    color: #222;
    box-sizing: border-box;
    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

#patientType:focus {

    border-color:
        var(--slot-available-bg, #2e7d32);
    box-shadow:
        0 0 0 3px rgba(46,125,50,0.12);
}

