/* ------------------------------ */
/* LOADER BACKDROP + SPINNER      */
/* ------------------------------ */

.email-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.email-loader-content {
  text-align: center;
  color: #fff;
  font-size: 18px;
}

.spinner {
  border: 6px solid #ffffff44;
  border-top: 6px solid #ffffff;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ------------------------------ */
/* RENTAL REQUEST FORM STYLES     */
/* (fully scoped, safe)           */
/* ------------------------------ */

.rental-request-wrapper {
  max-width: 1100px;
  margin: 0 auto 40px auto;
  font-family: Arial, sans-serif;
  color: #222;
}

.rental-request-wrapper .rental-form {
  border: 1px solid #ccc;
  padding: 20px;
  background: #fff;
}

/* 3-column rows */
.rental-request-wrapper .rental-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

/* full-width rows */
.rental-request-wrapper .rental-row-single {
  grid-template-columns: 1fr;
}

.rental-request-wrapper .rental-group {
  display: flex;
  flex-direction: column;
}

.rental-request-wrapper .rental-group label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}

.rental-request-wrapper .rental-group small {
  font-size: 9px;
  color: #555;
}

.rental-request-wrapper .rental-group input {
  padding: 6px 8px;
  border-radius: 3px;
  border: 1px solid #bbb;
  font-size: 13px;
}

/* Measurement sections */

.rental-request-wrapper .rental-measurement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
  margin-bottom: 16px;
}

.rental-request-wrapper .rental-measurement-card {
  border: 1px solid #ddd;
  padding: 10px;
  background: #fafafa;
  grid-column: span 3; /* full width for each card */
}

.rental-request-wrapper .rental-measurement-card h4 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
}

.rental-request-wrapper .rental-measurement-units {
  font-size: 12px;
  font-style: italic;
  text-align: right;
  margin-top: 3px;
}

/* Measurement images */

.rental-request-wrapper .rental-measurement-images {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 15px 0 25px;
}

.rental-request-wrapper .rental-measurement-img-box {
  width: 260px;
  aspect-ratio: 223 / 258;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.rental-request-wrapper .rental-measurement-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Submit button */

.rental-request-wrapper .rental-form-actions {
  text-align: center;
  margin-top: 24px;
}

.rental-request-wrapper .rental-submit-btn {
  padding: 10px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: #c60000; /* Sani red */
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: 0.2s ease;
}

.rental-request-wrapper .rental-submit-btn:hover {
  opacity: 0.9;
}

/* ------------------------------ */
/* MOBILE LAYOUT                  */
/* ------------------------------ */

@media (max-width: 700px) {
  .rental-request-wrapper .rental-row,
  .rental-request-wrapper .rental-measurement-grid {
    grid-template-columns: 1fr;
  }

  .rental-request-wrapper .rental-measurement-card {
    grid-column: span 1;
  }

  .rental-request-wrapper .rental-measurement-images {
    flex-direction: column;
    align-items: center;
  }

  .rental-request-wrapper .rental-measurement-img-box {
    width: 100%;
    max-width: 260px;
  }
}
