@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Rozha+One&display=swap');

:root {
  --font-p: "Instrument Sans", sans-serif;
  --font-sec: "Rozha One", serif;
  --p-color: #fff;
  --gray: #555555;
  --black: #000000;
  --sec-color: #fecd00;
  --background: #ffffff;
  --light: #e6baba;
  --dark: #991b1e;
  --blue: #242730;
}



* {
  box-sizing: border-box;
}

.rental-application-heading {
  font-family: var(--font-sec);
  font-weight: 700;
  color: var(--blue);
  font-size: clamp(32px, 4vw, 50px);
}

.form-wrapper {
  background: #f7f7f7;
  border-radius: 20px;
  border: 2px solid #ededee;
}

.tab {
  display: none;
  width: 100%;
  height: 50%;
  margin: 0px auto;
}

.current {
  display: block;
}

body {
  background-color: #f1f1f1;
}

.rental-application-form {
  background-color: #ffffff;
  margin: 20px auto;
  font-family: var(--font-p);
  padding: 40px;
  width: 100%;
  min-width: 300px;
  max-width: 1200px;
}

.rental-application-form label {
  display: block;
  color: var(--blue);
  font-family: var(--font-p);
  font-size: clamp(15px, 3vw, 18px);
  margin-bottom: 6px;
  font-weight: 500;
}

.rental-application-form input[type="text"],
.rental-application-form input[type="date"],
.rental-application-form input[type="email"],
.rental-application-form input[type="tel"],
.rental-application-form input[type="number"] {
  width: 100%;
  border: 1px solid #e5e6e7;
  background: #fff;
  padding: 12px 15px;
  margin-bottom: 20px;
  color: var(--blue);
  font-family: var(--font-p);
  font-size: clamp(15px, 3vw, 18px);
  box-shadow: inset 0 0 0 1px #ddd;
  transition: box-shadow 0.3s ease;
  border-radius: 50px;
}

.rental-application-form input[type="file"] {
  width: 100%;
  border: 1px solid #e5e6e7;
  background: #fff;
  padding: 12px 19px;
  margin-bottom: 20px;
  color: var(--blue);
  font-family: var(--font-p);
  font-size: clamp(15px, 3vw, 18px);
  box-shadow: inset 0 0 0 1px #ddd;
  transition: box-shadow 0.3s ease;
  border-radius: 50px;
}

/* Style the Browse button */
.rental-application-form input[type="file"]::file-selector-button {
  border: 1px solid #e5e6e7;
  border-radius: 50px; /* rounded pill */
  padding: 10px 25px;
  background-color: #c3c4c6 !important;
  color: #000;
  font-weight: 600;
  font-family: var(--font-p);
  font-size: clamp(15px, 3vw, 16px);
  cursor: pointer;
  transition: background 0.3s ease;
}

.rental-application-form input[type="file"]::file-selector-button:hover {
  background-color: darken(var(--sec-color), 10%);
}


.rental-application-form select {
  width: 100%;
  border: 1px solid #e5e6e7;
  background: #fff;
  padding: 12px 18px;
  margin-bottom: 20px;
  color: var(--blue);
  font-family: var(--font-p);
  font-size: clamp(15px, 3vw, 18px);
  box-shadow: inset 0 0 0 1px #ddd;
  transition: all 0.3s ease;
  border-radius: 50px;
  appearance: none;
  /* removes default dropdown arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23000000' height='26' viewBox='0 0 24 24' width='26' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 20px;
}

.rental-application-form select:focus,
.rental-application-form input:focus {
  outline: none;
  box-shadow: 0 0 5px var(--dark);
  border-color: var(--dark);
}

.rental-application-form option {
  color: var(--blue);
  font-family: var(--font-p);
}

.rental-application-form textarea {
  width: 100%;
  border: 1px solid #e5e6e7;
  background: #fff;
  padding: 12px 15px;
  margin-bottom: 20px;
  color: var(--blue);
  font-family: var(--font-p);
  font-size: clamp(15px, 3vw, 18px);
  box-shadow: inset 0 0 0 1px #ddd;
  transition: box-shadow 0.3s ease;
  border-radius: 20px;
  resize: none;
}

h1 {
  text-align: center;
}

input {
  padding: 10px;
  width: 100%;
  font-size: 17px;
  font-family: var(--font-p);
  border: 1px solid #aaaaaa;
}

button {
  background-color: var(--dark);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 17px;
  font-family: var(--font-p);
  cursor: pointer;
  border-radius: 50px;
}

button:hover {
  opacity: 0.8;
}

.previous {
  background-color: #bbbbbb;
}


/* --- Step wrapper --- */


.step-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 1000px;
  margin: 40px auto;
  flex-wrap: wrap;
}

/* --- Step item --- */
.step-item {
  position: relative;
  text-align: center;
  flex: 1;
  transition: all 0.4s ease;
  min-width: 100px;
}

