/* Recruitment list, reservation form and confirmation. Loaded after brand.css. */

/* ---------- Filters ---------- */
.as-filter { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow); margin: -60px 0 36px; position: relative; z-index: 2; }
.as-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.as-filter-head h2 { font-size: 20px; color: var(--navy); font-weight: 700; margin: 0; padding-right: 12px; border-right: 4px solid var(--gold); }
.as-filter-head span { color: var(--muted); font-size: 14px; }
.as-filter-grid { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 14px; align-items: end; }
.as-filter label, .as-label { display: block; font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.as-label span { color: #C0392B; }
.as-label small { color: var(--muted); font-weight: 400; }
.as-filter select, .as-input {
  width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 0 14px;
  font: inherit; font-size: 15px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.as-filter select:focus, .as-input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(168, 130, 42, .14); }
.as-input.is-invalid { border-color: #C0392B; }
.as-field-error { color: #C0392B; font-size: 13px; margin-top: 5px; }
.as-filter-actions { display: flex; gap: 8px; }
@media (max-width: 991.98px) {
  .as-filter-grid { grid-template-columns: repeat(2, 1fr); }
  .as-filter-actions { grid-column: 1 / -1; }
  .as-filter-actions .as-btn { flex: 1; }
}
@media (max-width: 575.98px) { .as-filter-grid { grid-template-columns: 1fr; } }

/* ---------- Candidate cards ---------- */
.as-cvs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 991.98px) { .as-cvs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .as-cvs { grid-template-columns: 1fr; } }
.as-cv { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; transition: .25s; }
.as-cv:hover { box-shadow: var(--shadow-lg); border-color: var(--gold-light); transform: translateY(-4px); }
.as-cv-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.as-cv-top .as-avatar { width: 54px; height: 54px; margin: 0; font-size: 20px; flex: none; }
.as-cv-title { flex: 1; min-width: 0; }
.as-cv-title h3 { font-size: 18px; color: var(--navy); font-weight: 700; margin: 0 0 2px; }
.as-cv-title span { color: var(--muted); font-size: 14px; }
.as-cv-flag { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.as-cv-info { list-style: none; padding: 0; margin: 14px 0; }
.as-cv-info li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; }
.as-cv-info span { color: var(--muted); }
.as-cv-info b { color: var(--ink); text-align: left; }
.as-cv-price { display: flex; justify-content: space-between; align-items: center; background: var(--gold-soft); border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; }
.as-cv-price span { color: #8A6A1F; font-weight: 700; font-size: 14px; }
.as-cv-price strong { color: var(--gold); font-size: 22px; }
.as-cv-price small { font-size: 13px; color: #8A6A1F; }
.as-cv-actions { margin-top: auto; }
.as-cv-actions .as-btn { width: 100%; }
.as-cv-links { display: flex; justify-content: center; gap: 16px; margin-top: 12px; font-size: 14px; font-weight: 700; }
.as-cv-links a { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }

.as-pages { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.as-pages a, .as-pages span { padding: 9px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; }
.as-pages a:hover { border-color: var(--navy); }
.as-pages .current { border: 0; background: transparent; color: var(--muted); }
.as-pages .disabled { opacity: .45; }

.as-empty-state { text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: 22px; padding: 56px 20px; }
.as-empty-state .as-icon { margin: 0 auto 14px; }
.as-empty-state h3 { color: var(--navy); font-size: 21px; font-weight: 700; }
.as-empty-state p { color: var(--muted); margin-bottom: 18px; }
.as-note { text-align: center; color: var(--muted); font-size: 14px; margin: 28px 0 0; }

/* ---------- Reservation form ---------- */
.as-reserve-candidate {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 22px 24px; box-shadow: var(--shadow); margin: -60px 0 32px; position: relative; z-index: 2;
}
.as-reserve-candidate .as-avatar { margin: 0; width: 64px; height: 64px; font-size: 24px; flex: none; }
.as-reserve-candidate-info { flex: 1; min-width: 220px; }
.as-reserve-candidate-info h2 { font-size: 21px; color: var(--navy); font-weight: 700; margin: 0 0 8px; }
.as-reserve-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.as-reserve-tags span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); font-size: 13px; font-weight: 700; }
.as-reserve-tags img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.as-reserve-price { text-align: center; background: var(--gold-soft); border-radius: 16px; padding: 12px 22px; }
.as-reserve-price span { display: block; color: #8A6A1F; font-size: 13px; font-weight: 700; }
.as-reserve-price strong { color: var(--gold); font-size: 26px; }
.as-reserve-price small { font-size: 13px; }

.as-step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.as-step-head > span { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold-light); font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; font-size: 17px; }
.as-step-head h3 { margin: 0; font-size: 20px; color: var(--navy); font-weight: 700; }
.as-step-head p { margin: 0; color: var(--muted); font-size: 14px; }
.as-team-select { max-width: none; }

.as-form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.as-reserve-submit { text-align: center; border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 22px; }
.as-reserve-submit .as-btn { min-width: 260px; }
.as-reserve-submit p { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.as-spinner { width: 16px; height: 16px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; display: none; animation: as-spin .7s linear infinite; }
.as-btn.loading .as-spinner { display: inline-block; }
.as-btn:disabled { opacity: .8; cursor: wait; transform: none; }

.as-alert { border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; font-size: 15px; }
.as-alert a { font-weight: 700; margin-right: 6px; }
.as-alert-warn { background: var(--gold-soft); border: 1px solid rgba(168, 130, 42, .35); color: #6E5418; }
.as-alert-error { background: #FDECEA; border: 1px solid #F5C6C0; color: #C0392B; }

/* ---------- Confirmation ---------- */
.as-success { max-width: 620px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 44px 32px; box-shadow: var(--shadow-lg); }
.as-success-icon { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 20px; background: #E8F6EE; color: #1E7B45; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px #F3FBF6; }
.as-success h1 { font-size: 28px; color: var(--navy); font-weight: 700; margin-bottom: 10px; }
.as-success-lead { color: var(--muted); font-size: 16px; margin-bottom: 26px; }
.as-success-number { background: var(--navy); color: #fff; border-radius: 18px; padding: 18px; margin-bottom: 22px; }
.as-success-number span, .as-success-number small { display: block; color: rgba(255, 255, 255, .7); font-size: 13px; }
.as-success-number strong { display: block; font-size: 28px; color: var(--gold-light); letter-spacing: 1px; margin: 4px 0; font-family: Arial, sans-serif; }
.as-success-details { list-style: none; padding: 0; margin: 0 0 26px; text-align: right; }
.as-success-details li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.as-success-details span { color: var(--muted); }
.as-success-details b { color: var(--ink); text-align: left; }
.as-success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.as-success-back { display: inline-block; margin-top: 22px; color: var(--muted); font-weight: 700; }
