@media (max-width: 480px) {
  /* Ensure Select2 gender dropdown fits container */
  #genderDropdown .select2-container,
  #genderDropdown .select2-container--default .select2-selection--single,
  #customerForm .select2-container,
  #customerForm .select2-container--default .select2-selection--single {
    min-width: 300px !important;
  }
}

:root {
  --accent: #651d31;
  --accent-light: #f7e5e9;
  --accent-medium: #d4a5b0;
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #d9534f;
  --dark: #0f172a;
  --text-secondary: #64748b;
}

html,
body {
  font-family: "Objektiv" !important;
  font-size: 15px;
  margin: 0;
  height: 100vh;
  overflow: hidden;
}

@media (max-width: 1200px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

/* Fullscreen container for step 2 */
.container.fullscreen {
  max-width: 100% !important;
  margin: 0;
  padding: 0 !important;
  border-radius: 0;
  min-height: 100vh;
  box-shadow: none;
}

@media (max-width: 768px) {
  .container {
    max-width: 100% !important;
    margin: 10px;
    padding: 14px !important;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(8, 15, 30, 0.08);
  }
}

@media (max-width: 480px) {
  .container {
    margin: 8px;
    padding: 12px !important;
    border-radius: 8px;
  }
}

.step {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease-out forwards;
  height: 100vh;
  overflow: hidden;
}

.step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Allow scroll only on step 1 */
#step-1 {
  overflow-y: auto;
}

#step-2,
#step-3,
#step-4 {
  overflow: auto;
}

/* Mobile and tablet specific fixes for scrolling */
@media (max-width: 1200px) {
  .step {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  #step-1,
  #step-2,
  #step-3,
  #step-4 {
    overflow: visible;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reverse layout for alternating service items */
.vision-service.reverse .vision-service-wrapper {
  direction: rtl;
}

.vision-service.reverse .vision-service-content {
  direction: ltr;
}

.service-item-image {
  max-height: 30px;
}

.visionplus .service-item-image {
  max-height: 50px;
}

.service-item-button {
  background: #581522;
  border-radius: 8px;
  font-weight: 400;
}

button {
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  transition: all 0.2s ease;
}

@media (max-width: 480px) {
  select,
  input,
  button {
    padding: 10px 10px;
    border-radius: 6px;
    font-size: 16px;
  }
}

input.invalid,
select.invalid {
  border: 1px solid red;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"] {
  width: 100%;
  box-sizing: border-box;
}

input.form-control {
  border: 1px solid #e4d5d3;
  border-radius: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}

input:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-light) !important;
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button:hover:not(:disabled) {
  box-shadow: 0 8px 20px rgba(101, 29, 49, 0.15);
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
}

.calendar-grid {
  display: grid;
  background: #fdfcfc;
  padding: 5px;
  border: 1px solid #e4d5d3;
}

/* Calendar month view styles */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.month-nav button {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #e6eef6;
  background: #6b1d32 !important;
  color: #fff !important;
}

.weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

@media (max-width: 768px) {
  .weekday-row {
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .weekday-row {
    gap: 2px;
  }
}

.weekday {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

@media (max-width: 768px) {
  .cal-grid {
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .cal-grid {
    gap: 2px;
  }
}

.cal-day {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 25px;
  transition: all 0.2s ease;
  padding: 6px;
}

@media (max-width: 768px) {
  .cal-day {
    padding: 4px;
  }
}

@media (max-width: 480px) {
  .cal-day {
    padding: 2px;
    min-height: 32px;
  }
}

.cal-day--faded {
  background: transparent;
  color: #cbd5e1;
}

.cal-day .daynum {
  font-weight: 400;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cal-day--available {
  cursor: pointer;
  color: var(--dark);
}

.cal-day--available:hover .daynum {
  background: rgba(101, 29, 49, 0.08);
}

.cal-day--unavailable {
  color: #cbd5e1;
  cursor: not-allowed;
}

.cal-day--past {
  color: #cbd5e1;
  cursor: not-allowed;
}

.cal-day--selected .daynum,
.cal-day--selected:hover .daynum {
  color: #fff;
  background: var(--accent);
  font-weight: 400;
}

/* Disabled calendar state */
.calendar-disabled {
  cursor: not-allowed;
}

.calendar-disabled .cal-day--available {
  cursor: not-allowed !important;
  pointer-events: none;
}

/* Disabled select dropdown state */
select:disabled {
  cursor: not-allowed !important;
  opacity: 1 !important;
}

.select2-container--default.select2-container--disabled
  .select2-selection--single {
  cursor: not-allowed !important;
  background: none !important;
}

.select2-container--disabled .select2-selection {
  cursor: not-allowed !important;
  opacity: 1 !important;
}

.requiredStar {
  color: #651d32;
}

.error {
  color: red;
  font-size: 12px;
  margin-top: 2px;
  display: block;
}

.slot {
  padding: 10px 14px;
  border-radius: 8px;
  border: 2px solid #e6eef6;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  font-weight: 500;
  color: var(--dark);
  text-align: center;
}

.slot:hover:not(.active) {
  border-color: var(--accent-medium);
  background: var(--accent-light);
}

.slot.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(101, 29, 49, 0.2);
}

@media (max-width: 768px) {
  .slot {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .slot {
    padding: 8px 10px;
    font-size: 12px;
    flex: 1 1 calc(50% - 2px);
    min-width: 60px;
  }
}

.slot:hover:not(.disabled) {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(101, 29, 49, 0.15);
  transform: translateY(-2px);
}

.slot.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f3f4f6;
}

form .full {
  grid-column: 1/-1;
}

@media (max-width: 480px) {
  form {
    grid-template-columns: 1fr;
  }

  form .full {
    grid-column: 1;
  }

  #customerForm,
  .customer-form {
    width: 100% !important;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
  }

  #customerForm > div,
  .customer-form > div {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
  }

  #customerForm input,
  #customerForm select,
  .customer-form input,
  .customer-form select {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px 10px;
    margin: 0;
  }
}

label {
  font-weight: 400;
  font-size: 14px;
  color: #676767;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.muted {
  color: var(--text-secondary);
  font-size: 15px;
}

#dateSection,
#timeslotSection {
  animation: fadeInUp 0.4s ease-out;
}

.calendar-timeslot-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

/* Step 2 Grid Layout - Fullscreen */
.step2-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: 100vh;
  margin: 0;
  padding: 0 !important;
}

@media (max-width: 1200px) {
  .step2-grid-container {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }
}

@media (max-width: 768px) {
  .step2-grid-container {
    grid-template-columns: 1fr;
    gap: 0;
    height: auto;
    min-height: auto;
  }
}

/* Service Image Section */
.service-image-section {
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  position: relative;
}

.service-image-section .base-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-image-section .overlay-img {
  position: absolute;
  bottom: 40px;
  left: 40px;
  width: auto;
  height: 45px;
  object-fit: contain;
  z-index: 10;
}

.service-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bottom-left blur */
.service-image-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35%;
  height: 10%;
  background: white;
  filter: blur(50px);
  opacity: 0.8;
}

.booking-form-section,
#step-3 > .step2-grid-container > div:last-child {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 30px 40px 0;
}

