/* assets/css/pricing-plans.css */

/* Main Section */
.pricing-plans-section {
  width: 100%;
  max-width: 72rem;
  margin: 1.25rem auto 0;
  padding: 1rem;
  margin-top: 2rem;
  scroll-margin-top: 6rem;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.line-text-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  /* border: 1px solid red; */
}

.line-text-container hr {
  flex: 1;
  border: none;
  border-top: 2px solid;
  opacity: 0.8;
}

.line-text-container h2 {
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0.05em;
  font-size: 1.25rem;
  text-align: center;
}

/* Plan Type Buttons */
.plan-type-buttons {
  width: 100%;
  margin-top: -2.5rem;
  padding: 1rem;
  overflow-x: auto;
  /* border: 1px solid red; */
}

.plan-type-buttons::-webkit-scrollbar {
  display: none;
}

.button-wrapper {
  display: flex;
  gap: 0.75rem;
  padding: 0 1rem;
  min-width: 100%;
  white-space: nowrap;
  justify-content: center;
  align-items: center;
}

@media (max-width: 1024px) {
  .button-wrapper {
    justify-content: flex-start;
  }
}

.plan-type-btn {
  padding: 0.75rem 1.25rem;
  min-width: 72px;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid;
  transition: all 0.2s;
}

.plan-type-btn.active {
  background-color: #1a1a1a;
  color: white;
  border-color: #1a1a1a;
}

.plan-type-btn:not(.active) {
  background-color: transparent;
  color: #1a1a1a;
  border-color: #1a1a1a;
}

/* Plans Container Wrapper */
.plans-container-wrapper {
  position: relative;
  margin-bottom: 2.5rem;
}

/* BHK Plans Section */
.bhk-plans-section {
  position: relative;
}

