:root {
  --primary-color: #f47a21;
  --primary-dark: #e65a1a;
  --secondary-color: #ef4132;
  --accent-color: #fff5f0;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --text-color: #1e293b;
  --text-light: #64748b;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
}

/* Required field indicators - make asterisks red */
.text-danger {
  color: var(--error-color) !important;
}

.form-label .text-danger {
  color: var(--error-color) !important;
}

/* Make asterisks in labels red */
.form-label.required::after,
.form-label:has(.text-danger) .text-danger {
  color: var(--error-color) !important;
}

/* Ensure asterisks in labels are red */
label.required .text-danger,
.form-label.required .text-danger {
  color: var(--error-color) !important;
}

/* Make asterisks red in form labels */
.form-label:has(.text-danger) .text-danger,
.form-label .text-danger {
  color: var(--error-color) !important;
}

/* Base font size for consistency across all UI elements */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--white);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-size: 16px; /* Consistent base font size */
}

/* Custom scrollbar for search results */
.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Firefox scrollbar */
.search-results {
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Header Styles */
.main-header {
  top: 0;
  z-index: 10000;
  position: sticky;
  padding: 0.5rem 0;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.header-left {
  flex: 1;
}

.header-right {
  flex-shrink: 0;
}

.site-title {
  margin: 0;
  gap: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  font-size: 1.75rem;
  align-items: center;
  color: var(--text-color);
}

.site-title i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.ceyone-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.ceyone-logo:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.logo-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Form Section Main */
.form-section-main {
  background: var(--light-bg);
  min-height: calc(100vh - 80px);
}

/* Hero Header - Updated for form section */
.hero-header {
  padding: 2rem 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-color);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-color);
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--text-color) 0%,
    var(--text-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  line-height: 1.6;
  color: var(--text-light);
}

.hero-features {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}

.feature-item i {
  font-size: 1.1rem;
}

/* Form Card */
.form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-height: none;
  overflow-y: visible;
  max-width: 800px;
  margin: 0 auto;
}

/* Form Title */
.form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-title i {
  color: var(--primary-color);
  font-size: 1rem;
}

.form-subtitle {
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

/* Form Sections */
.form-section {
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

.form-section:last-child {
  margin-bottom: 0;
}

/* Blur effect for disabled form sections */
.form-section.blurred {
  filter: blur(2px);
  opacity: 0.6;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Ensure blur is immediately removed when project is selected */
.form-section:not(.blurred) {
  filter: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: all 0.3s ease;
}

/* Enhanced blur effect for better visual feedback */
.form-section.blurred {
  filter: blur(2px);
  opacity: 0.6;
  pointer-events: none;
  transition: all 0.3s ease;
  position: relative;
}

.form-section.blurred::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
  pointer-events: none;
}

.section-title {
  gap: 0.75rem;
  display: flex;
  font-size: 18px; /* Slightly larger for hierarchy */
  font-weight: 600;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--text-color);
  background-color: #f8f9fa; /* Light grey background */
  padding: 0.75rem 1rem; /* Add padding for better spacing */
  border-radius: 8px; /* Rounded corners */
  border-left: 4px solid var(--primary-color); /* Left border accent */
  box-shadow: var(--shadow-sm); /* Subtle shadow */
}

.section-title i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* Form Controls */
.form-floating {
  position: relative;
  margin-bottom: 0.25rem;
  overflow: visible;
}

/* Ensure searchable select works properly within form-floating */
.form-floating .searchable-select-container {
  position: relative;
  width: 100%;
  margin-bottom: 0;
  overflow: visible;
}

.form-floating .searchable-select-container .search-input {
  position: relative;
  width: 100%;
  z-index: 10;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  padding: 0.375rem 0.75rem;
  font-size: 16px; /* Consistent font size */
  height: 32px;
  min-height: calc(2.5rem + calc(var(--bs-border-width) * 2));
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-floating .searchable-select-container .search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(244, 122, 33, 0.1);
  outline: none;
}

.form-floating .searchable-select-container .search-input:disabled {
  background-color: var(--accent-color);
  cursor: not-allowed;
  opacity: 0.7;
  color: var(--text-light);
}

/* Completely hide the native select element - More aggressive */
.form-floating .searchable-select-container .form-select,
.form-floating .searchable-select-container select {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none !important;
  clip: rect(0, 0, 0, 0) !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Hide loading options in native select */
.form-floating .searchable-select-container .loading-option {
  display: none !important;
}

.form-floating .form-control,
.form-floating .form-select {
  height: 32px;
  padding: 0.375rem 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px; /* Consistent font size */
  transition: all 0.3s ease;
  background: var(--white);
  min-height: calc(2.5rem + calc(var(--bs-border-width) * 2));
}

.form-floating .form-control:focus,
.form-floating .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(244, 122, 33, 0.1);
  outline: none;
}

.form-floating label {
  position: absolute;
  top: 0;
  left: 0.75rem;
  height: 100%;
  padding: 0.375rem 0;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
  color: var(--text-light);
  font-size: 16px; /* Consistent font size */
}

.form-floating label::after {
  content: unset !important;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label,
.form-floating .form-select:focus ~ label,
.form-floating .form-select:not([value=""]) ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.radio-item,
.checkbox-item {
  position: relative;
}

.radio-item input[type="radio"],
.checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.radio-item label,
.checkbox-item label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--white);
  font-weight: 500;
  min-height: 32px;
  font-size: 16px; /* Consistent font size */
  position: relative;
}

