@import url('https://fonts.googleapis.com/css?family=IBM+Plex+Sans+Condensed:300,400,500,700');

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

body {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  background: #f4f5f9;
  color: #333;
}

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

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  padding: 0 15px;
}

/* Header */
header {
  background: #fff;
  padding: 15px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header img {
  height: 50px;
}

/* Hero with Carousel */
.bgImage {
  position: relative;
  height: 550px;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  height: 100%;
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
}

.full-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 2;
}

/* Original Search Form Styling */
.search-form-parent {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 90%;
  max-width: 800px;
}

.search-form {
  max-width: 750px;
  width: 100%;
  padding: 20px 18px;
  background-color: rgba(12, 12, 12, 0.8);
  border-radius: 0 0.643rem 0.643rem 0.643rem;
  color: #fff;
}

.search-form::before {
  position: absolute;
  left: 0;
  top: -35px;
  content: "";
  display: block;
  width: 100%;
  height: 35px;
  background: url('./assets/search-banner-title-bg.png') no-repeat left top;
  background-size: auto 100%;
}

.search-form .title {
  position: relative;
  top: -2px;
  margin-top: -26.576px;
}

.search-form .quote {
  font-size: 22px;
  padding: 0;
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.1;
  display: inline;
}

.search-form .quote.part-1 {
  color: #fff;
}

.search-form .quote.part-2 {
  color: #8bc350;
}

.search-form .row {
  margin-left: 0;
  margin-right: 0;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
}

.search-form .home-search-wrapper {
  display: flex;
  width: 100%;
  margin: 0;
}

.search-form .home-search-wrapper .icon-wrapper {
  width: 20%;
  float: left;
}

.search-form .home-search-wrapper .icon-wrapper,
.search-form .home-search-wrapper .input-wrapper {
  margin-bottom: 20px;
  margin-top: 10px;
}