.plans-scroll-container {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.plans-scroll-container::-webkit-scrollbar {
  display: none;
}

.plans-scroll-container.justify-center {
  justify-content: center;
}

.plans-scroll-container.justify-start {
  justify-content: flex-start;
}

/* BHK Plan Card */
.bhk-plan-card {
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 0 0.25rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  width: 90%;
  min-width: 300px;
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .bhk-plan-card {
    width: 48%;
  }
}

.plan-image {
  width: 50%;
  border-radius: 0.75rem;
  border: 1px solid;
  flex-shrink: 0;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
}

@media (min-width: 640px) {
  .plan-image {
    height: 10rem;
  }
}

@media (min-width: 1024px) {
  .plan-image {
    height: auto;
  }
}

.plan-image img {
  border-radius: 0.75rem;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.no-image {
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  border: 1px solid;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.875rem;
  padding: 0.5rem;
}

/* Plan Data */
.plan-data {
  width: 50%;
  color: #1a1a1a;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
}

.plan-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 0.25rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.plan-details .detail-row:nth-child(3) .detail-value {
  font-size: 1rem;
  font-weight: bold;
  color: #e81e3d;
}

@media (min-width: 1024px) {
  .detail-row {
    font-size: 0.875rem;
  }
}

.detail-label {
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.625rem;
}

@media (min-width: 640px) {
  .detail-label {
    font-size: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .detail-label {
    font-size: 0.875rem;
  }
}

.detail-value {
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 60%;
  text-align: right;
  font-size: 0.625rem;
}

@media (min-width: 640px) {
  .detail-value {
    font-size: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .detail-value {
    font-size: 0.875rem;
  }
}

.detail-locked {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 60%;
  justify-content: flex-end;
}

.detail-locked img {
  width: 0.75rem;
  height: 0.75rem;
}

@media (min-width: 1024px) {
  .detail-locked img {
    width: 0.875rem;
    height: 0.875rem;
  }
}

.locked-badge {
  color: #4a4a4a;
  background-color: #ffffff;
  border-radius: 0.25rem;
  border: 1px solid #a3b3a9;
  padding: 0.125rem 0.375rem;
  font-size: 0.5625rem;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .locked-badge {
    font-size: 0.625rem;
  }
}

/* Plan Footer */
.plan-footer {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #d1d5db;
  font-size: 0.75rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .plan-footer {
    font-size: 0.875rem;
  }
}

.units-left {
  font-style: italic;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  margin: 0;
}

@media (min-width: 640px) {
  .units-left {
    font-size: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .units-left {
    font-size: 0.875rem;
  }
}

.units-count {
  font-weight: 600;
}

.units-locked {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: center;
}

.units-locked img {
  width: 0.75rem;
  height: 0.75rem;
}

@media (min-width: 1024px) {
  .units-locked img {
    width: 0.875rem;
    height: 0.875rem;
  }
}

/* Scroll Buttons */
.scroll-btn {
  position: absolute;
  top: 35%;
  z-index: 50;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: none;
}

@media (min-width: 1280px) {
  .scroll-btn {
    display: flex;
  }
}

.scroll-left {
  left: -4.5rem;
}

.scroll-right {
  right: -4.5rem;
}

.scroll-btn i {
  width: 60px;
  height: 60px;
  color: var(--primary-color);
}

/* Floor & Master Plans */
.floor-plans-section,
.master-plan-section {
  position: relative;
}

.floor-plans-container,
.master-plan-container {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  .floor-plans-container,
  .master-plan-container {
    justify-content: flex-start;
  }
}

.floor-plans-container::-webkit-scrollbar,
.master-plan-container::-webkit-scrollbar {
  display: none;
}

.floor-plan-card,
.master-plan-card {
  height: 340px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  border-radius: 0.75rem;
  margin: 0 0.25rem;
  cursor: pointer;
  overflow: hidden;
  width: 90vw;
  min-width: 90vw;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .floor-plan-card,
  .master-plan-card {
    width: 360px;
    min-width: 360px;
  }
}

@media (min-width: 768px) {
  .floor-plan-card,
  .master-plan-card {
    width: 380px;
    min-width: 380px;
  }
}

.floor-plan-image,
.master-plan-image {
  flex: 0 0 80%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  padding: 1.25rem;
}

.floor-plan-image figure,
.master-plan-image figure {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid;
  border-radius: 0.75rem;
  overflow: hidden;
  margin: 0;
}

.floor-plan-image img,
.master-plan-image img {
  object-fit: cover;
  border-radius: 0.75rem;
  width: 100%;
  height: 100%;
}

.floor-plan-caption,
.master-plan-caption {
  flex: 0 0 10%;
  width: 100%;
  font-weight: 400;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.floor-plan-caption button,
.master-plan-caption button {
  font-weight: 400;
  font-size: 1.125rem;
  text-align: center;
  padding: 0.625rem 0.5rem;
  border-radius: 0.75rem;
  color: white;
  border: none;
  cursor: pointer;
}

/* Cost Breakdown Section */
.cost-breakdown-section {
  /* margin-top: 2rem; */
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .cost-breakdown-section {
    flex-direction: row;
  }
}

/* Breakdown Image */
.breakdown-image {
  width: 100%;
  border: 2px solid;
  border-radius: 0.75rem;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
}

@media (min-width: 768px) {
  .breakdown-image {
    width: 50%;
  }
}

.breakdown-image figcaption {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border: 2px solid;
  border-radius: 9999px;
  padding: 0.125rem 0.75rem;
  font-weight: 600;
  text-align: center;
  font-size: 0.8125rem;
  z-index: 20;
}

@media (min-width: 640px) {
  .breakdown-image figcaption {
    font-size: 1rem;
  }
}

.breakdown-image-desktop,
.breakdown-image-mobile {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
}

.breakdown-image-desktop {
  display: none;
}

.breakdown-image-mobile {
  display: block;
}

@media (min-width: 768px) {
  .breakdown-image-desktop {
    display: block;
  }

  .breakdown-image-mobile {
    display: none;
  }
}

.breakdown-image img {
  object-fit: cover;
  width: 100%;
  min-height: 250px;
  max-height: 250px;
}

.image-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10;
}

/* Breakdown Details */
.breakdown-details {
  width: 100%;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .breakdown-details {
    width: 50%;
    margin-top: 0;
    font-size: 1rem;
  }
}

.details-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .details-grid {
    flex-direction: row;
    gap: 1.5rem;
  }
}

.details-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .details-column {
    margin-top: 0;
  }
}

.detail-item {
  display: flex;
  justify-content: space-between;
  font-weight: 400;
}

.item-label {
  font-weight: 600;
  font-size: 0.875rem;
  margin: 0;
}

@media (min-width: 640px) {
  .item-label {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .item-label {
    font-size: 1rem;
  }
}

.item-value {
  font-weight: 400;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .item-value {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .item-value {
    font-size: 1.125rem;
  }
}

.item-locked {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.item-locked img {
  width: 15px;
  height: 15px;
}

.divider {
  height: 1px;
  width: 100%;
  background-color: rgba(31, 75, 67, 0.3);
  margin: 0.75rem 0;
  border: none;
}

.form-info {
  font-weight: 600;
  font-size: 0.625rem;
  text-align: center;
  margin: 0.75rem 0;
}

@media (min-width: 768px) {
  .form-info {
    font-size: 1rem;
  }
}

/* Breakdown Form */
.breakdown-form {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.form-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form-row {
  display: flex;
  width: 100%;
  max-width: 28rem;
  position: relative;
}

.country-select {
  appearance: none;
  border-radius: 0.5rem 0 0 0.5rem;
  color: #1a1a1a !important;
  font-weight: 600;
  border: 2px solid;
  font-size: 0.9375rem;
  outline: none;
  cursor: pointer;
  /* background-color: white; */
  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='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.5rem !important;
}

@media (min-width: 640px) {
  .country-select {
    padding: 0.75rem;
  }
}

.input-wrapper {
  position: relative;
  flex-grow: 1;
}

.phone-input {
  appearance: none;
  width: 100%;
  /* padding: 0.5rem 0.75rem; */
  font-size: 1rem;
  color: #1a1a1a;
  border-top: 2px solid;
  border-right: 2px solid;
  border-bottom: 2px solid;
  border-left: none;
  border-radius: 0 0.5rem 0.5rem 0;
  outline: none;
}

@media (min-width: 640px) {
  .phone-input {
    padding: 0.75rem;
  }
}

@media (min-width: 768px) {
  .phone-input {
    padding-right: 8rem;
  }
}

.phone-input::placeholder {
  color: rgba(31, 75, 67, 0.5) !important;
  font-size: 1.125rem;
}

/* Remove number input arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button,
input[type="tel"]::-webkit-inner-spin-button,
input[type="tel"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"],
input[type="tel"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Submit Buttons */
.submit-btn {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  border: none;
  color: white;
}

@media (min-width: 640px) {
  .submit-btn {
    font-size: 0.9375rem;
    padding: 0.875rem 1.25rem;
  }
}

.submit-btn i {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.desktop-btn {
  display: none;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

@media (min-width: 768px) {
  .desktop-btn {
    display: flex;
  }
}

.mobile-btn {
  margin-top: 0.75rem;
  justify-content: center;
  width: 100%;
}

@media (min-width: 768px) {
  .mobile-btn {
    display: none;
  }
}

/* CSS Variables */
:root {
  --primary-color: #e81e3d;
}

/* Fix white text in Cost Breakdown phone input */
.breakdown-form .phone-input {
  color: #1a1a1a !important;
  caret-color: #1a1a1a;
}

.breakdown-form .phone-input::placeholder {
  color: rgba(31, 75, 67, 0.6) !important;
  opacity: 1;
  font-size: 1rem;
}

/* Browser-specific placeholder fixes */
.breakdown-form .phone-input::-webkit-input-placeholder {
  color: rgba(31, 75, 67, 0.6) !important;
}
.breakdown-form .phone-input::-moz-placeholder {
  color: rgba(31, 75, 67, 0.6) !important;
  opacity: 1;
}
.breakdown-form .phone-input:-ms-input-placeholder {
  color: rgba(31, 75, 67, 0.6) !important;
}

/* ========================
   COST BREAKDOWN FORM – MOBILE FIXES
   ======================== */

@media (max-width: 767px) {
  /* Make country select wider and better proportioned */
  .country-select {
    min-width: 100px; /* Fixed width for country code */
    padding: 0.75rem 0.5rem !important;
    font-size: 1rem;
    text-align: center;
  }

  /* Phone input adjustments */
  .phone-input {
    padding: 0.75rem !important;
    font-size: 1rem;
  }

  /* Placeholder – smaller and properly visible */
  .phone-input::placeholder {
    font-size: 1rem !important;
    color: rgba(31, 75, 67, 0.6) !important;
  }

  /* Ensure the row stretches properly */
  .form-row {
    max-width: 100%;
  }

  /* Mobile button – full width, good spacing */
  .mobile-btn {
    margin-top: 1rem;
    font-size: 1rem;
    padding: 0.875rem !important;
  }

  /* Text above form – better size */
  .form-info {
    font-size: 0.875rem;
    padding: 0 1rem;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .country-select {
    min-width: 100px;
    font-size: 0.9375rem;
    padding: 0.75rem 0.4rem !important;
  }

  .phone-input {
    font-size: 0.9375rem;
  }

  .phone-input::placeholder {
    font-size: 0.9375rem !important;
  }
}
