/* Update theme colors and calendar styling as requested */
:root {
    --bg-dark: #101435;
    --container-bg: #101435;
    --text-color: #fff;
    --highlight-color: #764DF0;
    --highlight-hover: #5d3bc0;
    --border-color: #23284a;
    --button-bg: #181c2c;
    --hover-bg: #23284a;
    --selected-bg: #764DF0;
    --selected-text: #fff;
    --light-text: #bfc8e6;
    --form-bg: #181c2c;
    --card-bg: #181c2c;
    --success-color: #5d3bc0;
}

html,
body {
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
}

.section-hero {
    min-height: 500px;
}
/* Body and container */
body {
    background-color: var(--bg-dark);
    color: var(--text-color);
    padding-top: 90px; /* Header height to prevent content from hiding */
}

.page-container {
    display: flex;
    background-color: var(--container-bg);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 1398px;
    margin: 80px auto;
    overflow: hidden;
    position: relative;
}

.left-panel,
.info-panel {
    flex: 1.2;
    padding: 0px 49px;
    border-right: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(31, 57, 85, 0.4) 0%, rgba(13, 17, 23, 0) 100%), var(--container-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 260px;
}

.main-content {
    flex: 2.5;
    display: flex;
    flex-direction: column;
    padding: 31px;
    justify-content: flex-start;
    margin-top: 63px;
    margin-right: -79px;
}

/* .time-slots-container {
    flex-basis: 320px;
    padding: 48px 36px;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 80vh;
    justify-content: flex-start;
    min-width: 260px;
    margin-top: 30px;
} */

.calendar-form {
    margin-top: -37px;
    margin-bottom: 130px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.profile-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--highlight-color);
}

.left-panel .name {
    font-weight: 600;
    font-size: 1em;
    color: #99a2b0;
}

h2 {
    font-weight: 700;
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 18px;
    color: #e0e6ec;
}
/* 
h3 {
    font-weight: 600;
    font-size: 1.3em;
    margin: 0;
    color: #e0e6ec;
} */

.description {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 32px;
    color: var(--light-text);
}

.icon-text-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.icon-text {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1em;
    color: var(--light-text);
}

.icon-text svg {
    width: 22px;
    height: 22px;
    fill: var(--highlight-color);
}

.location-options {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}

.location-options select {
    background-color: var(--button-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: white;
    font-size: 1em;
    cursor: pointer;
    outline: none;
    padding: 6px 12px;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%235398ff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
}

.location-options select option {
    background-color: var(--container-bg);
    color: var(--text-color);
}

.header-main {
    /* background: var(--card-bg); */
    border-radius: 12px;
    padding: 10px 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width:397px ;
}

.header-main h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin: 0;
}

