.host-page-header {
  margin-bottom: 32px;
}

.host-page-header .welcome-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #4f46c8;
}

.host-page-header h1 {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.2;
  color: #1f2937;
}

.host-page-header .welcome-text {
  max-width: 700px;
  margin: 0;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.6;
}

.application-stepper {
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding: 22px 25px;
  background: #ffffff;
  border: 1px solid #e8e9ef;
  border-radius: 14px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.02);
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.step-number {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  font-weight: 700;
  font-size: 14px;
}

.step-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  white-space: nowrap;
}

.step-info strong {
  font-size: 14px;
  color: #374151;
}

.step-info span {
  font-size: 12px;
  color: #9ca3af;
}

.step.active .step-number {
  background: #4f46c8;
  color: #ffffff;
}

.step.active .step-info strong {
  color: #4f46c8;
}

.step.completed .step-number {
  background: #4f46c8;
  color: #ffffff;
  font-size: 0;
}

.step.completed .step-number::after {
  content: "✓";
  font-size: 16px;
  font-weight: 700;
}

.step.completed .step-info strong {
  color: #4f46c8;
}

.step-line {
  flex: 1;
  min-width: 30px;
  height: 1px;
  margin: 0 18px;
  background: #e5e7eb;
}

.application-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e8e9ef;
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.card-heading {
  margin-bottom: 30px;
}

.card-heading h2 {
  margin: 8px 0 10px;
  font-size: 26px;
  line-height: 1.3;
  color: #1f2937;
}

.card-heading p:not(.section-label) {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

.section-label {
  margin: 0;
  color: #4f46c8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.form-grid {
  width: 100%;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);
  gap: 22px;
}

.form-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.optional {
  margin-left: 5px;
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 13px 14px;
  border: 1px solid #d9dce5;
  border-radius: 9px;
  background: #ffffff;
  color: #1f2937;
  font-family: inherit;
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a1a6b2;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4f46c8;
  box-shadow:
    0 0 0 3px
    rgba(79, 70, 200, 0.1);
}

.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
  border-color: #dc3545;
  background: #fff8f8;
  box-shadow:
    0 0 0 3px
    rgba(220, 53, 69, 0.08);
}

.form-group input.input-success,
.form-group select.input-success,
.form-group textarea.input-success {
  border-color: #198754;
  background: #f8fffb;
}

.form-group input.input-error:focus,
.form-group select.input-error:focus,
.form-group textarea.input-error:focus {
  border-color: #dc3545;
  box-shadow:
    0 0 0 4px
    rgba(220, 53, 69, 0.12);
}

.form-error {
  display: block;
  margin-top: 6px;
  color: #dc3545;
  font-size: 12px;
  line-height: 1.4;
}

.form-group input[type="file"] {
  padding: 10px;
  cursor: pointer;
}

.form-group input[type="file"].input-error {
  border-color: #dc3545;
  background: #fff8f8;
}

.form-group small {
  margin-top: 7px;
  color: #9ca3af;
  font-size: 12px;
}

.existing-file {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #f4f3ff;
  color: #5146b8;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
}

.info-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 25px;
  padding: 15px 18px;
  border-radius: 10px;
  background: #f4f3ff;
  border: 1px solid #e4e1ff;
}

.info-message span {
  flex-shrink: 0;
  font-size: 18px;
}

.info-message p {
  margin: 0;
  color: #5b5b72;
  font-size: 13px;
  line-height: 1.6;
}

.document-heading {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eeeeF2;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid #eeeeF2;
}

.primary-btn,
.secondary-btn {
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  border: none;
  background: #4f46c8;
  color: #ffffff;
}

.primary-btn:hover {
  background: #4038a8;
  transform: translateY(-1px);
}

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

.secondary-btn {
  border: 1px solid #d9dce5;
  background: #ffffff;
  color: #4b5563;
}

.secondary-btn:hover {
  border-color: #4f46c8;
  color: #4f46c8;
}

.review-section {
  padding: 22px 0;
  border-bottom: 1px solid #eeeeF2;
}

.review-section:first-of-type {
  padding-top: 0;
}

