/* ============================
   UNIVERSAL APPLY — DIGITAL ACADEMY
   Tier 3 Professional Productive Style
   Works for Ambassador / Teacher / Referral Forms
   ============================ */

/* 🔹 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: 40px 15px;
}

/* 🪄 MAIN CONTAINER */
.apply-container {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  max-width: 950px;
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  padding: 45px 55px;
  transition: 0.3s ease;
  animation: fadeIn 0.6s ease-in-out;
}

/* HEADER */
header {
  text-align: center;
  margin-bottom: 35px;
}

header h1 {
  font-size: 2rem;
  color: #0e3c7e;
  font-weight: 700;
}

header p {
  color: #555;
  font-size: 0.98rem;
  margin-top: 8px;
}

/* 🌍 LANGUAGE SWITCH */
.language-switch {
  text-align: right;
  margin-bottom: 25px;
}

.language-switch label {
  margin-right: 8px;
  color: #333;
  font-weight: 600;
}

.language-switch select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  transition: 0.25s;
}

.language-switch select:hover {
  background: #eef3ff;
}

/* 👤 ROLE SELECTION */
.role-selection {
  text-align: center;
  margin-bottom: 40px;
}

.role-selection h2 {
  font-size: 1.35rem;
  margin-bottom: 20px;
  color: #0e3c7e;
  font-weight: 600;
}

.role-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.role-btn {
  background: linear-gradient(135deg, #0e3c7e, #2767db);
  color: #fff;
  border: none;
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(14, 60, 126, 0.25);
  transition: all 0.3s ease-in-out;
}

.role-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(14, 60, 126, 0.3);
}

/* 📝 APPLY FORM */
.apply-form {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  margin-bottom: 35px;
}

.apply-form h2 {
  font-size: 1.8rem;
  color: #0e3c7e;
  text-align: center;
  margin-bottom: 25px;
}

/* FORM SECTION */
.form-section {
  margin-bottom: 25px;
}

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

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

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0e3c7e;
  box-shadow: 0 0 8px rgba(14,60,126,0.3);
}

/* AGREEMENT CHECKBOX */
.agree-label {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  gap: 8px;
  cursor: pointer;
}

.agree-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0e3c7e;
}

/* SUBMIT BUTTON */
.submit-btn {
  background: linear-gradient(135deg, #0e3c7e, #2767db);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #174a9a, #3981ff);
  transform: translateY(-1px);
}

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

/* 📱 RESPONSIVE */
@media (max-width: 700px) {
  .apply-container { padding: 25px 20px; }
  header h1 { font-size: 1.5rem; }
  .role-buttons { flex-direction: column; }
  .apply-form { padding: 20px; }
}

.policy-content {
  display: none;
  background: #f4f6fb;
  border: 1px solid #cfd8e3;
  padding: 20px;
  margin: 15px 0;
  border-radius: 12px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-size: 0.95rem;
  line-height: 1.5;
}

.policy-content h3, .policy-content h4 {
  color: #1a237e;
  margin-top: 15px;
}

.policy-content ul {
  margin: 8px 0 15px 20px;
}

.policy-content li {
  margin-bottom: 6px;
}

.agree-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.btn-view-policy {
  padding: 8px 16px;
  background: #3949ab;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-view-policy:hover {
  background: #303f9f;
}

.btn-submit {
  margin-top: 12px;
  padding: 10px 20px;
  background: #43a047;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-submit:disabled {
  background: #9e9e9e;
  cursor: not-allowed;
}