/* ============================
   REFERRAL FORM — DIGITAL ACADEMY
   Tier 3 Professional Productive Style
   ============================ */

/* 🔹 RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Segoe UI", sans-serif;
}

body {
  background: linear-gradient(135deg, #e8eef9, #fdfdff);
  color: #222;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 15px;
}

/* 🪄 FORM CONTAINER */
.apply-form {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  max-width: 900px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  padding: 35px 45px;
  animation: fadeIn 0.6s ease-in-out;
}

/* HEADER */
.apply-form h2 {
  text-align: center;
  font-size: 2rem;
  color: #0e3c7e;
  margin-bottom: 25px;
  font-weight: 700;
}

/* FORM SECTIONS */
.form-section {
  background: #fff;
  border: 1px solid #e5e7ee;
  padding: 20px 25px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

.form-section h3 {
  font-size: 1.2rem;
  color: #0e3c7e;
  margin-bottom: 15px;
}

/* FORM GROUP */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  transition: all 0.25s ease-in-out;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #2767db;
  box-shadow: 0 0 6px rgba(39, 103, 219, 0.25);
}

/* TEXTAREA */
textarea {
  resize: vertical;
  min-height: 50px;
}

/* CHECKBOX AGREEMENT */
.agree-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #0e3c7e;
  cursor: pointer;
}



/* ✨ ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 📱 RESPONSIVE */
@media (max-width: 700px) {
  .apply-form {
    padding: 25px 20px;
  }
  .form-section {
    padding: 18px 20px;
  }
  .apply-form h2 {
    font-size: 1.5rem;
  }
}