* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f7fa;
  color: #2c3e50;
  height: 100%;
  overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: white;
}

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

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

.loading-screen p {
  font-size: 16px;
  font-weight: 500;
}

/* Container */
.container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  min-height: 100vh;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
  position: relative;
  height: 180px;
  overflow: hidden;
  margin-bottom: 60px;
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.header-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
}

.profile-section {
  text-align: center;
}

.profile-picture {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  background: white;
}

.display-name {
  margin-top: 12px;
  color: white;
  font-size: 20px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Container */
.form-container {
  padding: 0 24px 40px;
}

.form-title {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
  text-align: center;
}

.form-subtitle {
  font-size: 14px;
  color: #7f8c8d;
  text-align: center;
  margin-bottom: 32px;
}

/* Form Sections */
.form-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #667eea;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

#otherRankGroup {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #34495e;
  margin-bottom: 8px;
}

.form-label.required::after {
  content: ' *';
  color: #e74c3c;
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  background: white;
  color: #2c3e50;
  transition: all 0.3s ease;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input.readonly {
  background: #f8f9fa;
  color: #7f8c8d;
  cursor: not-allowed;
}

.form-input::placeholder {
  color: #bdc3c7;
}

/* Textarea styling */
.form-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

/* Helper text */
.form-helper-text {
  font-size: 13px;
  color: #7f8c8d;
  margin: 6px 0 10px 0;
}

/* Location Button */
.location-button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: white;
  border: 2px dashed #667eea;
  border-radius: 10px;
  color: #667eea;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.location-button:hover {
  background: rgba(102, 126, 234, 0.05);
  border-color: #764ba2;
  color: #764ba2;
}

/* Coordinate Display */
.coordinate-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.coordinate-input {
  text-align: center;
  font-weight: 500;
}

/* File Input */
.file-input {
  padding: 10px;
  cursor: pointer;
}

.file-input::file-selector-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 12px;
}

/* File Preview */
.file-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.file-preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e1e8ed;
  aspect-ratio: 1;
}

.file-preview-item img,
.file-preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-preview-item .file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #f8f9fa;
  font-size: 40px;
  flex-direction: column;
  padding: 8px;
}

.file-preview-item .file-name {
  font-size: 10px;
  color: #657786;
  text-align: center;
  margin-top: 4px;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 28px;
}

.file-preview-item .remove-file {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(231, 76, 60, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Location Modal */
.location-modal .modal-content {
  max-width: 95%;
  width: 600px;
  padding: 0;
  max-height: 90vh;
}

.location-modal-content {
  display: flex;
  flex-direction: column;
  height: 600px;
  max-height: 80vh;
}

.location-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e1e8ed;
}

.location-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #2c3e50;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #7f8c8d;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-button:hover {
  background: #f8f9fa;
  color: #2c3e50;
}

.map-container {
  flex: 1;
  background: #e1e8ed;
  position: relative;
  min-height: 400px;
}

#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Leaflet Custom Marker */
.custom-marker {
  background: none;
  border: none;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.leaflet-popup-content {
  margin: 10px;
  font-family: inherit;
}

.map-info {
  margin: 10px;
}

.location-modal-footer {
  display: flex;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid #e1e8ed;
}

.secondary-button {
  flex: 1;
  padding: 12px;
  background: white;
  border: 2px solid #667eea;
  border-radius: 10px;
  color: #667eea;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-button:hover {
  background: rgba(102, 126, 234, 0.05);
}

.location-modal-footer .modal-button {
  flex: 1;
  margin: 0;
}

/* Select styling */
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2334495e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 40px;
  cursor: pointer;
}

/* Submit Button */
.submit-button {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  margin-top: 24px;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.submit-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.submit-button:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Confirm Scenario Button */
.confirm-scenario-btn {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.confirm-scenario-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.confirm-scenario-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.confirm-scenario-btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  max-width: 90%;
  width: 360px;
  animation: slideUp 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 50px;
  color: white;
  font-weight: bold;
}

.modal-content h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 12px;
  font-weight: 700;
}