.review-section:last-of-type {
  border-bottom: none;
}

.review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.review-heading h3 {
  margin: 0;
  font-size: 17px;
  color: #1f2937;
}

.edit-step-btn {
  padding: 0;
  border: none;
  background: transparent;
  color: #4f46c8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.edit-step-btn:hover {
  text-decoration: underline;
}

.review-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);
  gap: 20px;
}

.review-grid > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-grid .full-width {
  grid-column: 1 / -1;
}

.review-grid span {
  color: #8b8f9a;
  font-size: 12px;
}

.review-grid strong {
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.terms-box {
  margin-top: 25px;
  padding: 17px 18px;
  border-radius: 10px;
  background: #f8f9fc;
  border: 1px solid #e6e8ef;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.terms-box.input-error {
  border-color: #dc3545;
  background: #fff8f8;
}

.terms-box label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.terms-box input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #4f46c8;
}

.terms-box input.input-error {
  outline: 2px solid #dc3545;
  outline-offset: 2px;
}

.terms-error {
  display: block;
  margin-top: 8px;
  color: #dc3545;
  font-size: 12px;
  line-height: 1.4;
}

.form-message {
  margin: 15px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

@media (min-width: 1400px) {
  .application-card {
    padding: 40px;
  }
}

@media (max-width: 1100px) {
  .application-stepper {
    padding: 20px;
  }

  .step-info span {
    display: none;
  }

  .step {
    min-width: auto;
  }

  .step-line {
    margin: 0 12px;
  }

  .application-card {
    padding: 30px;
  }
}

@media (max-width: 900px) {
  .application-stepper {
    overflow-x: auto;
    padding: 18px;
  }

  .step {
    flex-shrink: 0;
  }

  .step-line {
    min-width: 30px;
  }

  .application-card {
    padding: 28px;
  }
}

@media (max-width: 700px) {
  .host-page-header {
    margin-bottom: 25px;
  }

  .host-page-header h1 {
    font-size: 30px;
  }

  .host-page-header .welcome-text {
    font-size: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: auto;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .review-grid .full-width {
    grid-column: auto;
  }

  .application-stepper {
    padding: 15px;
  }

  .step-info span {
    display: none;
  }

  .step-line {
    margin: 0 10px;
    min-width: 20px;
  }

  .application-card {
    padding: 22px;
  }

  .step-actions {
    gap: 12px;
  }

  .primary-btn,
  .secondary-btn {
    flex: 1;
  }
}

@media (max-width: 450px) {
  .application-stepper {
    display: none;
  }

  .host-page-header h1 {
    font-size: 26px;
  }

  .application-card {
    padding: 18px;
  }

  .step-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    flex: none;
  }
}
/* =========================================
   APPLY HOST PAGE - MAIN LAYOUT
========================================= */

.apply-host-page {
  --apply-bg: #f7f8fc;
  --apply-card: #ffffff;
  --apply-text: #202438;
  --apply-muted: #85899c;
  --apply-border: #e8eaf2;
  --apply-primary: #5b50df;
  --apply-surface: #f5f5fc;

  min-height: 100vh;
  margin: 0;
  background: var(--apply-bg);
  color: var(--apply-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Main content container */

.apply-host-page .apply-host-content {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 42px clamp(22px, 4vw, 60px) 70px;
  box-sizing: border-box;
}

/* =========================================
   PAGE HEADER
========================================= */

.apply-host-page .host-page-header {
  margin-bottom: 32px;
}

.apply-host-page .host-page-header .welcome-label {
  margin: 0 0 12px;
  color: var(--apply-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
}

.apply-host-page .host-page-header h1 {
  margin: 0;
  color: var(--apply-text);
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.apply-host-page .host-page-header .welcome-text {
  max-width: 650px;
  margin: 13px 0 0;
  color: var(--apply-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* =========================================
   APPLICATION STEPPER
========================================= */

.apply-host-page .application-stepper {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 28px;
  padding: 23px 28px;
  background: var(--apply-card);
  border: 1px solid var(--apply-border);
  border-radius: 17px;
  box-shadow: 0 5px 20px rgba(25, 30, 60, 0.035);
  box-sizing: border-box;
}

.apply-host-page .step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.apply-host-page .step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--apply-surface);
  color: var(--apply-muted);
  font-size: 13px;
  font-weight: 750;
  flex-shrink: 0;
}

.apply-host-page .step-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.apply-host-page .step-info strong {
  color: var(--apply-text);
  font-size: 13px;
  font-weight: 750;
}

.apply-host-page .step-info span {
  color: var(--apply-muted);
  font-size: 11px;
}

.apply-host-page .step.active .step-number,
.apply-host-page .step.completed .step-number {
  background: var(--apply-primary);
  color: #ffffff;
}

.apply-host-page .step.active .step-info strong,
.apply-host-page .step.completed .step-info strong {
  color: var(--apply-primary);
}

.apply-host-page .step-line {
  flex: 1;
  min-width: 25px;
  height: 2px;
  margin: 0 18px;
  background: var(--apply-border);
}

/* =========================================
   APPLICATION FORM CARD
========================================= */

.apply-host-page #hostApplicationForm {
  width: 100%;
}

.apply-host-page .application-card {
  width: 100%;
  padding: clamp(25px, 3.5vw, 42px);
  background: var(--apply-card);
  border: 1px solid var(--apply-border);
  border-radius: 19px;
  box-shadow: 0 7px 28px rgba(25, 30, 60, 0.04);
  box-sizing: border-box;
}

.apply-host-page .card-heading {
  margin-bottom: 32px;
}

.apply-host-page .card-heading h2 {
  margin: 10px 0;
  color: var(--apply-text);
  font-size: clamp(22px, 2.5vw, 27px);
  font-weight: 750;
  letter-spacing: -0.7px;
}

.apply-host-page .card-heading p:not(.section-label) {
  color: var(--apply-muted);
  font-size: 13px;
  line-height: 1.7;
}

.apply-host-page .section-label {
  color: var(--apply-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

/* =========================================
   FORM GRID
========================================= */

.apply-host-page .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 22px;
}

.apply-host-page .form-group {
  min-width: 0;
}

.apply-host-page .form-group.full-width {
  grid-column: 1 / -1;
}

.apply-host-page .form-group label {
  margin-bottom: 9px;
  color: var(--apply-text);
  font-size: 13px;
  font-weight: 650;
}

.apply-host-page .optional {
  color: var(--apply-muted);
}

.apply-host-page .form-group input,
.apply-host-page .form-group select,
.apply-host-page .form-group textarea {
  width: 100%;
  min-height: 47px;
  padding: 12px 14px;
  border: 1px solid var(--apply-border);
  border-radius: 10px;
  background: var(--apply-card);
  color: var(--apply-text);
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apply-host-page .form-group textarea {
  min-height: 115px;
  resize: vertical;
}

.apply-host-page .form-group input::placeholder,
.apply-host-page .form-group textarea::placeholder {
  color: var(--apply-muted);
  opacity: 0.8;
}

.apply-host-page .form-group input:focus,
.apply-host-page .form-group select:focus,
.apply-host-page .form-group textarea:focus {
  outline: none;
  border-color: var(--apply-primary);
  box-shadow: 0 0 0 4px rgba(91, 80, 223, 0.09);
}

.apply-host-page .form-group small {
  color: var(--apply-muted);
  line-height: 1.6;
}

/* =========================================
   INFORMATION MESSAGE
========================================= */

.apply-host-page .info-message {
  padding: 17px 19px;
  border: 1px solid rgba(91, 80, 223, 0.15);
  border-radius: 12px;
  background: var(--apply-surface);
}

.apply-host-page .info-message p {
  color: var(--apply-muted);
  font-size: 12px;
  line-height: 1.7;
}

/* =========================================
   EXISTING DOCUMENT
========================================= */

.apply-host-page .existing-file {
  background: var(--apply-surface);
  color: var(--apply-primary);
  border: 1px solid var(--apply-border);
}

/* =========================================
   REVIEW SECTION
========================================= */

.apply-host-page .review-section {
  border-color: var(--apply-border);
}

.apply-host-page .review-heading h3 {
  color: var(--apply-text);
  font-size: 16px;
}

.apply-host-page .review-grid span {
  color: var(--apply-muted);
}

.apply-host-page .review-grid strong {
  color: var(--apply-text);
  font-size: 13px;
}

/* =========================================
   TERMS BOX
========================================= */

.apply-host-page .terms-box {
  background: var(--apply-surface);
  border-color: var(--apply-border);
}

.apply-host-page .terms-box label {
  color: var(--apply-text);
  font-size: 13px;
  line-height: 1.7;
}

/* =========================================
   FORM ACTION BUTTONS
========================================= */

.apply-host-page .step-actions {
  margin-top: 35px;
  padding-top: 25px;
  border-color: var(--apply-border);
}

.apply-host-page .primary-btn {
  min-height: 46px;
  padding: 12px 23px;
  border-radius: 10px;
  background: var(--apply-primary);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(91, 80, 223, 0.16);
}

.apply-host-page .primary-btn:hover {
  background: #4840bd;
  box-shadow: 0 7px 18px rgba(91, 80, 223, 0.23);
}

.apply-host-page .secondary-btn {
  min-height: 46px;
  padding: 12px 23px;
  border-radius: 10px;
  background: var(--apply-card);
  color: var(--apply-text);
  border-color: var(--apply-border);
  font-size: 13px;
}

.apply-host-page .secondary-btn:hover {
  border-color: var(--apply-primary);
  color: var(--apply-primary);
}

/* =========================================
   DARK MODE
========================================= */

html[data-theme="dark"] .apply-host-page {
  --apply-bg: #0b1120;
  --apply-card: #151e30;
  --apply-text: #f1f5f9;
  --apply-muted: #a1abc0;
  --apply-border: #29364b;
  --apply-primary: #a39aff;
  --apply-surface: #1c2940;
}

html[data-theme="dark"] .apply-host-page .application-stepper,
html[data-theme="dark"] .apply-host-page .application-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] .apply-host-page .form-group input,
html[data-theme="dark"] .apply-host-page .form-group select,
html[data-theme="dark"] .apply-host-page .form-group textarea {
  color-scheme: dark;
}

html[data-theme="dark"] .apply-host-page .terms-box,
html[data-theme="dark"] .apply-host-page .info-message {
  background: var(--apply-surface);
  border-color: var(--apply-border);
}

html[data-theme="dark"] .apply-host-page .review-grid strong {
  color: var(--apply-text);
}



@media (max-width: 900px) {
  .apply-host-page .apply-host-content {
    padding: 32px 24px 55px;
  }

  .apply-host-page .application-stepper {
    padding: 19px;
  }

  .apply-host-page .step-line {
    margin: 0 12px;
  }
}

@media (max-width: 700px) {
  .apply-host-page .apply-host-content {
    padding: 28px 17px 45px;
  }

  .apply-host-page .host-page-header h1 {
    font-size: 30px;
  }

  .apply-host-page .application-stepper {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 0;
  }

  .apply-host-page .step {
    flex-shrink: 0;
  }

  .apply-host-page .step-info span {
    display: none;
  }

  .apply-host-page .step-line {
    min-width: 20px;
    margin: 0 10px;
  }

  .apply-host-page .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .apply-host-page .form-group.full-width {
    grid-column: auto;
  }

  .apply-host-page .review-grid {
    grid-template-columns: 1fr;
  }

  .apply-host-page .review-grid .full-width {
    grid-column: auto;
  }

  .apply-host-page .application-card {
    padding: 23px 19px;
  }
}

@media (max-width: 450px) {
  .apply-host-page .application-stepper {
    display: none;
  }

  .apply-host-page .step-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .apply-host-page .primary-btn,
  .apply-host-page .secondary-btn {
    width: 100%;
    flex: none;
  }

  .apply-host-page .application-card {
    padding: 20px 16px;
  }
}
/* SweetAlert2 must appear above the navbar */
.swal2-container {
  z-index: 20000 !important;
}

.swal2-backdrop-show {
  z-index: 19999 !important;
}

.swal2-popup {
  z-index: 20001 !important;
}