/* Xenova Labor Services — Employment Application Form */

.application-page {
  background: linear-gradient(180deg, var(--cyan-50) 0%, var(--white) 220px);
}

.application-main {
  padding-top: var(--header-total);
  min-height: calc(100vh - var(--header-total));
}

.application-hero {
  padding: 3rem 0 2rem;
  background:
    linear-gradient(135deg, rgba(7, 13, 22, 0.92) 0%, rgba(19, 35, 55, 0.88) 45%, rgba(26, 109, 216, 0.75) 100%);
  color: #fff;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.application-hero .section-label {
  color: var(--cyan-200);
}

.application-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.application-hero-lead {
  margin: 0 auto;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.65;
}

.application-form {
  padding: 2.5rem 0 4rem;
}

.form-alert {
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
}

.form-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.form-section {
  margin: 0 0 1.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-section legend {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  margin: 0;
  padding: 1.15rem 1.5rem;
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.form-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(26, 109, 216, 0.35);
  color: var(--cyan-200);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.form-section-title {
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.form-grid {
  display: grid;
  gap: 1.15rem 1.25rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label,
.form-group .field-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-700);
}

.req {
  color: var(--royal);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.78rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(26, 109, 216, 0.15);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.radio-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .radio-row-inline {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.radio-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cyan-50);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color 0.2s, background 0.2s;
}

.radio-pill:hover {
  border-color: rgba(26, 109, 216, 0.35);
}

.radio-pill input {
  accent-color: var(--royal);
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.radio-pill:has(input:checked) {
  border-color: var(--royal);
  background: var(--cyan-100);
  color: var(--navy-900);
}

.file-drop {
  position: relative;
  border: 2px dashed rgba(26, 109, 216, 0.35);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--cyan-50) 0%, var(--white) 100%);
  transition: border-color 0.2s, background 0.2s;
}

.file-drop.is-dragover {
  border-color: var(--royal);
  background: var(--cyan-100);
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-drop-inner {
  padding: 2rem 1.5rem;
  text-align: center;
  pointer-events: none;
}

.file-drop-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.75rem;
  color: var(--royal);
}

.file-drop-inner p {
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.file-drop-inner strong {
  color: var(--royal);
}

.file-drop-hint {
  font-size: 0.82rem !important;
  opacity: 0.85;
}

.file-drop-name {
  margin-top: 0.75rem !important;
  font-weight: 700;
  color: var(--navy-900) !important;
}

.acknowledgment-box {
  margin: 0 1.5rem 1.25rem;
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--royal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--cyan-50);
}

.acknowledgment-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.form-disclaimer {
  margin: 0 0 1.75rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
}

.form-disclaimer h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.form-disclaimer p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.form-disclaimer strong {
  color: var(--cyan-200);
}

.form-actions {
  max-width: 420px;
  margin: 0 auto;
}

.form-actions .btn-block {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

/* Success state */
.application-success {
  padding: 3rem 0 5rem;
}

.success-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--royal) 0%, var(--navy-700) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 36px;
  height: 36px;
}

.success-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-900);
}

.success-card p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.success-card .btn {
  margin: 0 0.35rem 0.5rem;
}

.application-footer {
  padding: 1.5rem 0;
}

.application-footer .footer-bottom {
  border-top: none;
  padding-top: 0;
}

.application-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.application-footer a:hover {
  color: var(--cyan-200);
}

#license-details-wrap.is-hidden {
  display: none;
}

@media (max-width: 959px) {
  .application-page .site-nav {
    display: none !important;
  }
}