.modal-content p {
  font-size: 16px;
  color: #7f8c8d;
  margin-bottom: 24px;
}

.modal-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Immigration Details Section */
.gender-input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.gender-input {
  display: flex;
  flex-direction: column;
}

/* Address Grid */
.address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.address-item {
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px) {
  .address-grid {
    grid-template-columns: 1fr;
  }
}

.form-sublabel {
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 6px;
  font-weight: 500;
}

.total-count {
  margin-top: 12px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 8px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #667eea;
}

.total-count span {
  font-size: 18px;
  font-weight: 700;
  color: #764ba2;
}

.nationality-grid,
.age-grid,
.work-permit-grid,
.age-group-grid {
  display: grid;
  gap: 20px;
  margin-top: 12px;
}

.nationality-item,
.age-item,
.work-permit-item,
.age-group-item {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.nationality-item:hover,
.age-item:hover,
.work-permit-item:hover,
.age-group-item:hover {
  border-color: #667eea;
  background: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.nationality-label,
.age-label,
.permit-label,
.age-group-label {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
  display: block;
}

.age-group-item input {
  width: 100%;
  margin-top: 8px;
}

.remark-input {
  margin-top: 10px;
  font-size: 14px;
  padding: 10px 14px;
}

.validation-warning {
  padding: 16px;
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 10px;
  color: #856404;
  font-weight: 600;
  text-align: center;
  margin-top: 20px;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* Add Item Container */
.add-item-container {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.add-item-container select {
  flex: 1;
}

.add-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.add-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.add-button:active {
  transform: translateY(0);
}

/* Added Items List */
.added-items-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.added-item {
  background: white;
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.added-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.added-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
}

.remove-item-btn {
  background: #e74c3c;
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.remove-item-btn:hover {
  background: #c0392b;
  transform: rotate(90deg);
}

.added-item-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.added-item-remark {
  margin-top: 8px;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
  .container {
    box-shadow: none;
  }

  .form-container {
    padding: 0 20px 32px;
  }

  .form-title {
    font-size: 24px;
  }

  .header {
    height: 160px;
    margin-bottom: 50px;
  }

  .profile-picture {
    width: 90px;
    height: 90px;
  }

  .display-name {
    font-size: 18px;
  }

  .section-title {
    font-size: 16px;
  }

  .form-input {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .submit-button {
    font-size: 16px;
    padding: 14px;
  }

  .modal-content {
    padding: 32px 24px;
  }
}

@media screen and (max-width: 400px) {
  .form-container {
    padding: 0 16px 24px;
  }

  .form-title {
    font-size: 22px;
  }

  .profile-picture {
    width: 80px;
    height: 80px;
  }
}

/* iOS Safe Area */
@supports (padding: max(0px)) {
  .form-container {
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }
}

/* Photo Upload Styling */
.photo-upload-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.file-input {
  display: none;
}

.photo-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 50px;
}

.photo-upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.photo-upload-btn:active {
  transform: translateY(0);
}

.photo-preview {
  position: relative;
  max-width: 200px;
  margin-top: 12px;
}

.preview-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  border: 3px solid #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
  object-fit: cover;
}

.remove-photo-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
  transition: all 0.3s ease;
}

.remove-photo-btn:hover {
  background: #ff3742;
  transform: scale(1.1);
}

.form-hint {
  font-size: 13px;
  color: #7f8c8d;
  margin-top: 6px;
  line-height: 1.4;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}
/* Room Type Grid - Accommodation Details */
.room-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.room-type-item {
  padding: 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.room-type-item:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

.room-type-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.room-type-header .form-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.room-type-header .checkbox-label {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.room-type-count {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 28px;
}

.room-type-count .form-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
}

.room-type-count .form-input:disabled {
  background: #f1f3f5;
  color: #adb5bd;
  cursor: not-allowed;
}

.room-type-count .form-input:not(:disabled) {
  background: white;
  border-color: #667eea;
}

.room-type-count .unit-label {
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .room-type-grid {
    grid-template-columns: 1fr;
  }
}

/* Bathroom Container - Accommodation Details */
.bathroom-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.bathroom-container:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.bathroom-count-section,
.bathroom-status-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bathroom-label {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  display: block;
}

.bathroom-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bathroom-input-group .form-input {
  flex: 0 0 120px;
  padding: 10px 14px;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
}

.bathroom-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-option {
  flex: 1;
  min-width: 140px;
  padding: 12px 16px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-option:hover {
  border-color: #667eea;
  background: #f8f9ff;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-label {
  color: #667eea;
  font-weight: 700;
}

.radio-option:has(input[type="radio"]:checked) {
  border-color: #667eea;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  box-shadow: 0 2px 12px rgba(102, 126, 234, 0.2);
}

.radio-label {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .bathroom-radio-group {
    flex-direction: column;
  }
  
  .radio-option {
    min-width: 100%;
  }
}

/* Environment Container - Accommodation Details */
.environment-container {
  margin-top: 12px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.environment-container:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.environment-radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.environment-option {
  position: relative;
  min-height: 80px;
}

.environment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.environment-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 80px;
}

.environment-label:hover {
  border-color: #667eea;
  background: #f8f9ff;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.environment-option input[type="radio"]:checked + .environment-label {
  border-color: #667eea;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  box-shadow: 0 2px 12px rgba(102, 126, 234, 0.2);
}

.environment-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.environment-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.environment-text {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
}

.environment-option input[type="radio"]:checked + .environment-label .environment-text {
  color: #667eea;
  font-weight: 700;
}

.environment-subtext {
  font-size: 12px;
  font-weight: 500;
  color: #6c757d;
  line-height: 1.4;
}

.environment-option input[type="radio"]:checked + .environment-label .environment-subtext {
  color: #495057;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .environment-radio-group {
    grid-template-columns: 1fr;
  }
}

/* Form Subsection - Immigration Details */
.form-subsection {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.form-subsection:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.subsection-title {
  font-size: 16px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subsection-title::before {
  content: "▶";
  font-size: 12px;
  color: #667eea;
}

.sub-input-group {
  margin-top: 8px;
}

.sub-input-group .form-sublabel {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 6px;
}

.sub-input-group .form-input {
  width: 100%;
}

/* Total Count Updates */
.total-count {
  margin-top: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #e8eaf6 0%, #f3e5f5 100%);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #5e35b1;
  text-align: center;
  border: 1px solid #d1c4e9;
}

.total-count span {
  font-size: 18px;
  font-weight: 700;
  color: #4527a0;
  margin: 0 4px;
}

/* Responsive Adjustments for Immigration Details */
@media (max-width: 768px) {
  .form-subsection {
    padding: 16px;
  }
  
  .subsection-title {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .form-subsection {
    padding: 14px;
    margin-bottom: 16px;
  }
  
  .subsection-title {
    font-size: 13px;
  }
}

/* Prevention Type Options - Radio Cards */
.prevention-type-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prevention-option {
  position: relative;
}

.prevention-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.prevention-label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.prevention-label:hover {
  border-color: #667eea;
  background: #f8f9ff;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.prevention-option input[type="radio"]:checked + .prevention-label {
  border-color: #667eea;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.prevention-option input[type="radio"]:checked + .prevention-label::before {
  content: "✓";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: #667eea;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.prevention-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.prevention-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.prevention-text {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
}

.prevention-option input[type="radio"]:checked + .prevention-label .prevention-text {
  color: #667eea;
  font-weight: 700;
}

.prevention-subtext {
  font-size: 13px;
  font-weight: 500;
  color: #6c757d;
  line-height: 1.4;
}

.prevention-option input[type="radio"]:checked + .prevention-label .prevention-subtext {
  color: #495057;
}

/* Responsive adjustments for prevention options */
@media (max-width: 480px) {
  .prevention-label {
    padding: 14px 16px;
  }
  
  .prevention-icon {
    font-size: 24px;
  }
  
  .prevention-text {
    font-size: 14px;
  }
  
  .prevention-subtext {
    font-size: 12px;
  }
}

