/* File: /public/css/job/public_apply.css
   Modern, roomy styling for the public job apply page.
   Drop this file in your public css folder and include:
   <link rel="stylesheet" href="/css/job/public_apply.css" />
*/

/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap");

:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --heading: #0b1220;
  --muted: #6b7280;
  --accent-1: #2563eb;
  --accent-2: #7c3aed;
  --accent-grad: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  --card-radius: 14px;
  --pad-lg: 28px;
  --pad-md: 18px;
  --shadow-sm: 0 6px 22px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 18px 48px rgba(16, 24, 40, 0.09);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  font-size: 15px;
}

/* Page background & container adjustments (matches markup) */
body {
  background: var(--bg);
  color: var(--heading);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

.container.py-5 {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

/* Back button */
.mb-3 > a.btn.btn-sm.btn-outline-light {
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
}
.mb-3 > a.btn.btn-sm.btn-outline-light:hover {
  background: rgba(37, 99, 235, 0.04);
  color: var(--accent-1);
  transform: translateY(-2px);
}

/* Cards base */
.card {
  background: var(--panel);
  border-radius: var(--card-radius);
  border: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

/* hover lift */
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Main apply card padding */
.card.p-4 {
  padding: var(--pad-lg);
}

/* Sidebar card padding */
.card.p-3 {
  padding: var(--pad-md);
}

/* Headings */
h4.mb-3 {
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--heading);
}

/* Alerts fine-tune */
.alert {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
}

/* Form labels & inputs */
.form-label.small {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--heading);
  display: block;
  margin-bottom: 6px;
}

.form-control {
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 10px 12px;
  font-size: 0.95rem;
  transition: box-shadow 0.12s ease, border-color 0.12s ease,
    transform 0.12s ease;
  background: #fff;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

input[type="file"].form-control {
  padding: 8px 12px;
}

/* Textarea */
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Small helper / muted text */
.small.muted,
.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Buttons */
.btn-primary {
  background: var(--accent-grad);
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.12);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.16);
}

.btn-outline-light {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
}
.btn-outline-light:hover {
  background: rgba(15, 23, 42, 0.03);
  color: var(--accent-1);
}

/* Layout: right column card */
.col-lg-5 .card.p-3 {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

/* Small job meta in sidebar */
.col-lg-5 .small {
  color: var(--muted);
}

/* Skill tags (if you decide to convert .skills into pills) */
.skill-pill {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.06);
}

/* Form footer buttons alignment */
.d-flex.justify-content-end.gap-2.mt-3 {
  margin-top: 18px !important;
}

/* Responsive: stack columns on small screens and stretch buttons */
@media (max-width: 991.98px) {
  .col-lg-7,
  .col-lg-5 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .card.p-4,
  .card.p-3 {
    padding: 18px;
  }
  .d-flex.justify-content-end.gap-2.mt-3 {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .btn-primary,
  .btn-outline-light {
    width: 100%;
  }
}

/* Accessibility: focus outlines */
.form-control:focus,
.btn:focus,
a:focus {
  outline: 3px solid rgba(37, 99, 235, 0.1);
  outline-offset: 2px;
}

/* Minor utility */
.text-muted {
  color: var(--muted) !important;
}