/* Create a scrollable wrapper for content above stepper */
.booking-content-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding-right: 10px;
}

/* Stepper stays at bottom without scrolling */
.stepper-navigation-container {
  flex-shrink: 0;
}

/* Mobile and tablet specific fixes */
@media (max-width: 1200px) {
  .booking-form-section,
  #step-3 > .step2-grid-container > div:last-child {
    height: auto;
    min-height: auto;
    overflow: visible;
    padding: 20px;
  }

  .booking-content-wrapper {
    flex: none;
    overflow: visible;
    padding-right: 0;
    margin-bottom: 20px;
  }

  .stepper-navigation-container {
    position: relative;
    margin-top: 0;
  }
}

.service-feature-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 1200px) {
  .service-image-section {
    height: auto;
    min-height: 300px;
    max-height: 40vh;
  }
}

@media (max-width: 768px) {
  .service-image-section {
    position: relative;
    top: 0;
    height: auto;
    min-height: 250px;
    max-height: 35vh;
  }

  .service-image-card {
    padding: 20px;
  }

  .service-image-card img {
    max-height: 160px;
  }
}

/* Booking Form Section */
.booking-form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Select2 Custom Styling */
.select2-container {
  display: inline-block !important;
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  border: 1px solid #e4d5d3 !important;
  height: auto !important;
  padding: 6px 5px 0px 5px !important;
  transition: all 0.2s ease;
  min-width: 323px !important;
  width: auto !important;
}

.select2-container--default .select2-selection--single:hover {
  border-color: var(--accent) !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: var(--dark) !important;
  font-size: 14px;
  display: inline-block !important;
  max-width: calc(100% - 1px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100% !important;
  top: 0 !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  border-color: var(--dark) transparent transparent transparent !important;
  border-width: 6px 5px 0 5px !important;
  margin-top: -5px !important;
}

.select2-container--default .select2-results__option {
  padding: 10px 12px !important;
  color: black !important;
  font-size: 14px;
  transition: all 0.15s ease;
  display: block !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

.select2-container--default .select2-results__option--highlighted {
  background-color: #fbf7f7 !important;
}

.select2-container--default .select2-results__option--selected {
  background-color: var(--accent) !important;
  color: #fff !important;
}

/* Step container responsiveness */
.step {
  animation: fadeInUp 0.5s ease-out;
}

@media (max-width: 768px) {
  .step {
    padding: 0;
  }
}

/* Fullscreen overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
}

/* Spinner animation */
.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #ddd;
  border-top-color: #651d32;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Custom Toast Styles */
.custom-toast {
  min-width: 350px;
  border: none;
  border-radius: 12px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  animation: slideInRight 0.3s ease-out;
}

.custom-toast .toast-body {
  padding: 16px;
  background: white;
  border-radius: 12px;
}

.custom-toast .toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--success-light);
  border-radius: 50%;
}

