*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bt-primary: #4eb3c0;
  --bt-primary-dark: #008040;
  --bt-primary-light: #e6f7ee;
  --bt-text: #333333;
  --bt-text-muted: #666666;
  --bt-text-light: #999999;
  --bt-border: #d0d0d0;
  --bt-border-focus: #00a651;
  --bt-bg: #ffffff;
  --bt-bg-page: #f5f5f5;
  --bt-bg-footer: #2c2c2c;
  --bt-footer-text: #cccccc;
  --bt-error: #d32f2f;
  --bt-error-bg: #fff5f5;
  --bt-success: #2e7d32;
  --bt-success-bg: #e8f5e9;
  --bt-label: #444444;
  --bt-input-height: 42px;
  --bt-radius: 4px;
  --bt-shadow: 0 1px 3px rgba(0,0,0,0.08);
  --bt-shadow-card: 0 2px 12px rgba(0,0,0,0.10);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--bt-text);
  background: var(--bt-bg-page);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
.site-header {
  background: var(--bt-bg);
  border-bottom: 1px solid var(--bt-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--bt-shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.header-nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--bt-text);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--bt-primary);
}

.btn-signin {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius);
  color: var(--bt-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  background: transparent;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-signin:hover {
  border-color: var(--bt-primary);
  color: var(--bt-primary);
}

/* ── MAIN ── */
.main-content {
  flex: 1;
  padding: 40px 16px 60px;
}

/* ── FORM CONTAINER ── */
.form-container {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bt-bg);
  border-radius: 6px;
  box-shadow: var(--bt-shadow-card);
  overflow: hidden;
}

.form-header {
  background: var(--bt-primary);
  padding: 28px 36px 24px;
}

.form-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-subtitle {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.82);
  font-style: italic;
}

form {
  padding: 28px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── FORM GROUP ── */
.form-group {
  margin-bottom: 22px;
}

.form-group.hidden {
  display: none;
}

/* ── LABELS ── */
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bt-label);
  margin-bottom: 7px;
  line-height: 1.4;
}

.required {
  color: var(--bt-error);
  margin-left: 2px;
}

/* ── TEXT / NUMBER / EMAIL / TEL INPUTS ── */
.form-input {
  width: 100%;
  height: var(--bt-input-height);
  padding: 0 12px;
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius);
  font-size: 0.93rem;
  color: var(--bt-text);
  background: var(--bt-bg);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:hover {
  border-color: #aaa;
}

.form-input:focus {
  border-color: var(--bt-border-focus);
  box-shadow: 0 0 0 3px rgba(0,166,81,0.12);
}

.form-input.error {
  border-color: var(--bt-error);
  background: var(--bt-error-bg);
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(211,47,47,0.12);
}

/* ── SELECT ── */
.select-wrapper {
  position: relative;
  display: block;
}

.form-select {
  width: 100%;
  height: var(--bt-input-height);
  padding: 0 38px 0 12px;
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius);
  font-size: 0.93rem;
  color: var(--bt-text);
  background: var(--bt-bg);
  font-family: var(--font);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-select:hover {
  border-color: #aaa;
}

.form-select:focus {
  border-color: var(--bt-border-focus);
  box-shadow: 0 0 0 3px rgba(0,166,81,0.12);
}

.form-select.error {
  border-color: var(--bt-error);
  background: var(--bt-error-bg);
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--bt-text-muted);
  pointer-events: none;
}

/* ── TEXTAREA ── */
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius);
  font-size: 0.93rem;
  color: var(--bt-text);
  background: var(--bt-bg);
  font-family: var(--font);
  outline: none;
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-textarea:hover { border-color: #aaa; }

.form-textarea:focus {
  border-color: var(--bt-border-focus);
  box-shadow: 0 0 0 3px rgba(0,166,81,0.12);
}

.form-textarea.error {
  border-color: var(--bt-error);
  background: var(--bt-error-bg);
}

/* ── INR PREFIX INPUT ── */
.input-prefix-wrapper {
  display: flex;
  align-items: stretch;
}

.input-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: #f2f2f2;
  border: 1px solid var(--bt-border);
  border-right: none;
  border-radius: var(--bt-radius) 0 0 var(--bt-radius);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bt-text-muted);
  user-select: none;
  flex-shrink: 0;
}

.form-input.with-prefix {
  border-radius: 0 var(--bt-radius) var(--bt-radius) 0;
}

