body {
  padding-top: 150px !important;
}
@media (max-width: 991.98px) {
  body {
    padding-top: 120px !important;
  }
}
@media (max-width: 767.98px) {
  body {
    padding-top: 100px !important;
  }
}
@media (max-width: 575.98px) {
  body {
    padding-top: 85px !important;
  }
}

/* Hero image overlay and text styles */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(27, 34, 20, 0.7),
    rgba(38, 47, 27, 0.7)
  );
  z-index: 1;
}
.hero-text {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border-radius: 1rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}
@media (max-width: 991.98px) {
  .hero-text {
    padding: 2rem 1rem;
    font-size: 1.1rem;
    max-width: 95vw;
    text-align: center;
  }
}
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 220px;
  }
  .hero-text {
    padding: 1.2rem 0.5rem;
    font-size: 1rem;
    border-radius: 0.7rem;
  }
}
/* ===== Base & Utility Styles ===== */
body {
  background-color: white;
  min-height: 100vh;
  color: #212529;
}

.constrained-text {
  max-width: 100%;
  word-break: normal;
  overflow-wrap: break-word;
}

/* ===== Form Styles ===== */
.expandable-square {
  background: linear-gradient(135deg, #1b2214, #262f1b);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 150px auto 100px;
  max-width: 800px;
  color: #f8f9fa;
}

.thank-you-message {
  display: none;
  text-align: center;
  padding: 2rem;
  color: #212529;
}

.form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.upload-area {
  border: 2px dashed #dee2e6;
  border-radius: 5px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 15px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #f8f9fa;
}

.upload-area:hover {
  border-color: #0d6efd;
}

.expandable-square .form-control,
.expandable-square .form-select {
  background-color: rgba(255, 255, 255, 0.9);
  color: #212529;
}

.expandable-square .form-check-label,
.expandable-square #consent + label {
  background-color: transparent !important;
  color: white !important;
}

/* ===== Service Items ===== */
.service-item {
  position: relative;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  padding: 20px;
  margin-bottom: 20px;
  padding-bottom: 60px;
}

.service-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.service-types-grid {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  min-height: 180px;
  margin-bottom: 15px;
  scrollbar-width: thin;
  scrollbar-color: #d4af37 rgba(255, 255, 255, 0.1);
}

.service-types-grid .form-check {
  margin-bottom: 10px;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.service-types-grid .form-check:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.service-types-grid::-webkit-scrollbar {
  width: 8px;
}

.service-types-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.service-types-grid::-webkit-scrollbar-thumb {
  background-color: #d4af37;
  border-radius: 4px;
}

.remove-service {
  position: absolute;
  bottom: 15px;
  right: 15px;
  transition: all 0.2s ease;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 4px;
  border: 1px solid #dc3545;
  background-color: transparent;
  color: #dc3545;
}

.remove-service:hover {
  transform: scale(1.05);
  background-color: #dc3545;
  color: white;
}

#addServiceBtn {
  margin-top: 10px;
  border: 1px solid #d4af37;
  color: #d4af37;
  transition: all 0.3s ease;
}

#addServiceBtn:hover {
  background-color: rgba(212, 175, 55, 0.1);
}

/* Read-only total area field */
#area {
  background-color: rgba(255, 255, 255, 0.7) !important;
  font-weight: bold;
}

/* Spacing for other input fields */
#roomTypeOtherContainer1,
[id^="roomTypeOtherContainer"] {
  margin-top: 10px;
}

#serviceOtherContainer1,
[id^="serviceOtherContainer"] {
  margin-top: 5px;
}

/* Gold focus color */
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus,
.upload-area:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 0.25rem rgba(255, 196, 0, 0.25);
}

/* File input focus */
#fileInput:focus + .upload-area {
  border-color: #d4af37;
  box-shadow: 0 0 0 0.25rem rgba(245, 187, 0, 0.25);
}

.upload-area.dragover {
  border-color: #d4af37;
  background-color: rgba(212, 175, 55, 0.1);
}

/* File Preview Grid */
#filePreview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.file-preview-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

.file-preview-item:hover {
  transform: translateY(-3px);
}

.file-thumbnail {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.file-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-file {
  position: absolute;
  top: 5px;
  right: 5px;
  opacity: 0;
  transition: opacity 0.2s;
}

.file-preview-item:hover .remove-file {
  opacity: 1;
}

.file-info {
  padding: 10px;
  font-size: 0.8rem;
}

.file-info span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.file-info small {
  color: #d4af37;
  font-weight: bold;
}

/* Autocomplete dropdown styles */
.autocomplete-dropdown {
  position: absolute;
  z-index: 1000;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  display: none;
}

/* Responsive tweaks for forms */
@media (max-width: 991.98px) {
  .expandable-square {
    margin: 100px 16px 60px;
    padding: 1.5rem;
    max-width: 720px;
  }
}

@media (max-width: 767.98px) {
  .expandable-square {
    margin: 60px 12px 40px;
    padding: 1rem;
    border-radius: 14px;
    max-width: 95%;
  }

  .upload-area {
    padding: 16px;
  }

  #filePreview {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

.autocomplete-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: #212529;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background-color: #f8f9fa;
  color: #0d6efd;
}

/* Make address input container relative for dropdown positioning */
#address {
  position: relative;
}

/* Readonly fields styling */
input[readonly] {
  background-color: #e9ecef !important;
  opacity: 1;
}
