/* ═══════════════════════════════════════════════════════════════════════════
   TechUltra Solutions — Career Portal Design System
   Brand Palette (from techultrasolutions.com):
   Brand Navy #0F1B3D | Signature Violet/Purple #5E3FA0 & #6E47B1
   Lavender Highlight #AD8ED9 | Dark Indigo Glass Surface
   Font: Inter (Google Fonts)
═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Custom Properties ──────────────────────────────────────────────── */
:root {
  /* Brand colors */
  --brand-950:    #070d22;
  --brand-900:    #0f1b3d;
  --brand-800:    #161f3f;
  --brand-700:    #1f2a4f;
  --brand-600:    #2d3a64;
  --brand-400:    #5d6da0;
  --brand-300:    #8997c0;
  --brand-200:    #b8c2dd;
  --brand-100:    #dde2f0;

  /* Accent Purple/Violet (TechUltra's signature brand button/accent color) */
  --accent-900:   #2e1f4f;
  --accent-700:   #4c3382;
  --accent-600:   #5e3fa0;
  --accent-500:   #6e47b1;
  --accent-400:   #8a64c4;
  --accent-300:   #ad8ed9;
  --accent-200:   #cdb9ea;
  --accent-100:   #e7dff5;
  --accent-50:    #f4f0fa;

  /* Gold (Partner badge) */
  --gold-500:     #f59e0b;
  --gold-400:     #fbbf24;

  /* Dark surfaces */
  --surface:      rgba(18, 27, 56, 0.85);
  --surface-2:    rgba(255, 255, 255, 0.04);
  --surface-solid:#121b3b;
  --border:       rgba(173, 142, 217, 0.16);
  --border-focus: var(--accent-400);

  /* Text colors */
  --ink-900:      #f7f9ff;
  --ink-700:      #c8d2e8;
  --ink-500:      #94a2cf;
  --ink-300:      #636d8a;

  --success:      #10b981;
  --success-bg:   rgba(16, 185, 129, 0.14);
  --error:        #ef4444;
  --error-bg:     rgba(239, 68, 68, 0.14);
  --warning:      #f59e0b;
  --warning-bg:   rgba(245, 158, 11, 0.14);

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow:     0 4px 24px rgba(7,13,34,0.4);
  --shadow-lg:  0 20px 50px rgba(7,13,34,0.6), 0 4px 16px rgba(0,0,0,0.3);

  --transition: 200ms cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--brand-900);
  color: var(--ink-900);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ─── Logo ───────────────────────────────────────────────────────────────── */
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition);
}

.header-logo:hover {
  opacity: 0.9;
}

