/* --- Global Styles & Variables --- */
:root {
    --primary-bg: rgb(0,0, 0); /* Slightly lighter than pure black */
    --secondary-bg: rgb(33, 33, 33);
    --tertiary-bg: #3f3f3f;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-blue: rgb(10, 3, 255); /* Bright blue */
    --accent-green: rgb(202, 255, 48); /* Lime green */
    --accent-green-dark: #5cb85c; /* Darker green for selected border */
    --border-color: #444;
    --error-color: #ff6b6b;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--primary-bg); /* Dark background for the whole page */
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    line-height: 1.6;
}

/* --- Simulated Website Header --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--accent-blue);
    color: white;
}
.site-header .logo {
    font-weight: bold;
    font-size: 1.5rem;
}
.site-header nav a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.site-header nav a:hover,
.site-header nav a.active {
    opacity: 1;
    text-decoration: underline;
}
.break-line2{
    width:100%;
    height:100%;
    background-color: var(--accent-green);
}
.break-line-cont{
    width:100%;
    height:1px;
    display:flex;
    justify-content: center;
}
.site-header .social-icons svg { /* Basic placeholder styling */
    fill: white;
    width: 24px;
    height: 24px;
    opacity: 0.8;
}
.site-header .social-icons svg:hover {
    opacity: 1;
}


/* --- Booking Widget Container --- */
#bk-booking-app-section{
    margin-bottom: 100px;
}

.booking-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

#booking-widget {
    background-color: var(--secondary-bg);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-top: 100px;
}
#schedule-screen {
    /* border-radius: 30px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: auto;*/
}
#schedule-header{
    padding: 1rem 2rem;
    background-color: var(--accent-blue);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}
#schedule-header h2{
    font-size: 3rem;
}

/* --- Screen Management --- */
.booking-screen {
    display: none; /* Hide screens by default */
}
.booking-screen.active {
    display: block; /* Show the active screen */
}
#details-screen{
    padding: 20px;
}

.screen-content {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: auto;
    /* gap: 2.5rem;  Space between columns */
}
#schedule-body {
    display: flex;
    gap: 2.5rem; /* Space between columns */
    padding: 2rem 2rem 2rem 2rem;
    flex-wrap: wrap;
}
.screen-content2 {
    display: flex;
    gap: 2.5rem; /* Space between columns */
}

/* --- Left/Right Column Base --- */
.schedule-left{
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 2; /* Takes more space */
    min-width: 600px;
}
.details-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 2; /* Takes more space */
}
#calendar-ts-cont{
    display:flex;
    gap: 20px;
    flex-wrap: wrap;
}
.schedule-right, .details-right {
    flex: 1;
    background-color: var(--secondary-bg);
    border-radius: 15px;
    align-self: flex-start; /* Align panel to the top */
    max-width: 300px;
    min-width: 300px;
}
.details-right{
    margin-top:40px;
    position: sticky; /* Make panel sticky */
    top: 80px; /* Add some space from top */
}
#schedule-right-title{
    margin: 0;
    font-size: 1rem;
    border: none;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}
h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}
.subtitle {
    color: #fff;
    margin-bottom: 1.5rem;
}

.divider {
    border: none;
    height: 1px;
    background-color: var(--accent-green);
    margin: 1rem 0 1.5rem 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px; /* Rounded buttons */
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    text-align: center;
    width: 100%; /* Make buttons full width within their container */
    margin-top: 1rem;
}
.btn-primary {
    background-color: var(--accent-blue);
    color: white;
}
.btn-primary:hover:not(:disabled) {
    background-color: #003ecc; /* Darker blue on hover */
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Timezone Selector --- */
.timezone-selector {
    
}
.timezone-selector label {
    margin-right: 0.5rem;
    color: var(--text-muted);
}
#timezone {
    background-color: transparent;
    color: var(--text-color);
    border: none;
    max-width: max-content;
    padding: 0;
}
#timezone:focus {
    box-shadow:none;
}

#timezone option{
    background-color: var(--secondary-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 4px;
    max-width: max-content;

}