.radio-item label:hover,
.checkbox-item label:hover {
  border-color: var(--primary-color);
  background: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.radio-item input[type="radio"]:checked + label,
.checkbox-item input[type="checkbox"]:checked + label {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.radio-item label i,
.checkbox-item label i {
  font-size: 0.9rem;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.radio-item input[type="radio"]:checked + label i,
.checkbox-item input[type="checkbox"]:checked + label i {
  color: var(--white);
}

/* Ensure proper radio button behavior */
.radio-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

/* WhatsApp specific radio button styles */
.whatsapp-radio-group {
  gap: 0.5rem;
  display: flex;
  margin: 0% 0% 2% 0%;
  justify-content: flex-start;
}

.whatsapp-radio-item {
  flex: 0 0 auto;
}

.whatsapp-radio-item
  input[type="radio"][name="whatsappAvailable"]:checked
  + label {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  padding: 0rem 0.5rem;
  min-height: 30px;
  font-size: 0.75rem;
}

.whatsapp-radio-item
  input[type="radio"][name="whatsappAvailable"]:checked
  + label
  i {
  color: var(--white);
  font-size: 0.75rem;
}

/* Ensure only one radio button is selected */
.whatsapp-radio-item
  input[type="radio"][name="whatsappAvailable"]:not(:checked)
  + label {
  border-color: var(--border-color);
  background: var(--white);
  color: var(--text-color);
  transform: none;
  box-shadow: none;
  padding: 0rem 0.5rem;
  min-height: 30px;
  font-size: 0.75rem;
}

.whatsapp-radio-item
  input[type="radio"][name="whatsappAvailable"]:not(:checked)
  + label
  i {
  color: var(--text-light);
  font-size: 0.75rem;
}

/* Prevent multiple selections */
.whatsapp-radio-item
  input[type="radio"][name="whatsappAvailable"]:focus
  + label {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Gender radio buttons styling */
.radio-item input[type="radio"][name="gender"]:checked + label {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.radio-item input[type="radio"][name="gender"]:checked + label i {
  color: var(--white);
}

/* Household Income radio buttons styling */
.radio-item input[type="radio"][name="householdIncome"]:checked + label {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.radio-item input[type="radio"][name="householdIncome"]:checked + label i {
  color: var(--white);
}

/* Household Income dropdown styling */
.form-floating .form-select {
  height: 32px;
  padding: 0.375rem 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px; /* Minimum 16px to prevent iPhone zoom */
  transition: all 0.3s ease;
  background: var(--white);
  min-height: calc(2.5rem + calc(var(--bs-border-width) * 2));
}

.form-floating .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(244, 122, 33, 0.1);
  outline: none;
}

.form-floating .form-select:focus ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Ensure proper spacing and alignment */
#whatsappQuestionField .radio-item label {
  justify-content: center;
  text-align: center;
}

/* Submit Section */
.submit-section {
  text-align: center;
  padding: 0.75rem 0;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--border-color);
}

.btn-outline-secondary:hover {
  background: var(--accent-color);
  border-color: var(--text-light);
  color: var(--text-color);
}

.btn-success {
  background: var(--success-color);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  font-size: 1.1rem;
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.submit-note {
  margin-top: 1rem;
  color: var(--text-light);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-note i {
  color: var(--success-color);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.loading-content {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.loading-content p {
  margin: 0;
  color: var(--text-light);
  font-weight: 500;
}

/* Success Modal */
.success-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 1rem;
}

/* Error Modal */
.error-icon {
  font-size: 4rem;
  color: var(--error-color);
  margin-bottom: 1rem;
}

/* SVA Image Camera Styles */
.sva-image-container {
  text-align: center;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 2px dashed #dee2e6;
}

.camera-preview {
  margin-bottom: 1rem;
}

.image-preview {
  margin-bottom: 1rem;
}

.camera-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.camera-controls .btn {
  font-size: 14px;
  padding: 0.5rem 1rem;
}

#video {
  border: 2px solid #dee2e6;
  background: #000;
  max-height: 300px; /* Reduce camera height */
  width: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror the video for selfie effect */
}

#capturedImage {
  border: 2px solid #28a745;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-height: 300px; /* Reduce captured image height */
  width: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror the captured image for selfie effect */
}

/* Camera button states */
.camera-controls .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading state for camera */
.camera-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #6c757d;
}

.camera-loading .spinner-border {
  margin-right: 0.5rem;
}

/* Notification alerts for camera uploads */
.alert {
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.3s ease-out;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-left: 4px solid #10b981;
}

.alert-danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

.alert .btn-close {
  padding: 0.25rem;
  margin: 0;
  font-size: 0.75rem;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* WhatsApp Question Field */
#whatsappQuestionField {
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

#whatsappQuestionField.show {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

/* WhatsApp Number Field */
#whatsappNumberField {
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

#whatsappNumberField.show {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

/* Form Validation */
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--error-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: var(--success-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.error-message {
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.error-message i {
  font-size: 1rem;
}

.whatsapp-radio-group {
  width: 50%;
}

.terms-check-input {
  float: unset !important;
  margin-left: 0px !important;
}

/* Form disabled message */
#formDisabledMessage {
  margin: 1rem 0;
  padding: 0.2rem;
  color: #475569;
  font-weight: 500;
  font-size: 0.8rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid #cbd5e1;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

#formDisabledMessage i {
  font-size: 0.8rem;
  color: var(--primary-color);
}

/* Success Modal Reference IDs */
#referenceIds .alert {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  margin-bottom: 0;
}

#referenceIds h6 {
  color: var(--text-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

#referenceIds .text-muted {
  color: var(--text-light) !important;
  font-size: 0.75rem;
  font-weight: 500;
}

#referenceIds strong {
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 600;
  word-break: break-all;
}

#referenceIds .copy-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

#referenceIds .copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

#referenceIds .copy-btn.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
  color: white;
}

#referenceIds .d-flex {
  gap: 0.5rem;
}

#warningMessage {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

#warningMessage .text-warning {
  color: var(--warning-color) !important;
  font-size: 0.75rem;
}