.header-logo img {
  height: 68px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 10px rgba(15, 27, 61, 0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-badge {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
  color: #451a03;
  border: 1.5px solid rgba(254, 240, 138, 0.95);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 8px 20px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 3px 14px rgba(245, 158, 11, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.header-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(245, 158, 11, 0.5);
}

/* ─── Hero Banner ────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(94, 63, 160, 0.35) 0%, transparent 70%),
    linear-gradient(170deg, #0b1226 0%, #0f1b3d 45%, #161f46 100%);
  color: #fff;
  padding: 4rem 1.5rem 6.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(110, 71, 177, 0.12) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ad8ed9' fill-opacity='0.025'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hero-inner { max-width: 760px; margin: 0 auto; position: relative; }

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-event-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.18);
}

.hero-event-tag .dot {
  width: 7px;
  height: 7px;
  background: #f59e0b;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 10px #fbbf24;
}

/* ─── Official TechUltra Gold Partner Seal ──────────────────────────────── */
.gold-seal {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 60%, #d97706 100%);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255,255,255,0.7);
  border: 2px solid rgba(254, 240, 138, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.gold-seal:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.65);
}

.gold-seal-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gold-seal-text {
  fill: #451a03;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gold-seal-text.bottom {
  fill: #78350f;
  font-size: 9.8px;
  font-weight: 700;
}

.gold-seal-icon {
  color: #451a03;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-gold-partner {
  color: #fcd34d;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.025em;
  margin-bottom: 1.15rem;
  color: #fff;
}

.hero h1 span {
  color: var(--accent-300);
  background: linear-gradient(135deg, #ffffff 15%, #cdb9ea 55%, #ad8ed9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--brand-200);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Main Layout ────────────────────────────────────────────────────────── */
.main-wrapper {
  max-width: 780px;
  margin: -2.8rem auto 4rem;
  padding: 0 1.25rem;
}

/* ─── Card (Glassmorphism) ───────────────────────────────────────────────── */
.card {
  background: rgba(18, 27, 56, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(7, 13, 34, 0.6), inset 0 1px 0 rgba(255,255,255,0.08);
  border: 1px solid rgba(173, 142, 217, 0.16);
  overflow: hidden;
}

.card-header {
  padding: 2rem 2rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.card-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.25rem;
}

.card-header p {
  font-size: 0.88rem;
  color: var(--ink-500);
}

.card-body { padding: 2rem; }

/* ─── Form ───────────────────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-grid .full-width { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: .01em;
}

.form-label .required { color: var(--error); margin-left: 2px; }
.form-label .optional {
  color: var(--ink-300);
  font-weight: 400;
  font-size: 0.75rem;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.95rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--ink-900);
  background: rgba(11, 19, 43, 0.7);
  border: 1.5px solid rgba(173, 142, 217, 0.18);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-control::placeholder { color: var(--ink-300); }

.form-control:focus {
  border-color: var(--accent-400);
  background: rgba(15, 26, 58, 0.85);
  box-shadow: 0 0 0 3.5px rgba(110, 71, 177, 0.25);
}

.form-control.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ad8ed9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}

/* Dark select option text fix */
select.form-control option {
  background: #162244;
  color: #f1f5ff;
}

/* ─── Radio Group (Gender) ───────────────────────────────────────────────── */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radio-chip input[type="radio"] { display: none; }

.radio-chip label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid rgba(173, 142, 217, 0.16);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
}

.radio-chip input[type="radio"]:checked + label {
  border-color: var(--accent-400);
  background: rgba(94, 63, 160, 0.3);
  color: #fff;
  box-shadow: 0 0 12px rgba(94, 63, 160, 0.35);
}

.radio-chip label:hover {
  border-color: rgba(173, 142, 217, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ─── File Upload ────────────────────────────────────────────────────────── */
.file-upload-area {
  border: 2px dashed rgba(173, 142, 217, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--accent-400);
  background: rgba(94, 63, 160, 0.1);
}

.file-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-upload-icon {
  width: 40px;
  height: 40px;
  background: rgba(94, 63, 160, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem;
}

.file-upload-icon svg { color: var(--accent-300); }

.file-upload-text {
  font-size: 0.86rem;
  color: var(--ink-700);
  font-weight: 500;
}

.file-upload-hint {
  font-size: 0.76rem;
  color: var(--ink-300);
  margin-top: 0.25rem;
}

.file-selected {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 500;
  background: var(--success-bg);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ─── Error / Help text ──────────────────────────────────────────────────── */
.field-error {
  font-size: 0.75rem;
  color: var(--error);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  min-height: 18px;
}

.char-count {
  font-size: 0.72rem;
  color: var(--ink-300);
  text-align: right;
  margin-top: 2px;
}

.char-count.near-limit { color: var(--warning); }
.char-count.over-limit { color: var(--error); }

/* ─── Alert / Notice ─────────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}

.alert-error   { background: var(--error-bg);   color: #fca5a5; border-color: rgba(239,68,68,0.25); }
.alert-success { background: var(--success-bg); color: #86efac; border-color: rgba(16,185,129,0.25); }
.alert-warning { background: var(--warning-bg); color: #fcd34d; border-color: rgba(245,158,11,0.25); }

/* ─── Submit Button ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #5e3fa0 0%, #6e47b1 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(94, 63, 160, 0.45);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #6e47b1 0%, #8a64c4 100%);
  box-shadow: 0 6px 24px rgba(110, 71, 177, 0.6);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.btn-full { width: 100%; }

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

@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading .btn-spinner { display: block; }
.btn.loading .btn-text    { opacity: .7; }

/* ─── Form Section Divider ───────────────────────────────────────────────── */
.form-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-300);
  margin: 1.75rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: rgba(7, 13, 34, 0.6);
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--ink-500);
  text-align: center;
  font-size: 0.8rem;
  padding: 1.75rem 1rem;
  margin-top: 2rem;
}

.site-footer a {
  color: var(--accent-300);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── Thank-You Page ─────────────────────────────────────────────────────── */
.thanks-card {
  text-align: center;
  padding: 3.5rem 2rem;
}

.thanks-icon {
  width: 72px;
  height: 72px;
  background: var(--success-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: pop-in 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

.thanks-icon svg { color: var(--success); width: 32px; height: 32px; }

@keyframes pop-in {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.thanks-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 0.75rem;
}

.thanks-card p {
  color: var(--ink-500);
  max-width: 400px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─── Progress Steps ─────────────────────────────────────────────────────── */
.form-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 1.5rem 1rem 0;
  margin-bottom: 0;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  position: relative;
  padding-bottom: 1rem;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.08);
}

.step.completed:not(:last-child)::after { background: var(--accent-500); }

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-300);
  z-index: 1;
  transition: all var(--transition);
}

.step.active    .step-circle { border-color: var(--accent-400); color: #fff; background: var(--accent-500); box-shadow: 0 0 12px rgba(110, 71, 177, 0.4); }
.step.completed .step-circle { border-color: var(--accent-500); background: var(--accent-600); color: #fff; }

.step-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-300);
  white-space: nowrap;
}

.step.active    .step-label { color: var(--accent-300); font-weight: 600; }
.step.completed .step-label { color: var(--ink-500); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.75rem 1.25rem 4rem; }
  .card-body { padding: 1.25rem; }
  .card-header { padding: 1.25rem 1.25rem 1rem; }
  .header-inner { height: 72px; padding: 0 1rem; }
  .header-logo img { height: 50px; }
  .header-badge { font-size: 0.72rem; padding: 6px 14px; }
  .form-steps { display: none; }
}

/* ─── Animations ─────────────────────────────────────────────────────────── */
.fade-in { animation: fade-in 0.35s ease-out both; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-up { animation: slide-up 0.4s cubic-bezier(0.4,0,0.2,1) both; }

@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
