
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.toast {
  visibility: hidden;
  min-width: 260px;
  background-color: #28a745;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 14px;
  position: fixed;
  z-index: 9999;
  right: 20px;
  top: 20px;
  font-size: 15px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.thank-you{
  font-size: 1.8rem;
  color: #28a745;
}

.thank-you-content{
  font-size:18px; 
  margin-top:20px;
}

.details-submitted{
  font-size:18px; 
  margin-top: 10px;
  color:#555;
}



  /* Upload button: small and corner-aligned */
.form-group {
  position: relative;
}

.upload-btn {
  position: absolute;
  top: 0;
  left: 0; /* Change to 'left:0;' if you want left corner */
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 6px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.upload-btn:hover {
  background-color: var(--secondary-color);
}

.bi-images{
  margin-right: 7px ;
}

/* Preview container: horizontal scroll */
.preview-container {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-top: 30px; /* gives some space below label/button */
}

.preview-container img {
  width: 80px; /* smaller thumbnails */
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  flex-shrink: 0; /* keeps them inline */
}


  /* Full-page overlay with spinner */
#spinnerOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85); /* light overlay */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.spinner-content {
  text-align: center;
}

.spinner-content img {
  width: 400px;   /* adjust as per logo */
  height: auto;
}

.spinner-content p {
  margin-top: 12px;
  font-size: 20px;
  color: #555;
  font-weight: 500;
}


  .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #28a745; /* Green spinner color */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  /* ===== MODERN FORM BASE ===== */
.modern-form {
  max-width: 900px;
  margin: auto;
  padding: 35px;
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
}

/* Headings */
.modern-form h3 {
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* ===== FLOATING FIELD ===== */
.field {
  position: relative;
  margin-bottom: 18px;
}

.field input,
.field select {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1.5px solid #ddd;
  background: #fff;
  font-size: 15px;
  transition: all 0.25s ease;
}

.field label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 14px;
  pointer-events: none;
  transition: 0.25s ease;
  background: #fff;
  padding: 0 6px;
}

/* Floating effect */
.field input:focus,
.field select:focus {
  border-color: #25D366;
  box-shadow: 0 0 0 3px rgba(37,211,102,0.15);
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:not([value=""]) + label {
  top: 0px;
  font-size: 12px;
  color: #f78d4c;
  background-color: #fff9f0;
}

/* Error */
.error-msg {
  font-size: 12px;
  color: #dc3545;
  margin-top: 4px;
}

/* ===== BUTTON ===== */
.btn-submit {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg,#25D366,#128C7E);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(18,140,126,0.3);
}

/* ===== IMAGE UPLOAD ===== */
.upload-btn {
  border-radius: 10px;
  background: #f1fdf6;
  color: #128C7E;
  border: 1px dashed #25D366;
}

.upload-btn:hover {
  background: #25D366;
  color: #fff;
}

/* Image preview */
.preview-container img {
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.preview-container img:hover {
  transform: scale(1.05);
}

/* ===== SUCCESS STATE ===== */
#successState {
  animation: fadeUp 0.5s ease;
}

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

.bi-whatsapp {
  color: #ffffff;
  margin-right: 6px;
}

.bi-whatsapp:hover{
    color: #25D366;
  }

  @media (max-width: 480px) {
    .modern-form {
  margin: auto -20px;
  padding: 15px;
}
  }


.form-wrapper {
  /* background-color: #e7f1fa; */
  background-color: #fff9f0;
  border: 1px solid #e0e0e0; /* soft border */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08); /* soft drop shadow */
  transition: all 0.3s ease;
}

/* .form-wrapper {
  background: linear-gradient(135deg, #f0fdf4, #e6f9f0);
} */

/* Checkbox styling */
.agreeTerms input[type="checkbox"] {
  margin-right: 8px;
  width: auto;
  height: auto;
  vertical-align: middle;
}
.agreeTerms label a {
  color: #25D366;
  text-decoration: underline;
}


