/* ----------------- Hero Section ----------------- */
/* Hero Section - Fully Responsive */
.hero .list-your-space {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 680px;
  position: relative;
  overflow: hidden;
  background-image: url(public/assets/img/path-to-hero-bg.jpg);
  padding: 100px 0px 120px;
}

.hero-content .section-title {
  margin-top: 92px;
}

.hero-content h1 {
  font-family: "Newsreader" !important;
  font-style: normal;
  font-weight: 400;
  font-size: 129px;
  color: #fff;
  /* white text on hero bg */
  line-height: 1.2;
}

.hero-content h1 .fst-italic {
  font-family: "Newsreader" !important;

  font-style: italic;
  color: #fff;
}

/* ----------------- Info Section ----------------- */
.info-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.info-heading {
  font-family: "Apoc Normal" !important;
  font-weight: 400;
  font-style: normal;
  font-size: 48px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: center;
  color: #587b7f;
  margin-bottom: 30px;
}

.info-text {
  font-family: "DM Sans" !important;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-align: center;
  color: #333333;
  margin-bottom: 15px;
}

.info-text:last-child {
  margin-bottom: 0;
}

.info-container-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ----------------- Workspace Form Section ----------------- */
.workspace-form-section {
  /* background-color: #F5F5F5; */
  padding: 60px 20px;
}

.workspace-heading {
  font-family: "Apoc Normal" !important;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #587b7f;
  margin-bottom: 40px;
}

.pricing-heading {
  font-family: "Apoc Normal" !important;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #587b7f;
  margin-top: 50px;
  margin-bottom: 40px;
}

.amenities-heading,
.workspace-details-heading,
.media-content-heading,
.contributions-heading,
.promotion-heading,
.additional-info-heading {
  font-family: "Apoc Normal" !important;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #587b7f;
  margin-top: 50px;
  margin-bottom: 40px;
}

.section-description {
  font-family: "DM Sans" !important;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  margin-bottom: 20px;
}

.contribution-label {
  font-family: "DM Sans" !important;
  font-weight: 400;
  font-style: normal;
  /* Correct value */
  font-size: 17px;
  line-height: 1.2;
  /* Same as 120% */
  letter-spacing: -0.02em;
  /* More consistent than percentage */

  margin-bottom: 10px;
  display: block;
}

.contribution-description {
  font-family: "DM Sans" !important;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 15px;
}

.contribution-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 15px;
}

.submit-btn {
  width: 100%;
  max-width: 250px;
  padding: 15px 30px;
  font-family: "DM Sans" !important;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background-color: #587b7f;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 30px;
}

.submit-btn:hover {
  background-color: #466266;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.terms-checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.terms-checkbox label {
  font-family: "DM Sans" !important;
  /* fallback included */
  font-weight: 400;
  /* Regular weight */
  font-style: normal;
  /* Regular style */
  font-size: 14px;
  /* Font size */
  line-height: 1.2;
  /* 120% line-height */
  letter-spacing: -0.02em;
  /* -2% spacing converted to em */
  cursor: pointer;
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

/* =================== AMENITIES CSS SECTION START =================== */
/* Amenities Checkboxes */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.amenity-item-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.amenity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid black;
  padding: 20px 10px;
  text-align: center;
  background-color: #ffffff;
  height: 135px;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
}

.amenity-item:hover {
  background-color: #f5f5f5;
  border-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.amenity-item input[type="checkbox"] {
  display: none;
}

.amenity-item.checked {
  background-color: #587b7f;
  color: #ffffff;
  border-color: #587b7f;
}

.amenity-item.checked:hover {
  background-color: #466266;
  border-color: #466266;
}

.amenity-icon {
  width: auto;
  height: 40px;
  margin-bottom: 5px;
  stroke: currentColor;
}

.amenity-item.checked .amenity-icon {
  stroke: #ffffff;
}

.amenity-label {
  font-family: "DM Sans" !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #333;
  text-align: center;
}

.amenity-item.checked .amenity-label {
  color: #ffffff;
}

/* Controls Below Card */
.amenity-controls {
  display: none;
  width: 100%;
  margin-top: 10px;
  background: transparent;
}

.amenity-item-wrapper.selected .amenity-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counter-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 120px;
}

.counter-btn {
  width: 28px;
  height: 28px;
  border: 1px solid black;
  background-color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "DM Sans" !important;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.counter-btn:hover {
  background-color: #f5f5f5;
  border-color: #333;
}

.counter-btn:active {
  background-color: #eeeeee;
}

.counter-value {
  font-family: "DM Sans" !important;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  min-width: 35px;
  text-align: center;
}

.amenity-toggle-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 120px;
}