/* Success Modal Responsive */
@media (max-width: 767.98px) {
  #referenceIds .row {
    flex-direction: column;
  }

  #referenceIds .col-md-6 {
    margin-bottom: 0.5rem;
  }

  #referenceIds .col-md-6:last-child {
    margin-bottom: 0;
  }
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .main-header {
    padding: 1.25rem 0;
  }

  .header-content {
    gap: 1.25rem;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .site-title i {
    font-size: 1.3rem;
  }

  .ceyone-logo {
    padding: 0.875rem;
  }

  .logo-image {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 767.98px) {
  .main-header {
    padding: 0.5rem 0;
  }

  .header-content {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .header-left {
    order: 2;
    width: 100%;
    text-align: center;
  }

  .header-right {
    order: 1;
    width: 100%;
    text-align: center;
  }

  .site-title {
    font-size: 1.4rem;
    justify-content: center;
  }

  .site-title i {
    font-size: 1.2rem;
  }

  .ceyone-logo {
    justify-content: center;
    max-width: 180px;
    margin: 0 auto;
    padding: 1rem;
  }

  .logo-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }

  /* Mobile 2-column layout for specific sections */
  .radio-group,
  .checkbox-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
  }

  /* Ensure proper sizing for mobile 2-column layout */
  .radio-item label,
  .checkbox-item label {
    padding: 0.25rem;
    min-height: 28px;
    font-size: 0.7rem;
  }

  /* Specific sections that should be 2-column on mobile */
  .form-section .radio-group,
  .form-section .checkbox-group {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Adjust form controls for mobile */
  .form-floating .form-control,
  .form-floating .form-select {
    height: 28px;
    padding: 0.25rem 0.5rem;
  }
}

/* Disabled states */
.form-control:disabled,
.form-select:disabled {
  background-color: var(--accent-color);
  cursor: not-allowed;
  opacity: 0.7;
  color: var(--text-light);
  pointer-events: none;
}

/* Disabled checkboxes and radio buttons - prevent any interaction */
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  cursor: not-allowed;
  pointer-events: none;
}

