/* ==========================================================================
   VietAZ Core – Submit Form Styles
   Moved from theme to plugin for proper component ownership
   ========================================================================== */

/* =========================
   Login Required Message
   ========================= */
.vx-submit-login-required {
  max-width: 520px;
  margin: 48px auto 64px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(14, 165, 233, 0.18);
  border: 1px solid var(--vz-sky-200);
  padding: 40px 36px;
  text-align: center;
}

.vx-submit-login-icon {
  font-size: 60px;
  line-height: 1;
  margin-bottom: 18px;
  animation: vx-bounce 2s infinite;
}

@keyframes vx-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.vx-submit-login-required h3 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--vx-text);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.vx-submit-login-required > p {
  font-size: 15px;
  color: var(--vx-text-soft);
  line-height: 1.6;
  margin: 0 0 26px;
}

.vx-submit-login-required .vx-btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--vz-sky-500), var(--vz-sky-700));
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 10px 22px rgba(var(--vz-sky-200-rgb), 0.45);
  text-decoration: none;
  margin: 0 0 18px;
}

.vx-submit-login-required .vx-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(var(--vz-sky-200-rgb), 0.6);
}

.vx-submit-login-required .vx-btn--primary span {
  font-size: 18px;
}

.vx-submit-login-help {
  font-size: 13px;
  color: var(--vx-text-soft);
  margin: 0;
}

.vx-submit-login-help a {
  color: var(--vz-sky-600);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.18s ease;
}

.vx-submit-login-help a:hover {
  color: var(--vz-sky-700);
  text-decoration: underline;
}

@media (max-width: 576px) {
  .vx-submit-login-required {
    padding: 32px 24px;
    margin: 24px 16px 40px;
    border-radius: 16px;
  }

  .vx-submit-login-icon {
    font-size: 52px;
  }

  .vx-submit-login-required h3 {
    font-size: 24px;
  }

  .vx-submit-login-required > p {
    font-size: 14px;
  }
}

/* =========================
   Main Submit Layout
   ========================= */
.vx-submit {
  padding: 28px 0 60px;
}

.vx-submit__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

.vx-submit__intro {
  max-width: 100%;
}

/* Eyebrow + title + subtitle */
.vx-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vx-primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.vx-page-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.03em;
  color: var(--vz-navy-900, #111827);
}

.vx-page-subtitle {
  font-size: 14px;
  color: var(--vx-text-muted, #6b7280);
  margin: 0 0 16px;
  line-height: 1.6;
}

/* Highlights */
.vx-submit__highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--vx-text-muted, #6b7280);
}

.vx-submit__highlights li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.vx-submit__highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--vx-primary-soft, #bfdbfe);
}

.vx-submit__form {
  flex: 1;
}

/* Card form */
.vx-submit__card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 16px 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.03);
}

/* Form fields */
.vietaz-submit-form {
  margin: 0;
}

.vx-field {
  margin-bottom: 18px;
}

.vx-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--vz-navy-800, #1f2937);
}

/* Input / select / textarea */
.vx-submit__card input[type="text"],
.vx-submit__card input[type="tel"],
.vx-submit__card input[type="email"],
.vx-submit__card select,
.vx-submit__card textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--vx-border-soft, #e5e7eb);
  background: #f9fafb;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}

.vx-submit__card input[type="text"]:focus,
.vx-submit__card input[type="tel"]:focus,
.vx-submit__card input[type="email"]:focus,
.vx-submit__card select:focus,
.vx-submit__card textarea:focus {
  background: #ffffff;
  border-color: var(--vx-primary, #1e40af);
  box-shadow: 0 0 0 1px rgba(30, 64, 175, 0.06);
}

.vx-submit__card textarea {
  min-height: 140px;
  resize: vertical;
}

.vx-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Submit button */
.vx-submit__actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.vx-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 24px;
  height: 48px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: var(--vx-primary, #1e40af);
  color: #fff;
  transition: background 0.2s ease, transform 0.08s ease, box-shadow 0.16s ease;
}

.vx-btn-submit:hover {
  background: var(--vx-primary-dark, #1e3a8a);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.22);
}

/* =========================
   Breakpoints
   ========================= */
@media (min-width: 600px) {
  .vx-submit {
    padding: 32px 0 70px;
  }

  .vx-submit__inner {
    padding: 0 24px;
    gap: 32px;
  }

  .vx-submit__card {
    padding: 22px 24px 26px;
    border-radius: 20px;
  }

  .vx-btn-submit {
    width: auto;
    padding-inline: 26px;
  }

  .vx-submit__actions {
    justify-content: flex-end;
    margin-top: 14px;
  }
}

@media (min-width: 900px) {
  .vx-submit__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 52px;
  }

  .vx-submit__intro {
    flex: 0 0 280px;
    max-width: 280px;
    padding-right: 10px;
    position: relative;
  }

  .vx-submit__intro::after {
    content: "";
    position: absolute;
    right: -26px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: linear-gradient(
      to bottom,
      rgba(148, 163, 184, 0),
      rgba(148, 163, 184, 0.55),
      rgba(148, 163, 184, 0)
    );
  }

  .vx-submit__card {
    border-radius: 22px;
  }

  .vx-field-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================
   Packages UI
   ========================= */
.vx-field--packages {
  margin-bottom: 22px;
}

.vx-field--packages > label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--vz-navy-800, #1f2937);
}

.vx-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.vx-package-option {
  cursor: pointer;
  display: block;
}

.vx-package-option input[type="radio"] {
  display: none;
}

.vx-package-card {
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--vx-border-soft, #e5e7eb);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.22s ease;
}

.vx-package-card--featured {
  border-color: #f97316;
  box-shadow: 0 8px 22px rgba(248, 148, 58, 0.2);
}

.vx-package-option input[type="radio"]:checked + .vx-package-card {
  border-color: var(--vx-primary, #1e40af);
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.18);
  transform: translateY(-2px);
}

.vx-package-name {
  font-weight: 700;
  color: var(--vz-navy-900, #111827);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vx-package-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vx-package-meta {
  font-size: 13px;
  color: #6b7280;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.vx-package-meta span {
  background: #f3f4f6;
  padding: 3px 8px;
  border-radius: 999px;
}

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

/* ==========================================================================
   SALARY BUILDER
   ========================================================================== */

.vx-salary-builder {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.vx-salary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vx-salary-type {
  flex: 1;
  min-width: 140px;
}

.vx-salary-range input {
  width: 80px !important;
  text-align: center;
}

.vx-salary-range span {
  color: #64748b;
  font-weight: 500;
}

.vx-salary-split-label {
  font-size: 14px !important;
  color: #64748b;
  margin-bottom: 0 !important;
}

.vx-salary-split {
  width: 100px;
}

.vx-salary-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

.vx-perk-checkbox {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px !important;
  transition: all 0.15s ease;
  margin-bottom: 0 !important;
}

.vx-perk-checkbox:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.vx-perk-checkbox input {
  width: auto !important;
  margin: 0;
}

.vx-perk-checkbox input:checked + span {
  color: #2563eb;
  font-weight: 500;
}
