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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  /* Removed padding-top to allow hero to sit flush under navbar */
  background-color: #f8f9fa;
}

.hero {
  background: linear-gradient(135deg, #58233b 0%, #7d3450 100%);
  color: white;
  padding: 6rem 0 8rem 0; /* Extra bottom padding to create the overlap space */
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

.btn-primary {
  background-color: #4b1e33;
  color: #fff;
}

.btn-primary:hover {
  background-color: #3a1627;
}

/* Quote Section */
.quote-container {
  max-width: 900px; /* Slightly wider for better form UX */
  margin: -1rem auto 4rem; /* The -4rem margin creates the overlap effect with the hero */
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.header p {
  opacity: 0.9;
  font-size: 1.1rem;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  padding: 2.5rem 2.5rem 1rem; /* Added padding to top of card */
  font-size: 0.8rem;
  font-weight: 700;
  color: #58233b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.progress-bar {
  height: 8px;
  background: #e2e8f0;
  margin: 0 2.5rem 1rem; /* Match the label padding */
  border-radius: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #58233b, #4b1e33);
  width: 0%;
  transition: width 0.3s ease;
}

.form-container {
  padding: 40px;
}

.step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.step.active {
  display: block;
}

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

.step-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit; /* This links it to Segoe UI */
  font-size: 1rem;
  color: #333;
  line-height: 1.5; /* Adds a bit of breathing room for text */
  transition: border-color 0.3s ease;
  background-color: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #58233b;
  box-shadow: 0 0 0 3px rgba(88, 35, 59, 0.1); /* Optional: adds a soft glow when typing */
}

/* Specific fix for the date input placeholder font */
input[type="date"] {
  font-family: inherit;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.property-card {
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 220px;
}

.property-card:hover {
  border-color: #58233b;
  transform: translateY(-2px);
}

.property-card.selected {
  border-color: #58233b;
  background: #f0e6ea;
}

.property-card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #2d3748;
}

.property-card p {
  color: #718096;
  font-size: 0.9rem;
}

.property-card.selected .card-icon {
  color: #4b1e33;
}

.card-icon {
  margin: 0 auto 1.2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f0f3; /* Optional: adds a light background bubble to the icon */
  border-radius: 50%;
  color: #58233b;
}

.card-icon svg {
  width: 40px;
  height: 40px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.room-section {
  background: #f7fafc;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.room-header {
  cursor: pointer;
  user-select: none;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  transition: background 0.2s ease;
}

.room-header:hover {
  background: #f1f5f9;
}

.room-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: #58233b;
}

/* Collapsed State Logic */
.room-section.collapsed .item-grid {
  display: none;
}

.room-section.collapsed .arrow-icon {
  transform: rotate(-90deg);
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  padding: 25px; /* Padding inside the expanded area */
  background: #f7fafc;
}

.item-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;

  /* THE FIX: Fixed height and centered text */
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem; /* Slightly smaller font ensures 2-line words fit better */
  line-height: 1.1; /* Tightens space between lines for long item names */
  overflow: visible; /* Ensures the red count circle isn't cut off */
}

/* This targets the text inside the card specifically */
.item-card div {
  width: 100%;
  word-wrap: break-word;
  padding: 0 5px;
}

.item-card:hover {
  border-color: #58233b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.item-card.selected {
  border-color: #58233b;
  background: #f0e6ea;
}

/* Ensure the count circle stays pinned to the top right of the fixed-height card */
.item-count {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #58233b;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 15px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.btn-primary {
  background: #58233b;
  color: white;
}

.btn-primary:hover {
  background: #4b1e33;
}

.btn-secondary {
  background: #e2e8f0;
  color: #4a5568;
}

.btn-secondary:hover {
  background: #cbd5e0;
}

.summary {
  background: #f7fafc;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
}

.summary h3 {
  color: #2d3748;
  margin-bottom: 15px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.hidden {
  display: none;
}

/* Main Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #58233b;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #58233b;
  margin: 1rem auto;
  border-radius: 2px;
}

/* About Section */
.about {
  background-color: #f9f9f9;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.about-text {
  font-size: 1.1rem;
  color: #555;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.highlight {
  color: #58233b;
  font-weight: 600;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(88, 35, 59, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: #58233b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(88, 35, 59, 0.15);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-header {
  background: linear-gradient(135deg, #58233b, #7d3450);
  color: white;
  padding: 2rem;
  text-align: center;
}

.service-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.service-content {
  padding: 2rem;
}

.service-content p {
  color: #666;
  margin-bottom: 1.5rem;
}

.learn-more {
  color: #58233b;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.learn-more:hover {
  color: #7d3450;
}

/* Why Choose Us Section */
.why-choose {
  background-color: #58233b;
  color: white;
}

.why-choose .section-title {
  color: white;
}

.why-choose .section-title::after {
  background-color: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-item {
  text-align: center;
  padding: 1.5rem;
}

.benefit-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: white;
}

.benefit-item p {
  opacity: 0.9;
}

/* Contact CTA Section */
.contact-cta {
  background: linear-gradient(135deg, #f9f9f9 0%, white 100%);
  text-align: center;
}

.contact-info {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(88, 35, 59, 0.1);
  margin-top: 2rem;
}

.contact-info h3 {
  color: #58233b;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-phone {
  font-size: 2.2rem;
  font-weight: 700;
  color: #58233b;
  text-decoration: none;
  display: block;
  margin: 1rem 0;
}

.contact-phone:hover {
  color: #7d3450;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(88, 35, 59, 0.15);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    border-bottom: 1px solid #a1a1a1;
  }

  .nav-link {
    padding: 1.5rem;
    font-size: 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .phone-number {
    font-size: 1.5rem;
  }

  .contact-phone {
    font-size: 1.8rem;
  }
}

/* Quote Intro Section Styling */
.quote-intro {
  max-width: 900px;
  margin: 1rem auto 2rem;
  text-align: center;
  padding: 0 1rem;
}

.quote-intro h2 {
  color: #58233b;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.quote-intro > p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.quote-intro-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.quote-intro-benefits > div {
  padding: 1.5rem 1rem;
  background: #f7fafc;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.quote-intro-benefits > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(88, 35, 59, 0.1);
}

.quote-intro-benefits strong {
  color: #58233b;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.quote-intro-benefits span {
  font-size: 0.9rem;
  color: #666;
  display: block;
  line-height: 1.5;
}

/* Quote FAQ Section Styling */
.quote-faq {
  background: #f7fafc;
  padding: 4rem 0;
}

.quote-faq .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.quote-faq h2 {
  color: #58233b;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  font-weight: 600;
}

.faq-item {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(88, 35, 59, 0.1);
}

.faq-item h3 {
  color: #58233b;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.faq-item p {
  color: #555;
  line-height: 1.8;
  margin: 0;
}

.faq-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.faq-cta p {
  color: #555;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.faq-cta a {
  display: inline-block;
  background: #58233b;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

.faq-cta a:hover {
  background: #4b1e33;
  transform: translateY(-2px);
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
  .quote-intro h2 {
    font-size: 1.5rem;
  }

  .quote-intro > p {
    font-size: 1rem;
  }

  .quote-intro-benefits {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .quote-faq h2 {
    font-size: 1.6rem;
  }

  .faq-item {
    padding: 1.5rem;
  }

  .faq-item h3 {
    font-size: 1.1rem;
  }
}

/* 1. Style the input box to match your other form fields */
.flatpickr-input,
input#moveDate {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background-color: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  box-sizing: border-box;
  height: 48px;

  /* The Calendar Icon in the input box */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2358233b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px;
}

/* 2. Popup Calendar - Header & Arrows Visibility */
.flatpickr-months {
  background: #58233b !important;
  border-radius: 15px 15px 0 0;
  padding: 5px 0;
}

/* Force Month name and Year number to be white */
.flatpickr-current-month,
.flatpickr-month {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* MONTH DROPDOWN FIX: Ensures month names are dark in the list but white in the header */
.flatpickr-monthDropdown-months {
  color: #ffffff !important;
  background: #58233b !important;
}

/* This targets the options inside the dropdown when it opens */
.flatpickr-monthDropdown-month {
  background-color: #ffffff !important;
  color: #333333 !important;
}

/* Force the Year input to be white */
.flatpickr-current-month input.cur-year {
  color: #ffffff !important;
}

/* Force the Left and Right arrows to be white */
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  fill: #ffffff !important;
}

/* 3. Weekday Header (Mon, Tue, etc.) */
.flatpickr-weekdays {
  background: #58233b !important;
  color: #ffffff !important;
}

span.flatpickr-weekday {
  color: #ffffff !important;
  background: #58233b !important;
}

/* 4. Selected Day & Calendar Container */
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
  background: #58233b !important;
  border-color: #58233b !important;
  color: #fff !important;
}

.flatpickr-calendar {
  border-radius: 15px !important;
  border: none !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

/* Hover effect on arrows */
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
  fill: #cccccc !important;
}