/* --- Calendar --- */
#calendar-container {
    margin-top: 1.5rem;
    flex: 1;
    min-width: 400px;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 80px;
}
.calendar-header h3 {
    margin: 0;
    border: none;
    padding: 0;
    font-size: 1.2rem;
}
.calendar-header button {
    background: none;
    border: none;
    color: var(--accent-green);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
}
.calendar-header button:hover {
    color: white;
}
.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
.calendar-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0;
    text-align: center;
    cursor: default;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: background-color 0.2s, border-color 0.2s;
    height: 40px; /* Fixed height for circle */
    width: 40px; /* Fixed width for circle */
    box-sizing: border-box;
    margin: auto; /* Center the circles in the grid cells */
}
.calendar-day.other-month {
    color: var(--text-muted);
    opacity: 0.5;
}
.calendar-day.available {
    cursor: pointer;
    color: var(--text-color); /* Ensure available days are clearly visible */
}
.calendar-day.available:hover {
     border-color: var(--tertiary-bg);
}
.calendar-day .availability-dot {
    position: absolute;
    bottom: 5px; /* Position dot below the number */
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--accent-green);
    border-radius: 50%;
}
.calendar-day.selected {
    background-color: var(--accent-green);
    color: var(--primary-bg);
    font-weight: bold;
    border-color: var(--accent-green);
}
.calendar-day.today {
    /* Optional: Style today's date differently if needed */
     border-color: var(--accent-blue); /* Example */
}
#tz-cont{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#tz-cont p{
    margin: 0;
}

/* --- Time Slots --- */
#time-slots-container {
    flex: 1;
    min-width: 190px;
}
.time-slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.time-slot-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}
.time-slot-btn:hover {
    border-color: var(--text-muted);
}
.time-slot-btn.selected {
    background-color: transparent;
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    font-weight: bold;
}
.info-message {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* --- Service/Booking Details Panel --- */
.service-details-panel h3, .booking-details-panel h3 {
    margin-top: 0;
    border: none;
}
.service-details-content p, .summary-content p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}
.icon-online {
    color: var(--accent-green);
    margin-right: 0.3rem;
    font-size: 0.8em; /* Make square smaller */
    display: inline-block;
    vertical-align: middle;
}
.service-name {
    font-weight: bold;
    font-size: 1.1rem !important;
}
#selected-datetime-display, #summary-selected-datetime {
    font-weight: bold;
}
.panel-header {

}
.collapse-arrow {
    font-size: 1.2rem;
    cursor: pointer; /* Add if implementing collapse */
}

/* --- Details Screen Form --- */
.back-button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.2rem;
}
.back-button:hover {
    color: var(--text-color);
}

.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 1rem;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}
textarea {
    resize: vertical;
    min-height: 80px;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(0, 82, 255, 0.3);
}
.phone-input {
    display: flex;
}
.phone-input select {
    width: auto; /* Adjust width for country code */
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}
.phone-input input[type="tel"] {
    flex-grow: 1;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* --- Booking Summary & Status --- */
.sms-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}
#booking-status {
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
}
#booking-status.success {
    color: var(--accent-green);
}
#booking-status.error {
    color: var(--error-color);
}


/* --- Responsiveness --- */
@media (max-width: 768px) {
    .schedule-left{
        display: flex;
        flex-direction: column;
        gap: 5px;
        flex: 2; /* Takes more space */
        min-width: 100%;
    }
    .screen-content2 {
        flex-direction: column;
    }
    .schedule-right, .details-right {
        position: static; /* Remove sticky positioning */
        margin-top: 2rem;
        width: auto; /* Allow panel to take full width */
    }
    .calendar-day {
        height: 45px;
        width: 45px;
        font-size: 1rem;
    }
     .time-slots-grid {
        gap: 0.5rem;
    }
    .time-slot-btn {
        padding: 0.5rem 1rem;
    }
     .site-header {
        flex-direction: column;
        text-align: center;
    }
    .site-header nav {
        margin-top: 1rem;
    }
     .site-header nav a {
        margin: 0 0.5rem;
    }
}

@media (max-width: 768px) {

}