/* === Base Section === */
.vre-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100vh;
   /* font-family: revert !important; */
  overflow: hidden;
}

/* === Background Layers === */
.vre-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 100%;
  background-color: #00354b;
  z-index: 1;
}

.vre-section::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
  background-image: url('../img/cabin.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* === Left Text Column === */
.vre-left {
  position: relative;
  z-index: 4; /* Increased z-index to stay above card */
  padding-left: 6%;
  width: 72%;
  color: #fff;
}

.vre-content h1 {
    color: white;
    grid-area: title;
     /* font-family: revert !important; */
    font-weight: 600;
    line-height: 88px;
    font-size: 48px;
    letter-spacing: 1px;
    font-feature-settings: "ss02", "ss06";
    margin: 33px 0px 50px;
    width:88%;
}
.vre-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vre-subtitle {
    color: white;
    grid-area: subtitle;
    /* font-family: revert !important; */
    font-weight: 800;
    font-size: 21px;
    letter-spacing: 0.5px;
    line-height: 28px;
    font-feature-settings: "ss06", "ss02", "salt", "ss01";
    margin: 0px 0px 32px;
}

#vre-submit_3:disabled,
#vre-submit_3.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vre-subtitl-enumber {
    color: white;
    grid-area: subtitle;
     /* font-family: revert !important; */
    font-weight: 800;
    font-size: 21px;
    letter-spacing: 0.5px;
    line-height: 28px;
    font-feature-settings: "ss06", "ss02", "salt", "ss01";
    margin: 0px 0px 32px;
    padding-top:40px;
}

/* === Input Field === */
.vre-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 8px;
    overflow: visible;
    gap: 6px;
    border-radius: 2px 0px 2px 0px;
}

.vre-input-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 4px 0px 0px 4px;
    overflow: visible;
    max-width: 480px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 4px 0px;
    width:50%;
}

.vre-icon {
  color: #00354b;
  padding: 0 8px 0px 6px;
  font-size: 18px;
}

.vre-input-box input {
    flex: 1;
    border: none;
    padding: 5px 12px 8px 0px;
    font-size: 16px;
    color: #333;
    outline: none;
    position: relative;
    z-index: 2;
}

#vre-submit{
  background: #ffc107;
  color: #00354b;
  border: none;
  font-size: 22px;
  padding: 11px 13px;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 0px 4px 4px 0px;
}

#vre-submit_2{
    background: #ffc107;
    color: #00354b;
    border: none;
    font-size: 22px;
    padding: 13px 14px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 2px;
    margin-top: 39px;
}

#vre-submit_3 {
     background: #ffc107;
    color: #00354b;
    border: none;
    font-size: 17px;
    padding: 3px 6px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 2px;
    width: 100%;
    max-width: 179px;
    font-weight: bold;
}
#vre-submit:hover,#vre-submit_2:hover, #vre-submit_3:hover {
  background: #e5ac06;
}

/* === Right Card (Overlapping) - UPDATED === */
.vre-right {
  position: relative;
  z-index: 3;
  flex: 1;
}

.vre-card {
  background: #fff;
  color: #00354b;
  padding: 40px 50px;
  border-radius: 24px;
  width: 360px;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
  position: absolute;
  right: 45%;
  top: 50%;
  transform: translateY(-50%);
}

/* === Card Inner Content === */
.vre-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.vre-estimate {
  background: #f4f4f4;
  padding: 12px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 25px;
}

.vre-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 120px;
  width: 100%;
  gap: 8px;
}

