
  * {
    box-sizing: border-box;
  }

  body, html {
    width: 100%;
    overflow-x: hidden;
  }

  /* ============ MAIN CONTAINER ============ */
  .form-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden;
    margin-bottom: 20px;
  }

  /* ============ NOTIFICATION STYLES ============ */
  /* Base Notification */
  .notification {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideInRight 0.4s ease-out;
    backdrop-filter: blur(10px);
    max-width: 500px;
  }

  /* Error Notification */
  .error-notification,
  .notification.error {
    background: linear-gradient(135deg, #fee 0%, #fdd 100%);
    border-left: 4px solid #e74c3c;
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.2);
  }

  /* Success Notification */
  .notification.success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.2);
  }

  /* Warning Notification */
  .notification.warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #ff9800;
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.2);
  }

  /* Info Notification */
  .notification.info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.2);
  }

  .error-notification.show,
  .notification.show {
    animation: slideInRight 0.4s ease-out;
  }

  .error-notification.hide,
  .notification.hide {
    animation: slideOutRight 0.4s ease-out forwards;
  }

  /* Title Styling */
  .error-notification-title,
  .notification-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 15px;
  }

  /* Error Title */
  .error-notification-title {
    color: #c0392b;
  }

  /* Success Title */
  .notification.success .notification-title {
    color: #2e7d32;
  }

  /* Warning Title */
  .notification.warning .notification-title {
    color: #e65100;
  }

  /* Info Title */
  .notification.info .notification-title {
    color: #0d47a1;
  }

  /* Message Styling */
  .error-notification-message,
  .notification-message {
    font-size: 13px;
    line-height: 1.4;
  }

  /* Error Message */
  .error-notification-message {
    color: #a93226;
  }

  /* Success Message */
  .notification.success .notification-message {
    color: #1b5e20;
  }

  /* Warning Message */
  .notification.warning .notification-message {
    color: #bf360c;
  }

  /* Info Message */
  .notification.info .notification-message {
    color: #1a237e;
  }

  /* Close Button */
  .error-notification-close,
  .notification-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
  }

  /* Error Close Button */
  .error-notification-close {
    color: #c0392b;
  }

  /* Success Close Button */
  .notification.success .notification-close {
    color: #2e7d32;
  }

  /* Warning Close Button */
  .notification.warning .notification-close {
    color: #e65100;
  }

  /* Info Close Button */
  .notification.info .notification-close {
    color: #0d47a1;
  }
   
  

  /* ============ STEP INDICATOR ============ */
  .step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
  }

  .step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
  }

  .step-item.active .step-number {
    background: linear-gradient(135deg, #004C5C 0%, #003a47 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 76, 92, 0.3);
  }

  .step-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-align: center;
  }

  .step-item.active .step-label {
    color: #004C5C;
  }

  /* ============ FORM STEPS ============ */
  .form-step {
    display: none;
    animation: slideInRight 0.5s ease-out;
  }

  .form-step.active {
    display: block;
  }

  .step-header {
    margin-bottom: 25px;
    text-align: center;
  }

  .step-header h2 {
    margin: 0;
    font-size: 22px;
    color: #004C5C;
    font-weight: 700;
  }

  .step-header p {
    margin: 8px 0 0;
    color: #666;
    font-size: 14px;
  }

  /* ============ FORM CONTROLS ============ */
  .input-wrapper {
    margin-bottom: 16px;
    position: relative;
  }

  label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #004C5C;
    font-size: 14px;
  }

  .required-field {
    position: relative;
  }

  .required-field::after {
    content: "*";
    color: #e74c3c;
    margin-left: 2px;
  }

  .form-control,
  .form-select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: #333;
  }

  .form-control:focus,
  .form-select:focus {
    outline: none;
    border-color: #004C5C;
    box-shadow: 0 0 0 3px rgba(0, 76, 92, 0.1);
  }

  .form-control::placeholder {
    color: #999;
  }

  .form-select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23004C5C" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
  }

  .validation-icon {
    position: absolute;
    right: 12px;
    top: 38px;
    font-size: 18px;
    display: none;
  }

  .validation-icon.valid {
    display: block;
    color: #27ae60;
  }

  .validation-icon.invalid {
    display: block;
    color: #e74c3c;
  }

  .field-error-message {
    display: none;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 6px;
  }

  .field-error-message.show {
    display: block;
  }

  /* ============ SERVICE DISPLAY ============ */
  .service-display-box {
    padding: 12px 14px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    -webkit-user-select: none;
    user-select: none;
  }

  .service-display-box:hover {
    border-color: #004C5C;
    background: #f0f7f9;
  }

  .service-display-box.selected {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #1b5e20;
    color: #1b5e20;
    font-weight: 600;
  }

  /* ============ SERVICE CAROUSEL ============ */
  .service-carousel-wrapper {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    z-index: 9999;
    animation: slideUpService 0.4s ease-out;
  }

  .service-carousel-wrapper.show {
    display: block;
  }

  .service-carousel-container {
    background: linear-gradient(135deg, #004C5C 0%, #003a47 100%);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(0, 76, 92, 0.3);
  }

  .service-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: white;
    font-weight: 600;
    font-size: 14px;
  }

  .service-carousel-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.2s ease;
    padding: 0;
    width: 30px;
    height: 30px;
  }

  .service-carousel-close:active {
    background: rgba(255, 255, 255, 0.1);
  }

  .service-carousel-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
  }

  .service-carousel-scroll::-webkit-scrollbar {
    height: 4px;
  }

  .service-carousel-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }

  .service-carousel-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
  }

  .service-card {
    flex: 0 0 auto;
    min-width: 90px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    scroll-snap-align: start;
    -webkit-user-select: none;
    user-select: none;
  }

  .service-card:active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
  }

  .service-card.selected {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-color: #fff;
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
  }

  .service-card-icon {
    font-size: 28px;
    margin-bottom: 6px;
    display: block;
  }

  .service-card-name {
    color: white;
    font-size: 11px;
    font-weight: 600;
    word-break: break-word;
    line-height: 1.3;
  }

  /* ============ DOCTOR CAROUSEL ============ */
  .doctor-carousel-wrapper {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    z-index: 9998;
    animation: slideUpService 0.4s ease-out;
  }

  .doctor-carousel-wrapper.show {
    display: block;
  }

  .doctor-carousel-container {
    background: linear-gradient(135deg, #2d5016 0%, #1f3a0d 100%);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(45, 80, 22, 0.3);
  }

  .doctor-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: white;
    font-weight: 600;
    font-size: 14px;
  }

  .doctor-carousel-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.2s ease;
    padding: 0;
    width: 30px;
    height: 30px;
  }

  .doctor-carousel-close:active {
    background: rgba(255, 255, 255, 0.1);
  }

  .doctor-carousel-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
  }

  .doctor-carousel-scroll::-webkit-scrollbar {
    height: 4px;
  }

  .doctor-carousel-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }

  .doctor-carousel-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
  }

  .doctor-card {
    flex: 0 0 auto;
    min-width: 100px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    scroll-snap-align: start;
    -webkit-user-select: none;
    user-select: none;
  }

  .doctor-card:active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
  }

  .doctor-card.selected {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-color: #fff;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
  }

  .doctor-card-icon {
    font-size: 32px;
    margin-bottom: 6px;
    display: block;
  }

  .doctor-card-name {
    color: white;
    font-size: 12px;
    font-weight: 600;
    word-break: break-word;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .doctor-card-spec {
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    font-style: italic;
  }

  /* ============ TIME SLOTS ============ */
  .time-slots-container {
    margin-top: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2f7 100%);
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    border: 1px solid #e0e8f0;
  }

  .time-slots-container.show {
    display: block;
    animation: slideDown 0.4s ease-out;
  }

  .time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 8px;
  }

  .time-slot {
    padding: 8px 6px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #004C5C;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
  }

  .time-slot:hover {
    border-color: #004C5C;
    background: #f0f7f9;
  }

  .time-slot.selected {
    background: linear-gradient(135deg, #004C5C 0%, #003a47 100%);
    color: white;
    border-color: #004C5C;
  }

  .slots-placeholder {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #ddd;
  }

  /* ============ BUTTONS ============ */
  .btn-group {
    display: flex;
    gap: 10px;
    margin-top: 25px;
  }

  .btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    -webkit-user-select: none;
    user-select: none;
  }

  .btn-primary {
    background: linear-gradient(135deg, #004C5C 0%, #003a47 100%);
    color: white;
    flex: 2;
  }

  .btn-primary:active:not(:disabled) {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 76, 92, 0.3);
  }

  .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  .btn-secondary {
    background: white;
    color: #004C5C;
    border: 2px solid #004C5C;
  }

  .btn-secondary:active {
    background: #f8f9fa;
  }

  /* ============ ADDITIONAL MESSAGE ============ */
  .textarea-wrapper {
    margin-bottom: 16px;
  }

  .form-control-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 80px;
    color: #333;
  }

  .form-control-textarea:focus {
    outline: none;
    border-color: #004C5C;
    box-shadow: 0 0 0 3px rgba(0, 76, 92, 0.1);
  }

  .form-control-textarea::placeholder {
    color: #999;
  }

  /* ============ ANIMATIONS ============ */
  @keyframes slideInRight {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  @keyframes slideOutRight {
    from {
      transform: translateX(0);
      opacity: 1;
    }
    to {
      transform: translateX(100%);
      opacity: 0;
    }
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      max-height: 0;
    }
    to {
      opacity: 1;
      max-height: 300px;
    }
  }

  @keyframes slideUpService {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }

  /* ============ MOBILE RESPONSIVE ============ */
  @media (max-width: 480px) {
    .form-container {
      padding: 16px;
    }

    .step-number {
      width: 40px;
      height: 40px;
      font-size: 16px;
    }

    .step-header h2 {
      font-size: 18px;
    }

    .btn {
      font-size: 13px;
      padding: 10px 12px;
    }

    .service-carousel-wrapper {
      left: 12px;
      right: 12px;
      bottom: 16px;
    }

    .error-notification {
      left: 12px;
      right: 12px;
      top: 12px;
      max-width: none;
    }
  }