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

:root {
  --bg-page: #06080d;
  --bg-panel: rgba(15, 22, 36, 0.85);
  --bg-input: rgba(8, 12, 21, 0.8);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(212, 175, 55, 0.35);
  --border-focus: rgba(212, 175, 55, 0.8);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #d4af37;
  --accent-strong: #fbbf24;
  --danger: #f87171;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --radius: 20px;
  --radius-sm: 12px;
  font-family: 'Plus Jakarta Sans', "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text-main);
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(at 0% 0%, rgba(212, 175, 55, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(17, 24, 39, 1) 0px, transparent 80%);
  background-attachment: fixed;
  font-family: 'Plus Jakarta Sans', "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

.public-form-shell {
  width: min(100%, 800px);
  margin: 0 auto;
  padding: 48px 16px;
  animation: formFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.public-form-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.public-form-head {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.brand {
  display: inline-grid;
  min-width: 80px;
  min-height: 80px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  color: var(--accent-strong);
  background: rgba(212, 175, 55, 0.06);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: scale(1.05);
}

.brand-logo {
  width: 84px;
  height: 84px;
  padding: 8px;
  background: #ffffff;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 30%, #f3f4f6 60%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.public-form-head p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 32px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field span {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.required-note {
  color: var(--accent-strong);
  font-size: 11px;
  font-style: normal;
  margin-left: 4px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--bg-input);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

textarea {
  min-height: 110px;
  padding: 12px 16px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #525b6c;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--border-focus);
  background: rgba(12, 17, 25, 0.95);
  box-shadow: 
    0 0 0 4px rgba(212, 175, 55, 0.12),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .checkbox-group {
    grid-template-columns: 1fr;
  }
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.checkbox-option:hover {
  border-color: var(--border-hover);
  background: rgba(212, 175, 55, 0.04);
  transform: translateY(-1px);
}

.checkbox-option:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
  outline: none;
}

.checkbox-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-option span {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 550;
}

.checkbox-option.is-checked {
  border-color: var(--accent);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}

/* Custom File Upload Area */
.file-upload-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 24px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  cursor: pointer;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.file-upload-card:hover {
  border-color: var(--accent);
  background: rgba(212, 175, 55, 0.02);
}

.file-upload-card.is-dragover {
  border-color: var(--accent-strong);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.2);
}

.file-upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.file-upload-card:hover .file-upload-icon {
  transform: scale(1.15) translateY(-2px);
}

.file-upload-text {
  font-weight: 600;
  color: var(--text-main);
  font-size: 14px;
}

.file-upload-subtext {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.file-selected-name {
  margin-top: 8px;
  font-size: 13px;
  color: var(--accent-strong);
  font-weight: 600;
  background: rgba(212, 175, 55, 0.1);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  animation: pulseName 2s infinite ease-in-out;
}

@keyframes pulseName {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.7; }
}

.is-hidden {
  display: none !important;
}

.public-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 32px;
  border-radius: var(--radius-sm);
  color: #0b0d12;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-weight: 750;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: all 0.6s ease;
}

.btn:hover::after {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.35);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.submit-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.public-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 7, 11, 0.85);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.public-modal-backdrop[hidden] {
  display: none;
}

.public-modal-shell {
  position: relative;
  width: min(100%, 460px);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #111722 0%, #0d131c 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
  transform: scale(0.9);
  opacity: 0;
  animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleUp {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.public-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  color: var(--text-muted);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.public-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  transform: rotate(90deg);
}

.public-modal-icon {
  margin: 0 auto 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.public-modal-shell h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.public-modal-shell p {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.public-modal-shell .btn {
  width: 100%;
  box-shadow: none;
}

/* Hero Header */
.public-hero {
  text-align: center;
  max-width: 800px;
  margin: 40px auto 0 auto;
  padding: 0 16px;
  animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  display: inline-block;
  position: relative;
  margin-bottom: 24px;
}

.hero-logo {
  max-width: 480px;
  max-height: 200px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(212, 175, 55, 0.15));
  transition: all 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.05) translateY(-2px);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 16px rgba(212, 175, 55, 0.3));
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 24px auto;
}

.hero-benefits {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.benefit-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.benefit-tag:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateY(-1px);
}

/* Stepper Container */
.stepper-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, transparent 100%);
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: all 0.3s ease;
}

.step-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.stepper-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0 16px;
  position: relative;
  overflow: hidden;
}

.stepper-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  transition: width 0.5s ease-in-out;
}

/* Stepper Active State */
.stepper-step.is-active .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: #06080d;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.stepper-step.is-active .step-label {
  color: #ffffff;
  font-weight: 700;
}

/* Stepper Completed State */
.stepper-step.is-completed .step-number {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.stepper-step.is-completed .step-label {
  color: var(--text-main);
}

/* Form Steps contents */
.form-step-content {
  display: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-step-content.is-active {
  display: block;
  opacity: 1;
  transform: translateX(0);
  animation: stepFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateX(15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-header {
  padding: 32px 32px 0 32px;
}

.step-header h2 {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.step-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Inner form grid */
.form-grid-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 32px;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px 32px 32px;
  margin-top: 12px;
}

/* Action buttons */
.btn-next {
  background: linear-gradient(135deg, var(--accent) 0%, #b8921e 100%);
  color: #06080d;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.btn-next:hover {
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-submit {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

/* Responsiveness */
@media (max-width: 768px) {
  .public-hero {
    margin-top: 24px;
  }
  
  .hero-title {
    font-size: 26px;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
  
  .stepper-container {
    padding: 20px 16px;
    gap: 8px;
  }
  
  .step-label {
    display: none; /* Hide labels on mobile to avoid layout breaking */
  }
  
  .stepper-line {
    margin: 0 8px;
  }
  
  .form-grid-inner {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
  }
  
  .step-header {
    padding: 20px 20px 0 20px;
  }
  
  .step-actions {
    padding: 0 20px 20px 20px;
  }
  
  .public-form-shell {
    padding: 16px 8px;
  }
}


