/* Proxima Nova Font Face Declarations */
@font-face {
  font-family: "Proxima Nova";
  src: url("/static/fonts/ProximaNova-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("/static/fonts/ProximaNova-RegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("/static/fonts/ProximaNova-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("/static/fonts/ProximaNova-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("/static/fonts/ProximaNova-SemiboldItalic.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("/static/fonts/ProximaNova-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("/static/fonts/ProximaNova-BoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* CSS Custom Properties */
:root {
  --radius: 0.65rem;
  --brand-primary: #1288ef;
  --brand-primary-hover: #0f7ad8;
  --brand-border: #d9dde1;
  --brand-accent: #89cbff;
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: var(--brand-primary);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --border: var(--brand-border);
  --input: var(--brand-border);
  --ring: oklch(0.708 0 0);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "Proxima Nova", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #f8fafc;
  color: #0f172a;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Utility Classes */
.text-desc {
  color: #6e7881;
}

/* Max Width Wrapper */
.max-width-wrapper {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

@media (min-width: 768px) {
  .max-width-wrapper {
    max-width: 1072px;
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

/* Hero Section */
.hero-section {
  border-radius: 1.5rem;
  background: linear-gradient(to right, #f97316, #fb923c, #f97316);
  padding: 1px;
}

.hero-content {
  border-radius: calc(1.5rem - 1px);
  background: white;
  padding: 2.5rem 1.5rem;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 2.5rem 3rem;
  }
}

.hero-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: #f97316;
}

.hero-title {
  margin-top: 0.75rem;
  max-width: 48rem;
  font-size: 2.25rem;
  font-weight: 600;
  color: #0f172a;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-description {
  margin-top: 1rem;
  max-width: 42rem;
  font-size: 1rem;
  color: #475569;
}

/* Job Card */
.job-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .job-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.job-card {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: white;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  cursor: pointer;
}

.job-card:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.job-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.job-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6e7881;
  margin-bottom: 0.75rem;
}

.job-card-description {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
}

/* Filter Section */
.filter-section {
  margin: 2.5rem 0;
}

.filter-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.filter-select {
  width: 100%;
  max-width: 20rem;
  height: 2.5rem;
  border: 1px solid var(--brand-border);
  border-radius: 0.375rem;
  background: white;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  color: #0f172a;
}

.filter-select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(18, 136, 239, 0.1);
}

/* Empty State */
.empty-state {
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  background: white;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
}

.empty-state-description {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

/* Loading State */
.loading-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .loading-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.loading-card {
  height: 11rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: white;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Error State */
.error-state {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 1.5rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.error-state-title {
  font-size: 1rem;
  font-weight: 600;
  color: #dc2626;
}

.error-state-message {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #ef4444;
}

.error-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--brand-primary);
  color: white;
  border: 1px solid var(--brand-primary);
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
}

.btn-primary:disabled {
  background: #94a3b8;
  border-color: #94a3b8;
  cursor: not-allowed;
}

.btn-secondary {
  border: 1px solid var(--brand-border);
  background: white;
  color: #0f172a;
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-secondary:disabled {
  color: #94a3b8;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

.btn-error {
  border: 1px solid #ef4444;
  background: transparent;
  color: #dc2626;
}

.btn-error:hover {
  background: #ef4444;
  color: white;
}

.hidden {
  display: none;
}

.back-button-wrapper {
  margin-top: 1.5rem;
}

/* Spacing Utilities */
.space-y-10>*+* {
  margin-top: 2.5rem;
}

.my-10 {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

/* Job Detail Page */
.job-header {
  border-bottom: 1px solid var(--brand-border);
  padding-bottom: 1rem;
}

.job-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.job-title {
  font-size: 2.25rem;
  font-weight: 400;
  color: #0f172a;
}

.job-actions {
  display: flex;
  gap: 0.75rem;
}

.job-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6e7881;
}

.job-content {
  margin-top: 1rem;
}

.job-description {
  width: 100%;
}

.job-description-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.job-description-text {
  flex: 1;
}

.job-sidebar {
  width: 16rem;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .job-description-header {
    flex-direction: column;
  }

  .job-sidebar {
    width: 100%;
    text-align: left;
  }
}

.prose {
  color: #6e7881;
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin-top: 1rem;
  margin-bottom: 0.375rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin-top: 0.75rem;
  margin-bottom: 0.375rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  font-weight: 600;
  color: #0f172a;
}

.prose a {
  color: var(--brand-primary);
}

.prose a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6e7881;
  border-bottom: 1px solid var(--brand-accent);
  margin-bottom: 0.5rem;
}

.page-header {
  border-bottom: 1px solid var(--brand-border);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.page-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-footer {
  border-top: 1px solid var(--brand-border);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.875rem;
  color: #6e7881;
}

.footer-text {
  font-size: 0.875rem;
  color: #6e7881;
}

/* Responsive Design */

@media (max-width: 640px) {
  .job-header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .job-title {
    font-size: 1.875rem;
  }

  .page-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}


/* Application Form Styles */
.form-section {
  margin: 2rem 0;
  scroll-margin-top: 2rem;
}

.application-form {
  margin-top: 2rem;
}

.form-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 0.5rem;
  display: block;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: 2.5rem;
  border: 1px solid var(--brand-border);
  border-radius: 0.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  color: #1e293b;
  background: white;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-textarea {
  height: auto;
  min-height: 6rem;
  padding: 0.75rem;
  resize: vertical;
  line-height: 1.5;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(18, 136, 239, 0.1);
}

.form-file {
  width: 100%;
  border: 2px dashed var(--brand-border);
  padding: 1rem 0.75rem;
  font-size: 0.875rem;
  color: #64748b;
  cursor: pointer;
  transition: border-color 0.2s;
  border-radius: 0.25rem;
  background: #fafafa;
}

.form-file:hover {
  border-color: var(--brand-primary);
  background: white;
}

.form-file::file-selector-button {
  margin-right: 0.75rem;
  border: none;
  background: var(--brand-primary);
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0.25rem;
}

.form-file::file-selector-button:hover {
  background: var(--brand-primary-hover);
}

.form-help {
  font-size: 0.75rem;
  color: #6e7881;
}

.form-error {
  font-size: 0.875rem;
  color: #ef4444;
}

.form-error-box {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  border-radius: 0.5rem;
  color: #dc2626;
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-error-box ul {
  margin: 0.5rem 0 0 0;
  padding: 0;
}

.form-error-box li {
  margin-top: 0.25rem;
}

.form-success {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid #86efac;
  background: #f0fdf4;
  border-radius: 0.5rem;
  color: #15803d;
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.form-actions .btn {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

.form-dynamic-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-dynamic-fields .form-field {
  width: 100%;
}

/* Checkbox styling */
.form-checkbox {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--brand-border);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: normal;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #475569;
}

.form-checkbox label:hover {
  border-color: var(--brand-primary);
  background: #f8fafc;
}

.form-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  accent-color: var(--brand-primary);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }
}

/* Detail Page Refactoring Classes */
.logo-img {
  height: 2rem;
  width: auto;
}

.jobs-link {
  border-bottom: 1px solid var(--brand-accent);
}

.main-content {
  margin-top: 1rem;
}

.back-link-wrapper {
  margin-bottom: 0.5rem;
}

.prose-wrapper {
  margin-top: 1rem;
}

.job-actions-wrapper {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
}

.apply-section-header {
  border-top: 1px solid var(--brand-border);
  padding-top: 2rem;
}

.apply-section-title {
  margin-bottom: 0.5rem;
}

.apply-section-desc {
  margin-bottom: 2rem;
}

.error-box-title {
  font-weight: 600;
}

.error-box-list {
  list-style: disc;
  list-style-position: inside;
  margin-top: 0.5rem;
}

.referral-field {
  display: none;
  margin-top: 1.5rem;
}

.dynamic-fields-header {
  border-top: 1px solid var(--brand-border);
  margin-top: 2rem;
  padding-top: 2rem;
}

.dynamic-fields-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.required-asterisk {
  color: #ef4444;
}

.resume-field-wrapper {
  margin-top: 1.5rem;
}

.back-button-wrapper {
  margin-top: 1.5rem;
}