/* Index.html Specific Styles */
:root{
  --prim-color:#5192e1;
  --sec-color:#26313c;
}

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #1e293b;
    --secondary-color: #3b82f6;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --background-light: #f9fafb;
    --background-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Reset and Base Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: white;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Animated Background */
  .animated-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
  }
  
  .bg-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
  }
  
  .bg-bubble:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-duration: 25s;
    animation-delay: 0s;
  }
  
  .bg-bubble:nth-child(2) {
    width: 120px;
    height: 120px;
    right: 20%;
    animation-duration: 20s;
    animation-delay: 5s;
  }
  
  .bg-bubble:nth-child(3) {
    width: 60px;
    height: 60px;
    left: 70%;
    animation-duration: 30s;
    animation-delay: 10s;
  }
  
  @keyframes float {
    0%, 100% {
      transform: translateY(100vh) scale(0);
    }
    10% {
      transform: translateY(90vh) scale(1);
    }
    90% {
      transform: translateY(-10vh) scale(1);
    }
  }
  
  .gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: orbFloat 15s infinite ease-in-out;
  }
  
  .orb-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #667eea, transparent);
    top: 20%;
    left: 10%;
    animation-duration: 20s;
  }
  
  .orb-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #764ba2, transparent);
    top: 60%;
    right: 15%;
    animation-duration: 25s;
    animation-delay: 5s;
  }
  
  .orb-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, #5192e1, transparent);
    bottom: 20%;
    left: 50%;
    animation-duration: 18s;
    animation-delay: 10s;
  }
  
  @keyframes orbFloat {
    0%, 100% {
      transform: translate(0, 0) scale(1);
    }
    33% {
      transform: translate(30px, -30px) scale(1.1);
    }
    66% {
      transform: translate(-20px, 20px) scale(0.9);
    }
  }
  
  .floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  
  .shape-1, .shape-2, .shape-3 {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: shapeFloat 12s infinite ease-in-out;
  }
  
  .shape-1 {
    width: 40px;
    height: 40px;
    top: 30%;
    left: 20%;
    animation-duration: 15s;
  }
  
  .shape-2 {
    width: 60px;
    height: 60px;
    top: 70%;
    right: 25%;
    animation-duration: 18s;
    animation-delay: 3s;
  }
  
  .shape-3 {
    width: 30px;
    height: 30px;
    bottom: 30%;
    left: 60%;
    animation-duration: 12s;
    animation-delay: 6s;
  }
  
  @keyframes shapeFloat {
    0%, 100% {
      transform: translateY(0) rotate(0deg);
    }
    50% {
      transform: translateY(-20px) rotate(180deg);
    }
  }
  
  /* Container and Layout */
  .container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
  }
  
  /* Success Message */
  #successMessage {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--success-color), #45a049);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    font-weight: 500;
    display: none;
    animation: slideInRight 0.5s ease-out;
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(100px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* Main Appointment Form */
  .appointment-form {
    display: block;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Remove conflicting animation - we'll handle this with our loader logic */
  }
  
  @keyframes formSlideIn {
    from {
      opacity: 0;
      transform: translateY(30px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  /* Close Button */
  .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 100;
    color: var(--text-dark);
    font-size: 16px;
    box-shadow: var(--shadow-sm);
  }
  
  .close-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
  }
  
  /* Form Header */
  .form-header-minimal {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 32px 40px;
    color: white;
    text-align: center;
    position: relative;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  
  .header-content-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }
  
  .header-icon-small {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
  }
  
  .header-icon-small a {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: all 0.3s ease;
  }
  
  .header-icon-small a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    color: #4CAF50;
  }
  
  .header-icon-small a:active {
    transform: scale(0.95);
  }
  
  .header-text-compact h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.5px;
    color: white;
  }
  
  .subtitle-minimal {
    font-size: 14px;
    opacity: 0.9;
    margin: 4px 0 0 0;
    font-weight: 400;
  }
  
  /* Form Main Grid */
  .form-main-grid {
    padding: 32px;
  }
  
  /* Form Row Container */
  .form-row-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
  }
  
  /* Form Cards */
  .form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
  }
  
  .form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .form-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--primary-color);
  }
  
  .form-card:hover::before {
    opacity: 1;
  }
  
  .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
  }
  
  .card-icon {
    color: var(--primary-color);
    font-size: 18px;
    width: 20px;
    text-align: center;
  }
  
  .card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.3px;
  }
  
  /* Form Fields Grid */
  .form-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: start;
  }
  
  .form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 80px;
  }
  
  .field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    min-height: 20px;
  }
  
  .label-icon {
    color: var(--primary-color);
    font-size: 14px;
    width: 16px;
    text-align: center;
  }
  
  .required {
    color: var(--error-color);
    font-weight: 600;
  }
  
  .field-input,
  .field-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-dark);
    background: white;
    transition: var(--transition);
    outline: none;
    height: 52px;
    box-sizing: border-box;
    font-weight: 400;
    display: flex;
    align-items: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
  }

  /* Custom dropdown arrow for select elements */
  .select-wrapper {
    position: relative;
    width: 100%;
  }

  .select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
  }
  
  /* Down arrow when native select is open */
  .select-wrapper.open::after {
    content: '\f077';
  }
  
  .field-input:focus,
  .field-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
    background: #fafbff;
  }
  
  .field-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
  }

  /* Date input specific styles */
  .date-input {
    cursor: pointer;
    position: relative;
    padding-right: 45px; /* Make space for the calendar icon */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3e%3cpath fill-rule='evenodd' d='M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z' clip-rule='evenodd'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
  }
