/* ============================================================
   chama-form.css  –  Chama Group Training Enquiry Form Styles
   Place this file at: assets/css/chama-form.css
   ============================================================ */

/* ---------- Form wrapper ---------- */
#chama-enquiry-form {
  background: linear-gradient(
    135deg,
    rgba(255, 140, 50, 0.13) 0%,
    rgba(255, 100, 10, 0.10) 40%,
    rgba(255, 165, 80, 0.08) 100%
  );
  border: 1px solid rgba(255, 140, 50, 0.28);
  border-radius: 14px;
  padding: 42px 40px 48px;
  margin-top: 36px;
  box-shadow:
    0 4px 24px rgba(255, 120, 30, 0.10),
    inset 0 1px 0 rgba(255, 200, 120, 0.20);
  backdrop-filter: blur(4px);
}

/* ---------- Section header ---------- */
#chama-enquiry-form .form-header {
  margin-bottom: 28px;
}

#chama-enquiry-form .form-header h3 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #c95a00;
  margin-bottom: 6px;
}

#chama-enquiry-form .form-header p {
  font-size: 0.92rem;
  color: #7a5030;
  margin: 0;
}

/* ---------- Individual input groups ---------- */
#chama-enquiry-form .input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#chama-enquiry-form .input-group label {
  font-size: 0.87rem;
  font-weight: 600;
  color: #7a3d00;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#chama-enquiry-form input[type="text"],
#chama-enquiry-form input[type="email"],
#chama-enquiry-form input[type="tel"],
#chama-enquiry-form input[type="number"],
#chama-enquiry-form input[type="date"],
#chama-enquiry-form select,
#chama-enquiry-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(200, 100, 20, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  color: #2d1a00;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  outline: none;
  font-family: inherit;
}

#chama-enquiry-form input:focus,
#chama-enquiry-form select:focus,
#chama-enquiry-form textarea:focus {
  border-color: #e06a00;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(224, 106, 0, 0.18);
}

#chama-enquiry-form textarea {
  resize: vertical;
  min-height: 110px;
}

#chama-enquiry-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c95a00' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ---------- Radio group (Mode of Training) ---------- */
#chama-enquiry-form .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

#chama-enquiry-form .radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 9px 18px;
  border: 1.5px solid rgba(200, 100, 20, 0.35);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.65);
  transition: all 0.2s ease;
  font-size: 0.93rem;
  font-weight: 500;
  color: #5a2d00;
}

#chama-enquiry-form .radio-option:hover {
  border-color: #e06a00;
  background: rgba(255, 255, 255, 0.90);
}

#chama-enquiry-form .radio-option input[type="radio"] {
  accent-color: #e06a00;
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}

#chama-enquiry-form .radio-option.selected {
  border-color: #e06a00;
  background: rgba(255, 160, 60, 0.18);
  color: #c95a00;
}

/* ---------- Section divider label ---------- */
#chama-enquiry-form .field-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c95a00;
  border-bottom: 1px solid rgba(200, 100, 20, 0.20);
  padding-bottom: 6px;
  margin-bottom: 4px;
  grid-column: 1 / -1;
}

/* ---------- Error text ---------- */
#chama-enquiry-form .error-text {
  display: none;
  font-size: 0.80rem;
  color: #c0392b;
  margin-top: 2px;
}

#chama-enquiry-form .input-group.has-error input,
#chama-enquiry-form .input-group.has-error select,
#chama-enquiry-form .input-group.has-error textarea {
  border-color: #e74c3c;
  background: rgba(255, 240, 240, 0.80);
}

#chama-enquiry-form .input-group.has-error .error-text {
  display: block;
}

/* ---------- "Other chama type" reveal ---------- */
#chama-enquiry-form #other-chama-wrap {
  display: none;
  margin-top: 10px;
}

/* ---------- Location field (shown when Physical / Both selected) ---------- */
#chama-enquiry-form #location-wrap {
  display: none;
}

/* ---------- Submit button ---------- */
#chama-enquiry-form .btn-submit {
  display: inline-block;
  padding: 13px 44px;
  background: linear-gradient(135deg, #e06a00 0%, #c95a00 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 4px 18px rgba(200, 90, 0, 0.35);
}

#chama-enquiry-form .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(200, 90, 0, 0.45);
}

#chama-enquiry-form .btn-submit:active {
  transform: translateY(0);
}

#chama-enquiry-form .btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Alert messages ---------- */
#chama-form-alert {
  display: none;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 18px;
}

#chama-form-alert.success {
  background: rgba(39, 174, 96, 0.14);
  border: 1px solid rgba(39, 174, 96, 0.4);
  color: #1a7a42;
  display: block;
}

#chama-form-alert.error {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.35);
  color: #922b21;
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 576px) {
  #chama-enquiry-form {
    padding: 28px 18px 36px;
  }

  #chama-enquiry-form .radio-group {
    flex-direction: column;
    gap: 8px;
  }
}



/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #e17d0966, #d3b914);
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
}

.modal.show {
  visibility: visible;
  opacity: 1;
}

/* Glassmorphism */
.glass {
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Content */
.modal-content {
  padding: 30px 40px;
  text-align: center;
  width: 320px;
  transform: translateY(-40px);
  animation: slideDown 0.4s ease forwards;
}

/* Button */
.modal-content button {
  margin-top: 20px;
  padding: 10px 25px;
  border: none;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.modal-content button:hover {
  transform: scale(1.05);
}

/* Animation */
@keyframes slideDown {
  from {
    transform: translateY(-60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Checkmark */
.checkmark-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid #2ecc71;
  margin: 0 auto 15px;
  position: relative;
}

.checkmark {
  position: absolute;
  left: 18px;
  top: 20px;
  width: 20px;
  height: 10px;
  border-left: 4px solid #2ecc71;
  border-bottom: 4px solid #2ecc71;
  transform: rotate(-45deg);
  animation: drawCheck 0.4s ease forwards;
}

@keyframes drawCheck {
  from {
    width: 0;
    height: 0;
  }
  to {
    width: 20px;
    height: 10px;
  }
}