.search-form .home-search-icon {
  display: block;
  width: 100%;
  min-width: 1px;
  height: 44px;
  margin: 0;
  padding: 12px;
  border: none;
  background-color: #2d598b;
  border-top-left-radius: 0.357rem;
  border-bottom-left-radius: 0.357rem;
  background-image: url('./assets/search-banner-button.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px;
  text-indent: -9999rem;
  cursor: not-allowed;
  opacity: 0.85;
}

.search-form .home-search-icon:hover {
  cursor: not-allowed;
}

.search-form .home-search-wrapper .input-wrapper {
  width: 80%;
  float: left;
}

.search-form .geosuggest {
  width: 100% !important;
  margin: 0;
}

.search-form .custom-geosuggest .geosuggest__input {
  height: 44px;
  outline: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  border: none;
  border-radius: 0;
  resize: none;
  font-size: 16px;
  line-height: 1.4;
  box-sizing: border-box;
  color: #252525;
}

.search-form .home-search-wrapper .btn-wrapper {
  width: 28%;
}

.search-form .home-search-submit-btn .btn {
  height: 44px;
  width: 100%;
}

.search-form .home-search-submit-btn .btn:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.search-form .button {
  color: #fff;
  padding: 2px 20px;
  border-radius: 0;
  border: none;
  font-size: 16px;
  position: relative;
  background-color: #2d598b;
  cursor: not-allowed;
}

.search-form .button:not([disabled]):hover {
  background-color: #719c3c;
  color: #fff;
}

@media screen and (min-width: 673px) {
  .search-form .home-search-wrapper .icon-wrapper {
    width: 12%;
  }

  .search-form .home-search-wrapper .icon-wrapper,
  .search-form .home-search-wrapper .input-wrapper {
    margin-bottom: 0;
    margin-top: 0;
  }

  .search-form .home-search-wrapper .input-wrapper {
    width: 60%;
  }

  .search-form .home-search-wrapper .btn-wrapper {
    width: 28%;
    float: left;
  }

  .search-form .quote {
    line-height: 0;
    font-size: 31px;
  }
}

/* Feature Icons */
.feature-icons {
  background: #fff;
  padding: 40px 0;
  margin: 20px 0;
}

.icon-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.icon-col {
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.icon-col img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

.icon-col h5 {
  font-size: 18px;
  color: #3a4a5d;
  margin: 10px 0 0;
  font-weight: 500;
}

/* Tabs & Listings */
.featured-listings {
  background: #fff;
  padding: 30px 0;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
}

.tab {
  padding: 15px 25px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.tab.active {
  border-bottom-color: #8bc350;
  background: #f9f9f9;
}

.tab img {
  height: 30px;
  margin-right: 10px;
  vertical-align: middle;
}

/* Cards Section - Renters/Managers/Providers */
.user-types {
  background: #f4f5f9;
  padding: 40px 0;
}

.card-deck {
  display: flex;
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  flex: 1;
}

.card-bg {
  position: absolute;
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.card-vignette {
  position: absolute;
  width: 100%;
  height: 200px;
  background: rgba(0,0,0,0.5);
}

.card-body {
  position: relative;
  z-index: 2;
  padding: 30px;
  text-align: center;
  color: #fff;
}

.card-body img {
  height: 50px;
  margin-bottom: 15px;
}

.card-body h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-body p {
  font-size: 14px;
  margin-bottom: 20px;
}

.card-footer {
  background: #f4f5f9;
  padding: 20px;
  text-align: center;
}

.card-footer button {
  background: #8bc350;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.card-footer button:disabled {
  background: #999;
  cursor: not-allowed;
}

/* Partners Section */
.partners {
  background: #f4f5f9;
  padding: 40px 0;
}

.partner-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.partner-col {
  text-align: center;
}

.partner-col img {
  max-height: 80px;
  max-width: 200px;
  object-fit: contain;
}

/* Footer */
footer {
  background: #0d2242;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: #9fb7da;
  text-decoration: none;
  margin: 0 15px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.social-icons {
  margin-bottom: 15px;
}

.social-icons a {
  display: inline-block;
  margin: 0 10px;
}

.social-icons svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.equal-housing {
  height: 40px;
  margin: 15px 0;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.modal-content {
  position: relative;
  z-index: 10;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
}

.modal h2 {
  margin-bottom: 10px;
  color: #0d2242;
}

.modal p {
  color: #666;
  margin-bottom: 20px;
}

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

.form-grid input,
.form-grid select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.modal textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 15px;
  font-family: inherit;
}

.consent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  cursor: pointer;
}

.consent input {
  margin: 0;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.form-actions button {
  padding: 10px 25px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: #8bc350;
  color: #fff;
}

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

/* Responsive */
@media (max-width: 768px) {
  .search-form-parent {
    position: absolute;
    top: 25%;
    left: 45%;
    transform: translate(-41%, -40%);
  }

  .search-form {
    border-radius: 0;
    margin-top: 0;
    margin-left: 0;
    text-align: center;
    padding: 40px 20px 20px 20px;
  }

  .search-form::before {
    display: none !important;
  }

  .search-form .btn-wrapper {
    width: 100%;
  }

  .search-form .home-search-wrapper .icon-wrapper {
    width: 20%;
    float: left;
  }

  .search-form .home-search-wrapper .icon-wrapper,
  .search-form .home-search-wrapper .input-wrapper {
    margin-bottom: 20px;
    margin-top: 10px;
  }

  .search-form .home-search-wrapper .input-wrapper {
    width: 80%;
    float: left;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .card-deck {
    flex-direction: column;
  }

  .icon-row {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .search-form-parent {
    left: 40% !important;
  }

  .search-form .title {
    font-size: 20px;
    font-weight: 500;
  }

  .search-form .quote {
    font-size: 20px;
  }

  @media (min-width: 375px) and (max-width: 812px) {
    .search-form-parent {
      position: absolute;
      top: 20% !important;
      left: 40% !important;
    }

    .search-form .title {
      font-size: 20px;
      font-weight: 500;
    }
  }
}

/* Desktop Styles */
@media (min-width: 673px) {
  .search-form .home-search-wrapper .icon-wrapper {
    width: 12%;
  }

  .search-form .home-search-wrapper .input-wrapper {
    width: 60%;
  }

  .search-form .home-search-wrapper .btn-wrapper {
    width: 28%;
  }

  .search-form .quote {
    font-size: 31px;
    line-height: 0;
  }
}