/* 
  .date-input:hover {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232563eb'%3e%3cpath fill-rule='evenodd' d='M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z' clip-rule='evenodd'/%3e%3c/svg%3e");
  } */

  /* Hide the default browser calendar icon */
  .date-input::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    color: transparent;
    background: transparent;
    cursor: pointer;
    opacity: 0;
  }

  .date-input::-webkit-datetime-edit {
    cursor: pointer;
  }

  .date-input::-webkit-datetime-edit-fields-wrapper {
    cursor: pointer;
  }

  .date-input::-webkit-datetime-edit-text {
    cursor: pointer;
  }

  .date-input::-webkit-datetime-edit-month-field,
  .date-input::-webkit-datetime-edit-day-field,
  .date-input::-webkit-datetime-edit-year-field {
    cursor: pointer;
  }

  /* Autocomplete Styles */
  .autocomplete-container {
    position: relative;
    width: 100%;
  }

  .autocomplete-container::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
  }
  
  /* Down arrow when autocomplete dropdown is open */
  .autocomplete-container.open::after {
    content: '\f077';
  }

  .autocomplete-input {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-dark);
    background: white;
    transition: var(--transition);
    outline: none;
    height: 52px;
    box-sizing: border-box;
    font-weight: 400;
  }

  .autocomplete-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
    background: #fafbff;
  }

  .autocomplete-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
  }

  .autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1002;
    display: none;
    margin-top: -2px;
  }

  .autocomplete-dropdown.show {
    display: block;
  }

  .autocomplete-option {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    font-size: 15px;
    color: var(--text-dark);
    user-select: none;
    pointer-events: auto;
    position: relative;
    z-index: 1001;
  }

  .autocomplete-option:last-child {
    border-bottom: none;
  }

  .autocomplete-option:hover {
    background: var(--background-light);
    color: var(--primary-color);
  }

  .autocomplete-option.selected {
    background: var(--primary-color);
    color: white;
  }

  .autocomplete-option.highlighted {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
  }
  
  /* Contact Number Field Styles */
  .contact-number-field {
    width: 100%;
  }
  
  .contact-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
    min-height: 48px;
  }
  
  .country-code-select {
    width: 80px;
    min-width: 80px;
    padding: 12px 8px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-dark);
    background: white;
    transition: var(--transition);
    outline: none;
    height: 48px;
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .country-code-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(81, 146, 225, 0.1);
  }

  /* Custom country selector with flag images */
  .custom-country-selector {
    position: relative;
    width: 80px;
    min-width: 80px;
  }

  .country-selector-trigger {
    width: 100%;
    padding: 12px 24px 12px 8px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-dark);
    background: white;
    transition: var(--transition);
    outline: none;
    height: 48px;
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    position: relative;
  }

  .country-selector-trigger::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
    font-size: 12px;
  }
  
  /* Down arrow when custom country dropdown is open */
  .country-selector-trigger.open::after {
    content: '\f077';
  }

  .country-selector-trigger:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(81, 146, 225, 0.1);
  }

  .country-flag {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  .country-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 300px;
    background: white;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 120px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 4px;
  }

  .country-dropdown.show {
    display: block;
  }

  .country-option {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-dark);
    transition: background-color 0.2s ease;
  }

  .country-option:hover {
    background-color: var(--bg-light);
  }

  .country-option.selected {
    background-color: var(--primary-color);
    color: white;
  }

  .country-option-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
  }

  .country-option-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .mobile-number-input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-dark);
    background: white;
    transition: var(--transition);
    outline: none;
    height: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }
  
  .mobile-number-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(81, 146, 225, 0.1);
    transform: translateY(-1px);
  }
  
  .mobile-number-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
  }
  
  /* Consultation Options */
  .consultation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 16px;
  }
  
  .consultation-option {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    cursor: pointer;
    transition: var(--transition-slow);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-height: 110px;
    justify-content: center;
  }
  
  .consultation-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .consultation-option:hover::before {
    opacity: 0.05;
  }
  
  .consultation-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
  
  .consultation-option.selected {
    border-color: var(--primary-color);
    background: rgba(81, 146, 225, 0.08);
    box-shadow: var(--shadow-sm);
  }
  
  .consultation-option.selected::before {
    opacity: 0.1;
  }
  
  .option-icon-wrapper {
    width: 40px;
    height: 40px;
    background: rgba(81, 146, 225, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
  }
  
  .option-icon {
    color: var(--primary-color);
    font-size: 18px;
  }
  
  .option-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
  }
  
  /* Appointment Grid */
  .appointment-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: start;
  }
  
  /* Submit Section */
  .submit-section-minimal {
    background: var(--background-light);
    padding: 24px 32px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .security-badge-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
  }
  
  .security-icon {
    color: var(--success-color);
    font-size: 14px;
  }
  
  .submit-btn-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    letter-spacing: -0.2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 240px;
    text-transform: none;
  }
  
  .submit-btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
  }
  
  .submit-btn-modern:active {
    transform: translateY(0);
  }
  
  .btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
  }
  
  .btn-icon {
    font-size: 16px;
  }
  
  .btn-text {
    font-weight: 600;
  }
  
  .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
  }
  
  .submit-btn-modern:hover .btn-glow {
    left: 100%;
  }
  
  /* Loading Animation Styles */
  .btn-loading-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-md);
  }
  
  .loading-dots {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  
  .loading-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    animation: loadingBounce 1.4s ease-in-out infinite both;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
  }
  
  .loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
  }
  
  .loading-dots span:nth-child(3) {
    animation-delay: 0s;
  }
  
  @keyframes loadingBounce {
    0%, 80%, 100% {
      transform: scale(0);
      opacity: 0.5;
    }
    40% {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  /* Enhanced loading animation with pulse effect */
  .btn-loading-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-md);
    animation: pulse 2s ease-in-out infinite;
  }
  
  @keyframes pulse {
    0%, 100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.8;
      transform: scale(1.02);
    }
  }
  
  /* Button states for loading */
  .submit-btn-modern.loading .btn-content {
    opacity: 0;
  }
  
  .submit-btn-modern.loading .btn-loading-animation {
    display: flex !important;
  }
  
  .submit-btn-modern.loading {
    cursor: not-allowed;
    pointer-events: none;
    transform: scale(0.98);
    transition: transform 0.2s ease;
  }
  
  /* Ensure proper positioning for loading animation */
  .submit-btn-modern {
    position: relative;
  }
  
  /* Support Footer */
  .support-footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 16px 24px;
    margin-top: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
  }
  
  .support-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  
  .support-icon {
    color: var(--primary-color);
    font-size: 18px;
  }
  
  .support-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  
  .support-title {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
  }
  
  .support-text {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
  }
  
  #supportNumber {
    color: var(--primary-color);
    font-weight: 600;
  }
  
  /* Responsive Design */
  @media screen and (max-width: 768px) {
    .container {
      padding: 12px;
    }
    
    .appointment-form {
      border-radius: var(--radius-lg);
      margin: 0;
    }
    
    .support-footer {
      border-radius: 0 0 var(--radius-lg) var(--radius-lg);
      padding: 12px 16px;
    }
    
    .form-header-minimal {
      padding: 24px 20px;
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .header-content-inline {
      flex-direction: column;
      gap: 12px;
    }
    
    .header-text-compact h2 {
      font-size: 22px;
    }
    
    .form-main-grid {
      padding: 20px;
    }
    
    .form-row-container {
      gap: 16px;
      margin-bottom: 20px;
    }
    
    .form-card {
      padding: 20px;
      border-radius: var(--radius-md);
    }
    
    .form-fields-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    
    .appointment-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    
    .consultation-options {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    
    .consultation-option {
      padding: 16px 12px;
      min-height: 80px;
      border-radius: var(--radius-md);
    }
    
    .submit-section-minimal {
      padding: 20px;
      border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    
    .submit-btn-modern {
      width: 100%;
      min-width: auto;
      padding: 16px 24px;
      font-size: 15px;
      border-radius: var(--radius-md);
    }
    
    .bg-bubble {
      display: none;
    }
    
    .close-btn {
      top: 12px;
      right: 12px;
      width: 32px;
      height: 32px;
      font-size: 14px;
    }
    
    /* Country dropdown mobile positioning */
    .country-dropdown {
      position: absolute;
      top: 100%;
      bottom: auto;
      left: 0;
      width: 300px;
      background: white;
      border: 1.5px solid var(--border-light);
      border-radius: var(--radius-sm);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      max-height: 120px;
      overflow-y: auto;
      z-index: 1000;
      display: none;
      margin-top: 4px;
    }
  }
  
  @media screen and (max-width: 480px) {
    .container {
      padding: 8px;
    }
    
    .support-footer {
      padding: 10px 12px;
    }
    
    .support-content {
      gap: 8px;
    }
    
    .support-text-container {
      gap: 2px;
    }
    
    .form-header-minimal {
      padding: 20px 16px;
    }
    
    .header-text-compact h2 {
      font-size: 20px;
    }
    
    .form-main-grid {
      padding: 16px;
    }
    
    .form-card {
      padding: 16px;
      border-radius: var(--radius-sm);
    }
    
    .card-header {
      margin-bottom: 16px;
      padding-bottom: 10px;
    }
    
    .form-fields-grid {
      gap: 18px;
    }
    
    .appointment-grid {
      gap: 18px;
    }
    
    .field-input,
    .field-select {
      padding: 12px 14px;
      font-size: 15px;
      height: 48px;
      border-radius: var(--radius-sm);
    }
    
    .consultation-option {
      padding: 14px 12px;
      border-radius: var(--radius-sm);
      min-height: 70px;
    }
    
    .option-icon-wrapper {
      width: 36px;
      height: 36px;
    }
    
    .option-icon {
      font-size: 16px;
    }
    
    .option-label {
      font-size: 14px;
    }
    
    .submit-section-minimal {
      padding: 16px;
    }
    
    .submit-btn-modern {
      padding: 14px 20px;
      font-size: 15px;
      border-radius: var(--radius-sm);
    }
    
    .close-btn {
      top: 8px;
      right: 8px;
      width: 28px;
      height: 28px;
      font-size: 12px;
    }
    
    /* Country dropdown mobile positioning for smaller screens */
    .country-dropdown {
      position: absolute;
      top: 100%;
      bottom: auto;
      left: 0;
      width: 280px;
      background: white;
      border: 1.5px solid var(--border-light);
      border-radius: var(--radius-sm);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      max-height: 100px;
      overflow-y: auto;
      z-index: 1000;
      display: none;
      margin-top: 4px;
    }
  }
  
  /* Animation Classes */
  .fade-in {
    animation: fadeIn 0.5s ease-out;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  .slide-up {
    animation: slideUp 0.5s ease-out;
  }
  
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Loading States */
  .loading {
    opacity: 0.7;
    pointer-events: none;
  }
  
  .loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  /* Modal Styles */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    padding: 20px;
  }
  
  .modal-content {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    width: 100%;
  }
  
  @keyframes modalSlideIn {
    from {
      opacity: 0;
      transform: translateY(-50px) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  .payment-details-modal {
    width: 500px;
    max-width: 90vw;
  }
  
  .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .modal-header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
  }
  
  .modal-header p {
    margin: 5px 0 0 0;
    color: var(--text-light);
    font-size: 0.9rem;
  }
  
  .modal-close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
  }
  
  .modal-close-btn:hover {
    background: var(--background-light);
    color: var(--text-dark);
  }
  
  .modal-body {
    padding: 24px;
  }
  
  .modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
  }
  
  /* Appointment Details in Modal */
  .appointment-details {
    background: var(--background-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
  }
  
  .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
  }
  
  .detail-row:last-child {
    border-bottom: none;
  }
  
  .detail-row .label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 140px;
  }
  
  .detail-row .value {
    color: var(--text-light);
    text-align: right;
    flex: 1;
    margin-left: 10px;
  }
  
  .payment-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-light);
  }
  
  .payment-summary h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .summary-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
  }
  
  .summary-row.total-row {
    border-top: 2px solid var(--border-medium);
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 600;
    font-size: 1.1rem;
  }
  
  .summary-row .label {
    color: var(--text-dark);
  }
  
  .summary-row .value {
    color: var(--text-dark);
    font-weight: 500;
  }
  
  .summary-row.total-row .value {
    color: var(--primary-color);
    font-weight: 600;
  }
  
  /* Button Styles for Modal */
  .btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-sm);
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  /* Loading animation support for btn-primary */
  .btn-primary.loading {
    cursor: not-allowed;
    pointer-events: none;
    transform: scale(0.98);
    transition: transform 0.2s ease;
  }
  
  .btn-primary.loading .btn-loading-animation {
    display: flex !important;
  }
  
  .btn-primary .btn-loading-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-md);
  }
  
  .btn-secondary {
    background: var(--background-light);
    color: var(--text-dark);
    border: 1px solid var(--border-medium);
  }
  
  .btn-secondary:hover {
    background: var(--border-light);
  }
  
  /* Payment Gateway Modal */
  .payment-gateway-modal {
    width: 600px;
    max-width: 90vw;
  }
  
  .payment-gateways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
  }
  
  .payment-gateway-card {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: white;
  }
  
  .payment-gateway-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  .partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1.1rem;
  }
  
  .razorpay-logo {
    color: #0d2444;
  }
  
  .phonepe-logo {
    color: #5f259f;
  }
  
  .razorpay-icon, .phonepe-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
  }
  
  .razorpay-icon {
    background: #0d2444;
    color: white;
  }
  
  .phonepe-icon {
    background: #5f259f;
    color: white;
  }
  
  .gateway-name {
    font-weight: 500;
    color: var(--text-dark);
    margin-top: 8px;
  }

  /* Mobile Modal Responsiveness */
  @media screen and (max-width: 768px) {
    .modal-overlay {
      padding: 10px;
      align-items: flex-start;
      padding-top: 20px;
    }
    
    .modal-content {
      max-width: 100%;
      max-height: calc(100vh - 40px);
      border-radius: var(--radius-lg);
      margin: 0;
    }
    
    .payment-details-modal,
    .payment-gateway-modal {
      width: 100%;
      max-width: 100%;
    }
    
    .modal-header {
      padding: 16px 20px;
    }
    
    .modal-header h2 {
      font-size: 1.25rem;
    }
    
    .modal-body {
      padding: 20px;
    }
    
    .modal-footer {
      padding: 16px 20px;
      flex-direction: column;
      gap: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
      width: 100%;
      justify-content: center;
      padding: 14px 20px;
    }
    
    .payment-gateways-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    
    .payment-gateway-card {
      padding: 16px;
    }
    
    .appointment-summary {
      padding: 16px;
    }
    
    .summary-details {
      gap: 8px;
    }
  }

  @media screen and (max-width: 480px) {
    .modal-overlay {
      padding: 5px;
      padding-top: 10px;
    }
    
    .modal-content {
      max-height: calc(100vh - 20px);
      border-radius: var(--radius-md);
    }
    
    .modal-header {
      padding: 12px 16px;
    }
    
    .modal-header h2 {
      font-size: 1.1rem;
    }
    
    .modal-body {
      padding: 16px;
    }
    
    .modal-footer {
      padding: 12px 16px;
    }
    
    .payment-gateway-card {
      padding: 12px;
    }
    
    .appointment-summary {
      padding: 12px;
    }
  }

  /* Initial Loader Styles */
  .initial-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
  }

  .initial-loader.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .loader-content {
    text-align: center;
    color: white;
  }

  .loader-spinner {
    margin-bottom: 24px;
  }

  .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
  }

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

  .loader-text h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: white;
  }

  .loader-text p {
    font-size: 16px;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
  }

  .loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
  }

  /* Payment Processing Spinner */
  .payment-spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
  }

  .payment-spinner-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
  }

  .payment-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1565c0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
  }

  .payment-spinner-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
  }

  .payment-spinner-subtext {
    font-size: 14px;
    color: #666;
    margin: 8px 0 0 0;
  }

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

  .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease-out;
    animation: progressPulse 2s ease-in-out infinite;
  }

  @keyframes progressPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
  }

  /* Hide appointment form initially with smooth transitions */
  .appointment-form {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out, transform 0.5s ease-out;
  }

  .appointment-form.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
        /* Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 10000;
        }

        .modal-content {
            background: white;
            border-radius: 12px;
            padding: 0;
            max-width: 500px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            animation: modalSlideIn 0.3s ease-out;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-50px) scale(0.9);
            }

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

        .modal-header {
            padding: 24px 24px 16px;
            border-bottom: 1px solid #e0e0e0;
            text-align: center;
        }

        .modal-header h2 {
            margin: 0 0 8px 0;
            color: #333;
            font-size: 24px;
            font-weight: 600;
        }

        .modal-header p {
            margin: 0;
            color: #666;
            font-size: 14px;
        }

        .modal-close-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            background: none;
            border: none;
            font-size: 20px;
            color: #999;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .modal-close-btn:hover {
            background: #f5f5f5;
            color: #333;
        }

        .modal-body {
            padding: 24px;
        }

        .modal-footer {
            padding: 16px 24px 24px;
            border-top: 1px solid #e0e0e0;
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }

        /* Payment Details Modal */
        .appointment-summary {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 20px;
        }

        .appointment-summary h3 {
            margin: 0 0 16px 0;
            color: #333;
            font-size: 18px;
            font-weight: 600;
        }

        .summary-details {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
        }

        .summary-row.total-row {
            border-top: 2px solid #e0e0e0;
            padding-top: 12px;
            margin-top: 8px;
            font-weight: 600;
            font-size: 16px;
        }

        .label {
            color: #666;
            font-size: 14px;
        }

        .value {
            color: #333;
            font-weight: 500;
        }

        .total-row .value {
            color: #1976d2;
            font-size: 18px;
        }

        /* Payment Gateway Modal */
        .payment-gateways-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-top: 16px;
        }

        .payment-gateway-card {
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            padding: 24px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: white;
        }

        .payment-gateway-card:hover {
            border-color: #1976d2;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(25, 118, 210, 0.15);
        }

        .partner-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-bottom: 12px;
        }

        .razorpay-logo {
            color: #1976d2;
        }

        .phonepe-logo {
            color: #5f259f;
        }

        .razorpay-icon,
        .phonepe-icon {
            font-size: 24px;
            font-weight: bold;
        }

        .razorpay-text,
        .phonepe-text {
            font-size: 16px;
            font-weight: 600;
        }

        .gateway-name {
            font-size: 14px;
            color: #666;
            margin-top: 8px;
        }

        .loading-indicator {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.95);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            font-size: 12px;
            color: #666;
        }

        .loading-indicator .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid #e0e0e0;
            border-top: 2px solid #1976d2;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 8px;
        }

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

        /* Button Styles */
        .btn-primary,
        .btn-secondary {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background: #1976d2;
            color: white;
        }

        .btn-primary:hover {
            background: #1565c0;
            transform: translateY(-1px);
        }

        .btn-secondary {
            background: #f5f5f5;
            color: #666;
        }

        .btn-secondary:hover {
            background: #e0e0e0;
            color: #333;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .modal-content {
                width: 95%;
                margin: 20px;
            }

            .payment-gateways-grid {
                grid-template-columns: 1fr;
            }

            .modal-footer {
                flex-direction: column;
            }

            .btn-primary,
            .btn-secondary {
                width: 100%;
                justify-content: center;
            }
        }

        /* Doctor details side panel */
        .doctor-panel-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.4);
            display: none;
            z-index: 100000;
        }
        .doctor-side-panel {
            position: fixed;
            top: 0;
            right: -420px; /* hidden */
            width: 400px;
            max-width: 90vw;
            height: 100vh;
            background: #ffffff;
            box-shadow: -12px 0 32px rgba(0,0,0,0.15);
            z-index: 100001;
            transition: right 0.3s ease;
            display: flex;
            flex-direction: column;
            border-left: 1px solid #e5e7eb;
        }
        .doctor-side-panel.open {
            right: 0;
        }
        .doctor-panel-header {
            padding: 16px 16px;
            border-bottom: 1px solid #eef2f7;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .doctor-panel-title {
            font-size: 18px;
            font-weight: 600;
            margin: 0;
        }
        .doctor-panel-close {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: #6b7280;
        }
        .doctor-panel-body {
            padding: 16px;
            overflow-y: auto;
            flex: 1;
        }
        .doctor-header { display: flex; align-items: center; gap: 14px; }
        .doctor-avatar-sm { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: #f3f4f6; flex: 0 0 auto; }
        .doctor-meta { display: flex; flex-direction: column; min-width: 0; }
        .doctor-name {
            font-size: 20px;
            font-weight: 700;
            margin: 12px 0 6px;
            color: #111827;
        }
        .doctor-qual {
            font-size: 14px;
            color: #6b7280;
            margin-bottom: 12px;
        }
        .doctor-content {
            font-size: 14px;
            color: #374151;
            line-height: 1.6;
            white-space: pre-wrap;
        }
        .view-details-btn {
            position: absolute;
            top: 50%;
            right: 8px;
            transform: translateY(-50%);
            border: none;
            background: var(--primary-color);
            color: white;
            font-size: 12px;
            padding: 6px 10px;
            border-radius: 6px;
            cursor: pointer;
            white-space: nowrap;
        }
        .autocomplete-option {
            position: relative;
            padding-right: 96px; /* space for the button */
        }
        
        /* Prevent page scroll when side panel is open */
        body.no-scroll,
        html.no-scroll { overflow: hidden; }
   