/* Disabled form elements should not trigger any events */
input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  pointer-events: none;
  user-select: none;
}

/* Prevent any interaction with disabled form elements */
input:disabled + label,
select:disabled + label,
textarea:disabled + label {
  pointer-events: none;
  cursor: not-allowed;
}

/* Price Range specific disabled styling */
#priceRange:disabled {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
  font-style: italic;
}

#priceRange:disabled::placeholder {
  color: #6c757d;
  font-style: italic;
}

/* Focus styles for accessibility */
.form-control:focus-visible,
.form-select:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Additional mobile improvements for very small screens */
@media (max-width: 480px) {
  .ceyone-logo {
    max-width: 260px;
    padding: 0.25rem;
    gap: 0.375rem;
  }

  .logo-image {
    width: 28px;
    height: 28px;
  }

  .site-title {
    font-size: 1rem;
  }

  /* Extra small screen improvements */
  .form-card {
    padding: 1rem;
    margin: 0.25rem 0;
    border-radius: 8px;
  }

  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .terms-check {
    padding: 0.375rem 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .terms-check .form-check-label {
    font-size: 0.75em !important;
  }

  .terms-check .form-check-input {
    width: 14px;
    height: 14px;
  }

  .form-floating .form-control,
  .form-floating .form-select {
    height: 32px; /* Keep consistent height */
    padding: 0.375rem 0.75rem;
    font-size: 16px; /* Keep consistent font size */
  }

  /* Maintain 2-column layout on very small screens */
  .radio-group,
  .checkbox-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.2rem;
  }

  .radio-item label,
  .checkbox-item label {
    padding: 0.25rem; /* Slightly smaller padding for small screens */
    min-height: 32px; /* Keep consistent height */
    font-size: 16px; /* Keep consistent font size */
  }
}

/* Ensure logo container doesn't overflow */
.ceyone-logo {
  overflow: hidden;
  word-wrap: break-word;
}

/* Choices.js Custom Styling - Fixed for no double scrollbars */
.searchable-select-choices {
  margin-bottom: 0;
  width: 100%;
}

.searchable-select-choices .choices__inner {
  background-color: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  min-height: 32px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  font-size: 16px;
  overflow: hidden !important; /* Prevent internal scrollbars */
}