/* ── FILE UPLOAD ── */
.file-upload-wrapper {
  position: relative;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: var(--bt-input-height);
  padding: 0 14px;
  border: 1px dashed var(--bt-border);
  border-radius: var(--bt-radius);
  background: #fafafa;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--bt-text-muted);
  transition: border-color 0.15s, background 0.15s;
  overflow: hidden;
}

.file-upload-label:hover {
  border-color: var(--bt-primary);
  background: var(--bt-primary-light);
  color: var(--bt-primary-dark);
}

.file-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.file-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload-label.has-file {
  border-color: var(--bt-primary);
  background: var(--bt-primary-light);
  color: var(--bt-primary-dark);
  border-style: solid;
}

.file-upload-label.error-border {
  border-color: var(--bt-error);
  background: var(--bt-error-bg);
}

/* ── RADIO BUTTONS ── */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 4px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--bt-border);
  background: var(--bt-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.radio-custom::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bt-primary);
  opacity: 0;
  transform: scale(0);
  transition: all 0.15s;
}

.radio-option input[type="radio"]:checked + .radio-custom {
  border-color: var(--bt-primary);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
  opacity: 1;
  transform: scale(1);
}

.radio-option input[type="radio"]:focus-visible + .radio-custom {
  box-shadow: 0 0 0 3px rgba(0,166,81,0.2);
}

.radio-label {
  font-size: 0.9rem;
  color: var(--bt-text);
}

/* ── CHECKBOXES ── */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 4px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.checkbox-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 2px solid var(--bt-border);
  background: var(--bt-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.checkbox-custom::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 0.1s;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--bt-primary);
  border-color: var(--bt-primary);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
  opacity: 1;
}

.checkbox-option input[type="checkbox"]:focus-visible + .checkbox-custom {
  box-shadow: 0 0 0 3px rgba(0,166,81,0.2);
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--bt-text);
  font-weight: 500;
}

/* ── FIELD ERROR ── */
.field-error {
  display: block;
  font-size: 0.8rem;
  color: var(--bt-error);
  margin-top: 5px;
  min-height: 0;
  line-height: 1.4;
}

/* ── RECAPTCHA NOTICE ── */
.recaptcha-notice {
  font-size: 0.78rem;
  color: var(--bt-text-light);
  margin-bottom: 20px;
  line-height: 1.5;
}

.recaptcha-notice a {
  color: var(--bt-text-muted);
  text-decoration: underline;
}

/* ── SUBMIT BUTTON ── */
.form-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 36px;
  background: var(--bt-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--bt-radius);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.1s;
  min-width: 120px;
}

.btn-submit:hover {
  background: var(--bt-primary-dark);
}

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

.btn-submit:disabled {
  background: #a0d4b8;
  cursor: not-allowed;
  transform: none;
}

.btn-submit .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
}

.btn-submit.loading .spinner { display: block; }

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

/* ── SUCCESS MESSAGE ── */
.form-success {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--bt-success-bg);
  border: 1px solid #a5d6a7;
  border-radius: var(--bt-radius);
  color: var(--bt-success);
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-success.hidden { display: none; }

.success-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}


/* ──────────────────────────────────────
   RESPONSIVE
────────────────────────────────────── */

/* Tablet 768px+ */
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 2fr 1fr;
  }

  .main-content {
    padding: 48px 24px 72px;
  }
}

/* Laptop 1024px+ */
@media (min-width: 1024px) {
  html { font-size: 15px; }

  .form-container {
    max-width: 760px;
  }

  form {
    padding: 32px 44px 44px;
  }

  .form-header {
    padding: 32px 44px 28px;
  }
}

/* Desktop 1440px+ */
@media (min-width: 1440px) {
  .main-content {
    padding: 56px 24px 80px;
  }
}

/* Mobile 320px — tighten padding */
@media (max-width: 480px) {
  .form-header {
    padding: 20px 20px 18px;
  }

  form {
    padding: 20px 20px 28px;
  }

  .form-title {
    font-size: 1.15rem;
  }

  .header-nav {
    display: none;
  }

  .checkbox-group {
    gap: 8px 14px;
  }
}

/* No horizontal scroll guarantee */
@media (max-width: 320px) {
  .form-container {
    border-radius: 0;
    box-shadow: none;
  }

  .main-content {
    padding: 0 0 40px;
  }
}