.amenity-toggle-btn {
  border: 1px solid black;
  background-color: #ffffff;
  font-family: "DM Sans" !important;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.2s ease;
  color: #666;
  text-transform: capitalize;
  width: 100%;
}

.amenity-toggle-btn:hover {
  background-color: #f5f5f5;
  border-color: #333;
  color: #333;
}

.amenity-toggle-btn.active {
  background-color: #587b7f;
  color: #ffffff;
  border-color: #587b7f;
}

.amenity-toggle-btn.active:hover {
  background-color: #466266;
  border-color: #466266;
}

/* =================== AMENITIES CSS SECTION END =================== */

.form-label {
  font-family: "DM Sans" !important;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #333;
  margin-bottom: 8px;
  display: block;
}

.form-input {
  width: 100%;
  padding: 7px 16px;
  font-family: "DM Sans" !important;
  font-size: 16px;
  border: 1px solid black;
  border-radius: 0;
  background-color: #ffffff;
  transition: border-color 0.3s ease;
}

textarea.form-input {
  max-width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: #587b7f;
}

.form-group {
  margin-bottom: 0;
}

.form-container-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ----------------- Responsive ----------------- */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .info-heading {
    font-size: 38px;
  }

  .info-text {
    font-size: 15px;
  }

  .info-section {
    padding: 50px 20px;
  }

  .workspace-heading {
    font-size: 32px;
  }

  .pricing-heading {
    font-size: 32px;
  }

  .amenities-heading,
  .workspace-details-heading,
  .media-content-heading,
  .contributions-heading,
  .promotion-heading,
  .additional-info-heading {
    font-size: 32px;
  }

  .amenities-grid {
    grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
    gap: 10px;
  }

  .amenity-item {
    padding: 18px 8px;
    height: 125px;
  }

  .amenity-icon {
    width: auto;
    height: 32px;
    margin-bottom: 10px;
  }

  .amenity-label {
    font-size: 12px;
  }

  .counter-controls,
  .amenity-toggle-options {
    max-width: 110px;
  }
}