/* --- Dotted connector --- */
.step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -50%;
  width: 100%;
  border-top: 2px dotted var(--dark);
  z-index: 0;
  opacity: 0.4;
  transition: all 0.4s ease;
}

/* --- Step circle --- */
.step {
  height: 80px;
  width: 80px;
  margin: 0 auto;
  color: var(--p-color);
  background-color: #c5c5c5;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-sec);
  font-size: clamp(18px, 2.5vw, 24px);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
  position: relative;
  box-shadow: inset 0 0 0 0 var(--sec-color);
}

/* --- Active step (animated glow + pulse) --- */
.step-item.active .step {
  background-color: var(--dark);
  color: var(--p-color);
  transform: scale(1.15);
  animation: glowPulse 0.8s ease forwards;
  box-shadow: 0 0 0 rgba(153, 27, 30, 0.4);
}

/* --- Completed (finished) step --- */
.step-item.finish .step {
  background-color: var(--dark);
  color: var(--p-color);
}

/* --- Step title --- */
.step-item p {
  margin-top: 10px;
  font-family: var(--font-p);
  font-weight: 600;
  font-size: clamp(13px, 3vw, 17px);
  color: var(--black);
  line-height: 1.3;
  transition: color 0.4s ease, transform 0.4s ease;
}

.form-wrapper-title{
  margin-top: 10px;
  font-family: var(--font-sec);
  font-weight: 600;
  font-size: 25px;
  color: var(--blue);
  line-height: 1.3; 
}
.form-wrapper-subtitle{
  margin-top: 10px;
  font-family: var(--font-p);
  font-weight: 500;
  font-size: 17px;
  color: var(--gray);
  line-height: 1.3; 
}

/* --- Active/finished title --- */
.step-item.active p,
.step-item.finish p {
  color: var(--blue);
}

/* --- Keyframes for smooth glowing pulse --- */
@keyframes glowPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(153, 27, 30, 0.4);
  }

  50% {
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(153, 27, 30, 0.5);
  }

  100% {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(153, 27, 30, 0.4);
  }
}



.error {
  color: #f00;
}

label[id$="-error"] {
  color: #f00 !important;
  font-family: var(--font-p);
  font-size: 14px;
  margin-top: 6px;
  display: block;
  padding-left: 10px;
  line-height: 1.3;
  animation: fadeIn 0.3s ease;
  font-weight: 500;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.form-btn-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.form-btn-wrapper>button:not(.d-none):first-child:last-child {
  margin-left: auto;
}

/* Common Button Style */
.previous,
.next,
.submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  outline: none;
  border-radius: 40px;
  /* padding: 12px 35px; */
  font-family: "Instrument Sans", sans-serif;
  font-size: clamp(16px,3vw,24px);
  font-weight: 500;
  cursor: pointer;
  width: 200px;
  height: 69px;
  transition: all 0.3s ease;
}

/* Previous Button */
.previous {
  background-color: #c5c5c5;
  color: #111;
}

.previous:hover {
  background-color: #b3b3b3;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Next Button */
.next {
  background-color: #991b1e;
  color: #fff;
}

.next:hover {
  background-color: #7d1618;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Submit Button (Hidden by default) */
#rental-application-submit-btn.submit {
  display: none;
}

/* Optional hover icon animation */
.previous i {
  transition: transform 0.3s ease;
}

.previous:hover i {
  transform: translateX(-4px);
}

.next i {
  transition: transform 0.3s ease;
}

.next:hover i {
  transform: translateX(4px);
}




















/* --- Responsive sizes only (keep horizontal layout) --- */
@media (max-width: 992px) {
  .step-wrapper {
    max-width: 100%;
  }

  .step {
    height: 70px;
    width: 70px;
    font-size: 18px;
  }

  .step-item p {
    font-size: 14px;
  }

  .rental-application-form {
    padding: 40px 20px;
  }

  .step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 34px;
    right: -50%;
    width: 100%;
    border-top: 2px dotted var(--dark);
    z-index: 0;
    opacity: 0.4;
    transition: all 0.4s ease;
  }
}

@media (max-width: 768px) {
  .step {
    height: 60px;
    width: 60px;
    font-size: 16px;
  }

  .step-item p {
    font-size: 13px;
  }

  .rental-application-form {
    padding: 10px 20px;
  }

  .step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 27px;
    right: -50%;
    width: 100%;
    border-top: 2px dotted var(--dark);
    z-index: 0;
    opacity: 0.4;
    transition: all 0.4s ease;
  }

  .previous,
  .next,
  .submit {
    width: 140px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .step-wrapper {
    gap: 10px;
  }

  .step {
    height: 55px;
    width: 55px;
    font-size: 15px;
  }

  .step-item p {
    font-size: 12px;
  }
}