.searchable-select-choices.is-focused .choices__inner {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(244, 122, 33, 0.1);
}

.searchable-select-choices .choices__input {
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  color: var(--text-color);
  height: auto;
  min-height: auto;
  overflow: hidden !important; /* Prevent input scrollbars */
}

.searchable-select-choices .choices__input::placeholder {
  color: var(--text-light);
  opacity: 1;
}

.searchable-select-choices .choices__list--single {
  padding: 0;
  height: auto;
  min-height: auto;
  overflow: hidden !important; /* Prevent single list scrollbars */
}

.searchable-select-choices .choices__item--choice {
  padding: 0.375rem 0.75rem;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
  font-size: 16px;
}

.searchable-select-choices .choices__item--choice:hover {
  background-color: var(--accent-color);
}

.searchable-select-choices .choices__item--choice.is-highlighted {
  background-color: var(--primary-color);
  color: var(--white);
}

.searchable-select-choices .choices__list--dropdown {
  background-color: var(--white);
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  margin-top: 4px;
  overflow-y: auto !important; /* Only dropdown should scroll */
  overflow-x: hidden !important;
  width: 100%;
  z-index: 1000;
}

.searchable-select-choices .choices__list--dropdown .choices__item--choice {
  border-bottom: 1px solid var(--border-color);
  padding: 0.375rem 0.75rem;
}

.searchable-select-choices
  .choices__list--dropdown
  .choices__item--choice:last-child {
  border-bottom: none;
}

.searchable-select-choices .choices__placeholder {
  color: var(--text-light);
  opacity: 1;
  font-size: 16px;
}

.searchable-select-choices.is-disabled .choices__inner {
  background-color: var(--accent-color);
  opacity: 0.7;
  cursor: not-allowed;
  color: var(--text-light);
}

.searchable-select-choices.is-disabled .choices__input {
  cursor: not-allowed;
  color: var(--text-light);
}

/* Single custom scrollbar for dropdown only */
.searchable-select-choices .choices__list--dropdown::-webkit-scrollbar {
  width: 6px;
}

.searchable-select-choices .choices__list--dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.searchable-select-choices .choices__list--dropdown::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.searchable-select-choices
  .choices__list--dropdown::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Firefox scrollbar */
.searchable-select-choices .choices__list--dropdown {
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Remove old searchable-select-container styles */
.searchable-select-container {
  position: relative;
  width: 100%;
  margin-bottom: 0;
}

/* Hide loading options in native select */
.searchable-select-choices .loading-option {
  display: none !important;
}

/* Ensure no double scrollbars anywhere */
.searchable-select-choices * {
  overflow-x: hidden !important;
}

/* Force hide scrollbars on all elements except dropdown */
.searchable-select-choices .choices__inner,
.searchable-select-choices .choices__input,
.searchable-select-choices .choices__list--single,
.searchable-select-choices .choices__list--multiple {
  overflow: hidden !important;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
}

.searchable-select-choices .choices__inner::-webkit-scrollbar,
.searchable-select-choices .choices__input::-webkit-scrollbar,
.searchable-select-choices .choices__list--single::-webkit-scrollbar,
.searchable-select-choices .choices__list--multiple::-webkit-scrollbar {
  display: none !important; /* Chrome, Safari, Opera */
}

.choices__list--dropdown .choices__list,
.choices__list[aria-expanded] .choices__list {
  max-height: 120px !important;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background-color: var(--primary-color) !important;
}

.choices[data-type*="select-one"] .choices__inner {
  padding-bottom: 0;
}

/* Choices.js Error State */
.searchable-select-choices.is-invalid .choices__inner {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.searchable-select-choices.is-invalid .choices__input {
  color: var(--error-color);
}

/* Error message styling */
.error-message {
  font-size: 14px;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.error-message i {
  font-size: 12px;
}

/* Location Permission Modal - Removed as we now use browser's native prompt */
