/* ══════════════════════════════════════════════
   DR Shinde Education — Student Form Styles
   ══════════════════════════════════════════════ */

/* ── Page Layout ── */
.form-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  animation: fadeIn 0.5s var(--ease);
}

/* ── Brand Card ── */
.brand-card {
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  border-radius: 20px;
  padding: 36px 24px 30px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.brand-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--gold-dim);
  animation: float 6s ease-in-out infinite;
}

.brand-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.06);
  animation: float 8s ease-in-out infinite reverse;
}

.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
  transition: transform 0.3s var(--ease);
}

.brand-logo:hover {
  transform: scale(1.06);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  padding: 4px;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

.brand-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 400;
}

.gold-divider {
  width: 48px;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto 0;
  border-radius: 2px;
  position: relative;
  z-index: 1;
}

/* ── Success Banner ── */
.success-banner {
  display: none;
  background: linear-gradient(135deg, #e8f8f0, #d4f0e4);
  border: 1px solid #9ecfb8;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 20px;
  text-align: center;
  animation: slideDown 0.4s var(--ease);
}

.success-banner.show {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.success-banner .success-icon {
  flex-shrink: 0;
}

.success-banner p {
  font-size: 14px;
  color: var(--success);
  font-weight: 500;
}

/* ── Form Card ── */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: var(--shadow-md);
  animation: fadeInScale 0.5s var(--ease) 0.1s both;
}

.form-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.form-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── Field Styles ── */
.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.badge-opt {
  font-size: 10px;
  font-weight: 500;
  background: var(--info-bg);
  color: #5a72c0;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
}

.badge-req {
  font-size: 10px;
  font-weight: 500;
  background: var(--danger-bg);
  color: var(--danger);
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── Input ── */
.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 0.2s;
}

.input-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}

.field input {
  width: 100%;
  padding: 13px 14px 13px 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: all 0.25s var(--ease);
  outline: none;
}

.field input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13, 37, 85, 0.08);
}

.field input:focus~.input-icon svg,
.field input:focus+.input-icon svg {
  stroke: var(--navy);
}

.field input.error {
  border-color: var(--danger);
  background: #fffbfb;
}

.field input.valid {
  border-color: var(--success);
  background: #fbfffd;
}

.field-error {
  font-size: 11.5px;
  color: var(--danger);
  margin-top: 6px;
  display: none;
  animation: slideDown 0.2s var(--ease);
}

.field-error.show {
  display: block;
}

.field-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 5px;
}

.char-counter {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  transition: all 0.2s;
}

.char-counter.full {
  color: var(--success);
  font-weight: 600;
}

/* ── WhatsApp ── */
.whatsapp-prefix {
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  pointer-events: none;
  z-index: 1;
}

.whatsapp-input {
  padding-left: 82px !important;
}

/* ── Submit Button ── */
.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.3px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.submit-btn:hover::after {
  opacity: 1;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 37, 85, 0.25);
}

.submit-btn span {
  position: relative;
  z-index: 1;
}

.submit-btn:active {
  transform: scale(0.98) translateY(0);
}

.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

/* ── Trust Strip ── */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--gold-pale);
  border-radius: var(--radius-sm);
  border: 1px solid #f0e0a0;
  animation: fadeInScale 0.5s var(--ease) 0.2s both;
}

.trust-item {
  text-align: center;
}

.trust-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.trust-lbl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ── Footer ── */
.form-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  animation: fadeIn 0.5s var(--ease) 0.3s both;
}

.footer-branches {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.branch h4 {
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 4px;
}

.branch p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.footer-contact {
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
}

.footer-contact a {
  color: var(--navy);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-light);
  color: var(--white);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
}

.copyright-text {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.form-footer .footer-sub {
  font-size: 11px;
  color: black;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ── Responsive ── */
@media (max-width: 500px) {
  .form-page {
    padding: 16px 12px 30px;
  }

  .form-card {
    padding: 22px 16px;
  }

  .brand-card {
    padding: 28px 18px 24px;
    border-radius: 16px;
  }

  .brand-name {
    font-size: 20px;
  }

  .trust-strip {
    gap: 16px;
    padding: 14px 12px;
  }
}