.header-main .controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-main .controls button {
    background-color: var(--button-bg);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-main .controls button:hover {
    background-color: var(--highlight-color);
    color: #fff;
}

.calendar-container {
    /* background-color: var(--card-bg); */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.weekdays div {
    color: var(--light-text);
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.days button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    background-color: var(--button-bg);
    color: var(--text-color);
    border: none;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
    margin: 0 auto;
}

.days button.inactive {
    color: #666;
    pointer-events: none;
    background: transparent;
}

.days button.today {
    background-color: var(--highlight-color);
    color: #fff;
}

.days button:not(.inactive):hover {
    background-color: var(--highlight-color);
    color: #fff;
}

.days button.selected {
    background-color: var(--selected-bg);
    color: var(--selected-text);
    font-weight: 700;
    border: none;
}

.time-slots-container {
    flex-basis: 380px;      /* was 320px */
    min-width: 595px;       /* was 320px */
    padding: 48px 36px;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 1px;
    height: auto; /* Let it grow with content */
}

/* Responsive: reduce padding and min-width for small screens */
@media (max-width: 900px) {
    .time-slots-container {
        padding: 24px 8px;
        min-width: unset;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 700px) {
    .time-slots-container {
        padding: 12px 2px;
        min-width: unset;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}

.time-slots-container .header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 8px;
    padding-top: 10px;
}

.time-switch {
    display: flex;
    border-radius: 999px;
    background: var(--button-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-top: 10px;
}

.time-switch button {
    flex: 1;
    border: none;
    border-radius: 999px;
    padding: 8px 24px;
    background: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.time-switch button.active {
    background: var(--highlight-color);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(118, 77, 240, 0.12);
}

.time-switch button:not(.active):hover {
    background: var(--highlight-hover);
    color: #fff;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 4 slots per row */
  gap: 10px; /* spacing between slots (adjust as needed) */
}

.time-slot {
  background: #1e1e2f;
  color: white;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
}

/* .time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding-right: 10px;
}

.time-slot {
    background-color: var(--button-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 14px 10px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    font-size: 0.95em;
    font-weight: 500;
} */

.time-slot:hover {
    background-color: var(--highlight-color);
    color: #fff;
    border-color: var(--highlight-color);
}

.time-slot.selected {
    background-color: var(--selected-bg);
    border-color: var(--selected-bg);
    color: var(--selected-text);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(118, 77, 240, 0.3);
}

.next-btn {
    background-color: var(--highlight-color);
    border: none;
    color: var(--selected-text);
    padding: 16px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 24px;
    width: 100%;
    display: none;
    box-shadow: 0 4px 12px rgba(83, 152, 255, 0.3);
}

.next-btn:hover {
    background-color: var(--highlight-hover);
    transform: translateY(-2px);
}

.user-details-form-container {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--container-bg);
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

.user-details-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.info-panel {
    flex: 1.2;
    padding: 48px 36px;
    border-right: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(31, 57, 85, 0.4) 0%, rgba(13, 17, 23, 0) 100%), var(--container-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 260px;
}

.user-details-form {
    flex: 2;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--form-bg);
}

.user-details-form h3 {
    font-size: 1.7em;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--highlight-color);
    text-align: left;
}

.contact-form {
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(118, 77, 240, 0.08);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
}

.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 1em;
    color: var(--light-text);
    font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px;
    background-color: var(--button-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1em;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 2px rgba(118, 77, 240, 0.12);
}

.contact-form .submit-btn {
    padding: 16px;
    background-color: var(--highlight-color);
    border: none;
    border-radius: 10px;
    color: var(--selected-text);
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(118, 77, 240, 0.18);
}

.contact-form .submit-btn:hover {
    background-color: var(--highlight-hover);
    transform: translateY(-2px);
}

.selected-info {
    border-radius: 10px;
    padding: 24px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.selected-info .date {
    color: #e0e6ec;
    font-weight: 600;
    font-size: 1.1em;
}

.selected-info .time {
    color: var(--highlight-color);
    font-weight: 500;
    font-size: 1.1em;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 24px;
    padding: 8px 0;
    transition: all 0.2s;
}

.back-btn:hover {
    color: var(--highlight-hover);
}

.back-btn svg {
    fill: var(--highlight-color);
    width: 16px;
    height: 16px;
    transition: all 0.2s;
}

.back-btn:hover svg {
    fill: var(--highlight-hover);
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 1em;
    color: var(--light-text);
    font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px;
    background-color: var(--button-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1em;
    resize: vertical;
    box-sizing: border-box;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 2px rgba(83, 152, 255, 0.2);
}

.contact-form .submit-btn {
    padding: 16px;
    background-color: var(--highlight-color);
    border: none;
    border-radius: 10px;
    color: var(--selected-text);
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(83, 152, 255, 0.3);
}

.contact-form .submit-btn:hover {
    background-color: var(--highlight-hover);
    transform: translateY(-2px);
}

.form-row {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.contact-form .full-width {
    width: 100%;
}

/* Responsive adjustments for the form */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 18px;
    }
}

/* Enhanced: Responsive improvements */
@media (max-width: 1200px) {
    .page-container {
        flex-direction: column;
        max-width: 98vw;
    }

    .left-panel,
    .main-content,
    .time-slots-container,
    .info-panel,
    .user-details-form {
        min-width: unset;
        padding: 24px;
        border-right: none;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }

    .user-details-content {
        flex-direction: column;
    }

    .time-slots {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1300px) {
    .time-slots {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .page-container {
        margin: 16px auto;
        border-radius: 8px;
    }

    .calendar-container {
        padding: 12px;
    }

    .main-content,
    .left-panel,
    .time-slots-container {
        padding: 16px;
    }

    .time-slots {
        grid-template-columns: 1fr;
    }

    .time-slots-container {
        padding: 16px 4px;
        min-width: unset;
        max-width: 100vw;
    }

    .time-slots {
        grid-template-columns: 1fr !important;
        gap: 10px;
        padding-right: 0;
    }

    .time-slot {
        font-size: 1em;
        padding: 14px 0;
    }
}

@media (max-width: 400px) {
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Enhanced: Add step indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border-color);
    transition: background 0.3s;
}

.step-dot.active {
    background: var(--highlight-color);
    box-shadow: 0 0 0 3px rgba(83, 152, 255, 0.3);
}

/* Loading animation */
.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.loading-spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--highlight-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Success message */
.success-message {
    display: none;
    background-color: #414550;
    border-left: 4px solid var(--success-color);
    padding: 16px;
    border-radius: 4px;
    margin-top: 20px;
    color: #ccced4;
}

span {
    color: inherit;
}

option {
    color: var(--text-color);
}

/* Animation for page transitions */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Visual enhancements */
.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title svg {
    width: 20px;
    height: 20px;
    fill: var(--highlight-color);
}

.btn-main {
    position: relative;
    overflow: hidden;
    display: inline-block;
    padding: 12px 24px;
    background: var(--highlight-hover);
    color: var(--text-color);
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.btn-main span {
    display: inline-block;
    position: relative;
    transition: transform 0.4s ease;
}

/* On hover text goes down only */
.btn-main:hover span {
    transform: translateY(100%);
}

header.transparent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
}

/* Scroll ke baad wali state */
header.transparent.scrolled {
    background: rgba(36, 36, 62, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom scrollbar for time-slots-container and page */
.time-slots-container::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 8px;
    background: #181c2c;
}

.time-slots-container::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: #764DF0;
    border-radius: 8px;
}

.time-slots-container::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: #5d3bc0;
}

/* Firefox */
.time-slots-container,
body {
    scrollbar-width: thin;
    scrollbar-color: #764DF0 #181c2c;
}