@media (max-width: 768px) {
  .workspace-form-section {
    padding: 40px 15px;
  }

  .workspace-heading {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .pricing-heading {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .amenities-heading,
  .workspace-details-heading,
  .media-content-heading,
  .contributions-heading,
  .promotion-heading,
  .additional-info-heading {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .form-label {
    font-size: 15px;
  }

  .form-input {
    font-size: 15px;
    padding: 7px 14px;
  }

  .form-container-wrapper {
    padding: 0 10px;
  }

  .amenities-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }

  .amenity-item {
    padding: 16px 8px;
    height: 120px;
  }

  .amenity-icon {
    width: auto;
    height: 30px;
    margin-bottom: 8px;
  }

  .amenity-label {
    font-size: 11px;
    line-height: 1.2;
  }

  .counter-controls,
  .amenity-toggle-options {
    max-width: 100px;
  }

  .counter-btn {
    width: 30px;
    height: 30px;
    font-size: 17px;
    border-color: black;
  }

  .counter-value {
    font-size: 15px;
    min-width: 35px;
  }

  .amenity-toggle-btn {
    /* padding: 7px 14px; */
    font-size: 10px;
  }
}

@media (max-width: 576px) {
  .hero.upload-your-workspace {
    height: 500px;
    padding: 0 15px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .info-heading {
    font-size: 32px;
    margin-bottom: 25px;
  }

  .info-text {
    font-size: 15px;
    line-height: 1.5;
  }

  .info-section {
    padding: 40px 15px;
  }

  .workspace-form-section {
    padding: 30px 15px;
  }

  .workspace-heading {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .pricing-heading {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 24px;
  }

  .amenities-heading,
  .workspace-details-heading,
  .media-content-heading,
  .contributions-heading,
  .promotion-heading,
  .additional-info-heading {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 24px;
  }

  .form-label {
    font-size: 14px;
  }

  .form-input {
    font-size: 14px;
    padding: 7px 12px;
  }

  .form-container-wrapper {
    padding: 0 5px;
  }

  .amenities-grid {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 10px;
  }

  .amenity-item {
    padding: 14px 6px;
    height: 115px;
  }

  .amenity-icon {
    width: auto;
    height: 28px;
    margin-bottom: 6px;
  }

  .amenity-label {
    font-size: 10px;
    line-height: 1.1;
  }

  .counter-controls,
  .amenity-toggle-options {
    max-width: 90px;
  }

  .counter-btn {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .counter-value {
    font-size: 14px;
    min-width: 30px;
  }

  .amenity-toggle-btn {
    padding: 5px 8px;
    font-size: 10px;
  }

  .contribution-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .submit-btn {
    max-width: 100%;
    font-size: 14px;
    padding: 12px 20px;
    margin-top: 20px;
  }

  .terms-checkbox {
    margin-top: 20px;
    margin-bottom: 15px;
  }

  .terms-checkbox label {
    font-size: 13px;
  }
}

.rating-bar-container {
  margin-top: 8px;
  position: relative;
  padding-top: 10px;
}

.rating-bar {
  position: relative;
  display: flex;
  height: 10px;
  width: 100%;
  border-radius: 0;
  overflow: visible;
}

.segment {
  flex: 1;
}

.bad {
  background: #ff7e7e;
}

.poor {
  background: #ffad7e;
}

.average {
  background: #fbeb77;
}

.good {
  background: #a7e9ab;
}

.excellent {
  background: #63a755;
}

.marker {
  position: absolute;
  top: 10px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #000;
  transform: translateX(-50%);
  z-index: 10;
}

.rating-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.rating-labels span {
  font-family: "DM Sans" !important;
  font-weight: 400;
  font-style: normal;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  flex: 1;
  text-align: center;
}

/* 🎨 UNIVERSAL SELECT2 STYLING */

/* Common box style */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 42px !important;
  border: 1px solid black !important;
  border-radius: 0px !important;
  background-color: #fff !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  padding: 4px 10px !important;
  transition: all 0.2s ease-in-out !important;
}

/* Focus / Hover effect */
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--single:hover,
.select2-container--default .select2-selection--multiple:focus,
.select2-container--default .select2-selection--multiple:hover {
  border-color: #000 !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08) !important;
}

/* Placeholder text */
.select2-container--default .select2-selection__placeholder {
  color: #888 !important;
}

/* Text inside */
.select2-container--default .select2-selection__rendered {
  color: #000 !important;
  padding-left: 4px !important;
}

/* Arrow icon */
.select2-container--default .select2-selection__arrow {
  top: 8px !important;
  right: 10px !important;
}

/* Dropdown menu */
.select2-dropdown {
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Dropdown items */
.select2-container--default .select2-results__option {
  padding: 8px 12px !important;
  font-size: 14px !important;
  color: #333 !important;
}

/* Hover effect on items */
.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #587b7f !important;
  color: #fff !important;
}

/* Multiple select tags style */
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background-color: #587b7f !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 3px 8px 3px 24px !important;
  /* extra left padding for remove icon */
  border: none !important;
  margin-top: 4px !important;
  position: relative !important;
}

/* Remove (×) button — FIXED */
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove {
  position: absolute !important;
  left: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #fff !important;
  font-weight: bold !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: color 0.2s ease !important;
}

/* Hover effect for remove button */
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove:hover {
  color: #000 !important;
}

 /* Hero Section - Fully Responsive */
    .hero .list-your-space {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        height: 680px;
        position: relative;
        overflow: hidden;
        background-image: url(public/assets/img/path-to-hero-bg.jpg);
        padding: 100px 0px 120px;
    }

    .hero-content .section-title {
        margin-top: 92px;
    }

    /* Validation Error Styles */
    .error-message {
        color: #dc3545;
        font-family: "DM Sans" !important;
        font-size: 13px;
        margin-top: 5px;
        display: block;
        font-weight: 500;
        line-height: 1.4;
    }
    
    .form-input.error, 
    .form-input.is-invalid,
    .form-control.error, 
    .form-control.is-invalid,
    .form-select.error,
    .form-select.is-invalid {
        border-color: #dc3545 !important;
        background-color: #fff5f5 !important;
    }
    
    .form-input.is-invalid:focus,
    .form-control.is-invalid:focus,
    .form-select.is-invalid:focus {
        border-color: #dc3545 !important;
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
        outline: none !important;
    }
    
    .select2-container--default .select2-selection--single.error,
    .select2-container--default .select2-selection--multiple.error,
    .select2-container--default .select2-selection--single.is-invalid,
    .select2-container--default .select2-selection--multiple.is-invalid {
        border-color: #dc3545 !important;
        background-color: #fff5f5 !important;
    }
    
    /* Error styling for select2 when parent has is-invalid class */
    .select2.is-invalid + .select2-container--default .select2-selection--single,
    .select2.is-invalid + .select2-container--default .select2-selection--multiple,
    .is-invalid.select2 + .select2-container--default .select2-selection--single,
    .is-invalid.select2 + .select2-container--default .select2-selection--multiple {
        border-color: #dc3545 !important;
        background-color: #fff5f5 !important;
    }
    
    /* Clear error styling when field is valid */
    .select2:not(.is-invalid):not(.error) + .select2-container--default .select2-selection--single,
    .select2:not(.is-invalid):not(.error) + .select2-container--default .select2-selection--multiple {
        border-color: black !important;
        background-color: #fff !important;
    }

    .amenity-controls {
        display: none;
    }