.vre-chart .bar {
  flex: 1;
  background: linear-gradient(180deg, #d9d9d9 0%, #f4f4f4 100%);
  border-radius: 6px;
  filter: blur(1px);
}

.vre-chart .bar:nth-child(1) { height: 70%; }
.vre-chart .bar:nth-child(2) { height: 40%; }
.vre-chart .bar:nth-child(3) { height: 90%; }
.vre-chart .bar:nth-child(4) { height: 65%; }
.vre-chart .bar:nth-child(5) { height: 45%; }

.sc-jMakVo.btmtKo {
    height: 225px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    opacity: 0.7;
    filter: blur(8px);
}
.sc-iMTnTL.gnpLSl {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-evenly;
    gap: 16px;
    padding: 0px 5px;
}

.sc-krNlru.bfgmAC {
    width: 20px;
    height: 95.4342%;
    background-color: rgb(0, 51, 73);
}
.kOOdwy {
    width: 20px;
    height: 77.7751%;
    background-color: rgb(153, 173, 182);
}
.jXmAQu {
    width: 20px;
    height: 34.25%;
    background-color: rgb(0, 51, 73);
}
.kgoyle {
    width: 20px;
    height: 28.3429%;
    background-color: rgb(153, 173, 182);
}
.cXIiKm {
    width: 20px;
    height: 28.1974%;
    background-color: rgb(0, 51, 73);
}
.kDPWuP {
    width: 20px;
    height: 64.3149%;
    background-color: rgb(153, 173, 182);
}
.geOXsV {
    width: 20px;
    height: 90.6179%;
    background-color: rgb(0, 51, 73);
}
.kHcbJO {
    width: 20px;
    height: 72.6668%;
    background-color: rgb(153, 173, 182);
}
.SLuCI {
    width: 20px;
    height: 45.9349%;
    background-color: rgb(0, 51, 73);
}
.ieOYci {
    width: 20px;
    height: 47.2085%;
    background-color: rgb(153, 173, 182);
}

/* Autocomplete Dropdown Styles */
.vre-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vre-autocomplete-item {
    padding: 10px 12px 10px 6px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vre-autocomplete-item:hover {
    background-color: #f5f5f5;
}

.vre-autocomplete-item:last-child {
    border-bottom: none;
}

.vre-autocomplete-item.active {
    background-color: #e9f7fe;
}

/* View Transitions */
.vre-view-initial,
.vre-view-details {
    transition: opacity 0.3s ease;
}

/* Back Button - Match the original design */
.vre-back-button {
    background: none;
    border: none;
    color: white;
     /* font-family: revert !important; */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin: 0 0 40px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
    min-height: 44px;
}

.vre-back-button:hover {
    opacity: 0.8;
}

.vre-back-arrow {
    font-size: 18px;
    font-weight: bold;
}

/* Details View Styles - Match original image exactly */
.vre-details-title {
    color: white;
    grid-area: title;
     /* font-family: revert !important; */
    font-weight: 600;
    line-height: 88px;
    font-size: 48px;
    letter-spacing: 1px;
    font-feature-settings: "ss02", "ss06";
    margin: 33px 0px 50px;
    width: 88%;
}

input.customer_fields {
    padding: 11px 8px;
    width: 100%;
    max-width: 181px;
    border: none;
    border-radius: 2px;
    font-size: 16px;
    color: #000; 
}

.vre-location-display {
    color: white;
    grid-area: subtitle;
     /* font-family: revert !important; */
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
    line-height: 28px;
    font-feature-settings: "ss06", "ss02", "salt", "ss01";
    margin: 0px 0px 32px;
}

.vre-details-inputs {
  display: flex;
  gap: 8px;
  margin-bottom: 19px;
  flex-wrap: wrap;
}

.vre-details-customer-inputs
{
  display: flex;
  gap: 0px;
  margin-bottom: 50px;
  width: 100%;
}
.vre-input-group {
  display: flex;
  flex-direction: column;
  color: white;
   /* font-family: revert !important; */
  font-size: 16px;
  font-weight: 500;
}

.vre-input-customer-group{
  display: flex;
  flex-direction: column;
  color: white;
   /* font-family: revert !important; */
  font-size: 10px;
  font-weight: 500;
  width: 100%;
  max-width: 569px;
  margin-bottom: 20px;
}

.vre-input-group label {
  margin-bottom: 10px;
  font-weight: 600;
}

.vre-back-button {
    border-style: none!important;
}
.vre-stepper {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 2px;
  overflow: hidden;
  width: 140px;
  padding: 5px 0px;
  justify-content: space-between;
}

.vre-step {
  border-style: none !important;
  background: none;
  border: none;
  color: #00354b;
  font-size: 24px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 44px;
}

.vre-step:hover {
  background: rgba(0, 53, 75, 0.1);
}

.vre-stepper span {
  color: #00354b;
  font-size: 18px;
  font-weight: 600;
}

#vre-amenities {
  border-radius: 2px;
  border: none;
  font-size: 15px;
  color: #00354b;
  width: 220px;
  background-color: #fff;
  cursor: pointer;
}

.vre-multiselect {
  position: relative;
  width: 100%;
   /* font-family: revert !important; */
}

.vre-select-box {
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  width: 220px;
}

.vre-selected {
  padding: 5px 0px 5px 22px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  border-radius:2px;
}

.vre-arrow {
  font-size: 28px;
  transition: transform 0.3s ease;
}

.vre-arrow.open {
  transform: rotate(180deg);
}

.vre-checkbox-container {
    display: none;
    position: absolute;
    background: white;
    border-radius: -1px;
    margin-top: -2px;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
}

.vre-checkbox-container label {
  display: block;
  padding: 0px 10px;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  margin: 0;
  gap:9px;
}

.amenity-title{
    font-weight: 600;
    color: white;
     /* font-family: revert !important; */
    font-size: 16px;
    margin: 0px 0 0px!important;
}

.vre-checkbox-container label:hover {
  background: #f1f1f1;
}

.policy_link{
color: rgb(255, 173, 2);
}

.thank_you {
    color: rgb(255, 173, 2);
    text-decoration: underline;
}

/* === RESPONSIVE DESIGN - UPDATED TO FIX CARD OVERLAP === */

/* Large desktop screens (1400px and up) */
@media (min-width: 1400px) {
    .vre-card {
        right: 50%;
    }
}

/* Medium-large screens (1200px to 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .vre-card {
        right: 27%;
    }
}

/* Standard desktop screens (992px to 1199px) - FIX OVERLAP HERE */
@media (max-width: 1199px) and (min-width: 1061px) {
    .vre-section::before {
        width: 65%;
    }
    
    .vre-section::after {
        width: 35%;
    }
    
    .vre-left {
        width: 70%;
        padding-left: 8%;
        z-index: 4; /* Ensure text stays above card */
    }
    
    .vre-content h1,
    .vre-details-title {
        font-size: 54px;
        line-height: 72px;
        width: 80%;
        margin: 25px 0px 40px;
    }
    
    .vre-details-inputs {
      gap: 19px;
    }
    .vre-input-group {
      flex-direction: row;
    }

    input.customer_fields {
      width: 80%;
    }
    .vre-card {
        width: 297px;
        right: 30%; /* Moved further left to prevent overlap */
        padding: 30px 40px;
    }
    
    .vre-input-box {
        max-width: 420px;
    }
}

/* Tablet screens (768px to 991px) - STACK LAYOUT */
@media (max-width: 1060px) {
    .vre-section {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        padding: 60px 0 40px;
        overflow: visible;
    }
    .vre-details-customer-inputs
    {
      flex-direction: column;
      align-items: center;
    }
    
    .vre-section::before,
    .vre-section::after {
        width: 100%;
        height: 50%;
    }
    
    .vre-section::before {
        height: 60%;
    }
    
    .vre-section::after {
        height: 40%;
        top: 60%;
    }
    
    .vre-left {
        width: 90%;
        padding: 0 5% 30px;
        text-align: center;
        position: relative;
        z-index: 4;
    }
    
    .vre-content h1,
    .vre-details-title {
        font-size: 48px;
        line-height: 64px;
        width: 100%;
        margin: 20px 0 30px;
    }
    
    .vre-input-wrapper {
        justify-content: center;
    }
    
    .vre-input-box {
        max-width: 400px;
        width: 60%;
    }
    
    .vre-right {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0;
        position: relative;
        z-index: 3;
    }
    
    .vre-card {
        position: relative;
        transform: none;
        right: auto;
        top: auto;
        margin: 0;
        width: 400px;
        max-width: 90%;
    }
    
    .vre-details-inputs {
        justify-content: center;
        gap: 20px;
    }
    
    .vre-input-group {
        align-items: center;
    }
    
    .vre-autocomplete-dropdown {
        left: 5%;
        right: 5%;
        width: 90%;
        max-width: 400px;
    }
}

/* Mobile screens (767px and below) */
@media (max-width: 767px) {
    .vre-section {
        padding: 40px 0 30px;
        min-height: 100vh;
        height: auto;
    }
    
    .vre-left {
        width: 95%;
        padding: 0 2.5% 20px;
        z-index: 4;
    }
    
    .vre-content h1,
    .vre-details-title {
        font-size: 36px;
        line-height: 48px;
        margin: 15px 0 25px;
    }
    
    .vre-subtitle,
    .vre-location-display {
        font-size: 18px;
        line-height: 24px;
        margin: 0 0 25px;
    }
    
    .vre-input-wrapper {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .vre-input-box {
        width: 100%;
        max-width: 350px;
        border-radius: 8px;
    }
    
    #vre-submit,
    #vre-submit_2 {
        width: 100%;
        max-width: 350px;
        border-radius: 8px;
        padding: 15px;
    }
    
    .vre-details-inputs {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .vre-input-group {
        width: 100%;
        max-width: 250px;
    }
    
    .vre-stepper {
        width: 100%;
    }
    
    .vre-multiselect {
        width: 100%;
        max-width: 250px;
    }
    
    .vre-select-box {
        width: 100%;
    }
    
    .vre-back-button {
        margin-bottom: 25px;
    }
    
    .vre-right {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .vre-card {
        padding: 25px 30px;
        width: 350px;
        max-width: 85%;
    }
    
    .sc-jMakVo.btmtKo {
        height: 180px;
    }
    
    .sc-krNlru {
        width: 15px !important;
    }
    
    .vre-autocomplete-dropdown {
        position: fixed;
        left: 5%;
        right: 5%;
        width: 90%;
        max-width: 350px;
        z-index: 10000;
    }
}

/* Small mobile screens (575px and below) */
@media (max-width: 575px) {
    .vre-content h1,
    .vre-details-title {
        font-size: 28px;
        line-height: 38px;
        margin: 10px 0 20px;
    }
    
    .vre-subtitle,
    .vre-location-display {
        font-size: 16px;
        line-height: 22px;
        margin: 0 0 20px;
    }
    
    .vre-input-box input {
        padding: 14px 12px;
        font-size: 14px;
    }
    
    .vre-icon {
        padding: 0 12px;
    }
    
    .vre-right {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .vre-card {
        padding: 20px 25px;
        width: 320px;
        max-width: 80%;
    }
    
    .vre-card h3 {
        font-size: 18px;
    }
    
    .vre-estimate {
        font-size: 20px;
        padding: 10px;
    }
    
    .vre-calculating {
        font-size: 16px;
    }
    
    .vre-input-customer-group {
        width: 90%;
        font-size: 9px;
    }
    
    .last_policy {
        text-align: center;
        line-height: 1.4;
    }
    
    .customer_fields {
        padding: 18px 8px !important;
        font-size: 14px;
    }
    
    #vre-amenities {
        padding-left: 20px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .vre-section {
        height: auto;
        min-height: 100vh;
        padding: 30px 0;
    }
    
    .vre-content h1,
    .vre-details-title {
        font-size: 32px;
        line-height: 42px;
        margin: 10px 0 15px;
    }
    
    .vre-left {
        padding-top: 10px;
        padding-bottom: 15px;
    }
    
    .vre-details-inputs {
        margin-bottom: 20px;
    }
    
    .vre-card {
        padding: 20px;
        margin: 10px 0;
    }
    
    .vre-right {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .vre-section::after {

    }
}

/* Print styles */
@media print {
    .vre-section::before {
        background-color: #00354b !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .vre-card {
        box-shadow: none;
        border: 2px solid #00354b;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 20px auto;
    }
    
    .vre-section {
        flex-direction: column;
        height: auto;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .vre-view-initial,
    .vre-view-details,
    .vre-client-details,
    .vre-thank-details,
    .vre-back-button,
    .vre-step,
    .vre-autocomplete-item {
        transition: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .vre-card {
        background: #ffffff;
        color: #00354b;
    }
    
    .vre-estimate {
        background: #f8f9fa;
        color: #00354b;
    }
}

/* Emergency overlap prevention for any edge cases */
.vre-content {
    position: relative;
    z-index: 2;
}

/* Ensure touch targets are adequate on mobile */
@media (max-width: 767px) {
    .vre-step,
    .vre-autocomplete-item,
    .vre-checkbox-container label,
    .vre-back-button {
        min-height: 44px;
    }
    
    .vre-step {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .vre-checkbox-container label {
        padding: 12px 10px;
        display: flex;
        align-items: center;
    }
}

/* Additional safety for very narrow screens */
@media (max-width: 400px) {
    .vre-card {
        width: 300px;
        max-width: 85%;
        padding: 15px 20px;
    }
    
    .vre-content h1,
    .vre-details-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .vre-input-box {
        max-width: 300px;
    }
}

.last_policy {
    line-height: 16px;
}

@media (max-width: 1712px) and (min-width: 1061px) {
    /* .vre-details-customer-inputs
    {
      flex-direction: column;
    } */
    
    /* .vre-content {
        width: 70%;
    } */
    .vre-section {
      height: 137vh;
    }
    .vre-input-box input {
      width: 100%;
    }
}


@media (max-width: 1274px) and (min-width: 1061px) {
    .vre-card {
      width:297px
    }
}

@media (max-width: 1258px) and (min-width: 1061px) {
    .vre-content {
        width: 80%;
    }

}

@media (max-width: 1740px) and (min-width: 1061px) {
  .vre-details-title {
      width: 80%;
  }
}

@media (min-width: 1767px) {
  .vre-input-group {
    width:17%;
  }
}