.custom-toast .toast-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 2px;
}

.custom-toast .toast-message {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.custom-toast .btn-close {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.custom-toast .btn-close:hover {
  opacity: 1;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive toast */
@media (max-width: 480px) {
  .custom-toast {
    min-width: 280px;
  }

  .custom-toast .toast-icon {
    width: 36px;
    height: 36px;
  }

  .custom-toast .toast-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* revamped */

.vision-service-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
  .vision-service-wrapper {
    display: flex;
    flex-direction: column;
  }
}

.vision-service-image img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.vision-title {
  font-size: 18px;
  font-weight: 500;
}

.vision-title span {
  color: #8b1d2c;
}

.vision-subtitle {
  font-size: 18px;
  margin-top: 8px;
  color: #666;
}

.vision-description {
  color: #555;
}

.vision-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  list-style: none;
  padding: 0;
  margin: 24px 0;
  font-size: 15px;
}

.vision-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vision-features img {
  width: 18px;
}

.back_icon {
  margin-left: -12px;
}

/* Stepper Navigation Styles */
.stepper-navigation-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  background: white;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  z-index: 10;
  flex-shrink: 0;
}

.stepper-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper-item {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.stepper-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: #e2e8f0;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.stepper-item.active .stepper-number {
  background: var(--accent);
  color: white;
}

.stepper-item.completed .stepper-number {
  background: var(--success);
  color: white;
}

.stepper-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.stepper-item.active .stepper-label {
  color: var(--accent);
  font-weight: 600;
}

.stepper-item.completed .stepper-label {
  color: var(--success);
}

.stepper-line {
  height: 2px;
  background: #e2e8f0;
  width: 60px;
  transition: all 0.3s ease;
}

.stepper-line.completed {
  background: var(--success);
}

.stepper-button-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

@media (max-width: 768px) {
  .stepper-navigation-container {
    padding: 16px 12px;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .stepper-wrapper {
    justify-content: center;
  }

  .stepper-label {
    font-size: 12px;
  }

  .stepper-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .stepper-line {
    width: 40px;
  }

  .stepper-button-wrapper {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    gap: 8px;
  }

  .stepper-button-wrapper .service-item-button,
  .stepper-button-wrapper .btn {
    flex: 1;
    max-width: 200px;
    padding: 10px 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .stepper-navigation-container {
    padding: 12px 8px;
    gap: 10px;
  }

  .stepper-wrapper {
    gap: 8px;
  }

  .stepper-label {
    display: none;
  }

  .stepper-line {
    width: 30px;
  }

  .stepper-number {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .stepper-button-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .stepper-button-wrapper .service-item-button,
  .stepper-button-wrapper .btn {
    width: 100%;
    max-width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* @media (max-width: 360px) {
  .stepper-navigation-container {
    padding: 10px 6px;
  }

  .stepper-wrapper {
    gap: 6px;
  }

  .stepper-line {
    width: 20px;
  }

  .stepper-number {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .stepper-button-wrapper .service-item-button,
  .stepper-button-wrapper .btn {
    padding: 10px 16px;
    font-size: 13px;
  }
} */

.confirmation {
  padding: 150px 100px 20px;
  text-align: center;
}

.success-icon {
  width: 44px;
  height: 44px;
  background: #6b1d32;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.confirmation-details {
  font-size: 14px;
  margin-top: 6px;
  text-align: left;
  padding: 15px;
  border: 1px solid #e4d5d3;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.confirmation-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.btn-outline {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #6b1d32;
  color: #6b1d32;
  font-weight: 500;
}

@media (max-width: 480px) {
  .detail-row {
    grid-template-columns: 24px 1fr;
  }

  .detail-row .value {
    grid-column: 2;
    text-align: left;
    margin-left: 36px;
  }

  .confirmation-actions {
    flex-direction: column;
  }
}
.prev-btn img,
.next-btn img {
  width: 10px;
}

.prev-btn img {
  transform: rotate(180deg);
}

.page-title {
  font-size: 24px;
  font-weight: 500;
}

/* APPOINTMENT CONFIRMATION LOADER */

.appointment-loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  z-index: 100;
  backdrop-filter: blur(4px);
  border-radius: 0;
}

.appointment-loader-overlay.active {
  display: flex;
}

.appointment-loader-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #e2e8f0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.appointment-loader-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  text-align: center;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .appointment-loader-spinner {
    width: 50px;
    height: 50px;
    border-width: 4px;
  }

  .appointment-loader-text {
    font-size: 16px;
  }
}

/* ============================================
   APPOINTMENT ERROR STATE
   ============================================ */
.appointment-error-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 100;
  backdrop-filter: blur(4px);
}

.appointment-error-overlay.active {
  display: flex;
}

.appointment-error-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #dc2626;
}

.appointment-error-message {
  font-size: 16px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .appointment-error-icon {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }

  .appointment-error-message {
    font-size: 14px;
  }
}

.pin_image {
  width: 22px;
  margin-left: -5px;
}
