/* ============================================================
   APPLY PAGE (SCOPED) — OVERRIDES TAILWIND
============================================================ */

.apply-page{
  --rhs-red:#e23b31;
  --rhs-red-dark:#c92927;

  --text:#0f172a;
  --muted:#64748b;
  --muted-2:#475569;

  --page:#f6f7fb;
  --card:#ffffff;

  --border: rgba(15,23,42,.10);
  --border-soft: rgba(15,23,42,.08);

  --shadow: 0 18px 55px rgba(2,6,23,.08);
  --shadow-hover: 0 28px 80px rgba(2,6,23,.14);

  --radius: 22px;

  background: var(--page);
}

/* ===== Success / Error ===== */
.apply-page .apply-alert-success{
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.25);
  color: #065f46;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 800;
}

.apply-page .apply-alert-error{
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.20);
  color: #7f1d1d;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}

.apply-page .apply-alert-error ul{
  margin: 10px 0 0;
  padding-left: 18px;
  font-weight: 700;
}

/* ===== Hero ===== */
.apply-page .apply-hero{
  position: relative;
  min-height: calc(100vh - 140px);
  display:flex;
  align-items:center;
  color:#fff;
  overflow:hidden;

  background:
    radial-gradient(900px 450px at 12% 20%, rgba(226,59,49,.18), transparent 60%),
    radial-gradient(900px 550px at 85% 15%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(100deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.65) 35%, rgba(0,0,0,.25) 62%, rgba(0,0,0,.06) 80%, transparent 100%),
    url('/images/IMAGE DE slogan.png');

  background-size: cover;
  background-position: right center;
}

.apply-page .apply-hero::after{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.35), transparent 40%),
    linear-gradient(to top, rgba(0,0,0,.35), transparent 45%);
}

.apply-page .apply-hero-content{
  position: relative;
  z-index: 1;
  padding: 84px 0;
  max-width: 680px;
}

.apply-page .apply-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color: rgba(255,255,255,.78);
  letter-spacing:.34em;
  font-weight:950;
  font-size:12px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.apply-page .apply-eyebrow::before{
  content:"";
  width: 14px;
  height: 14px;
  border-radius: 6px;
  background: rgba(226,59,49,.95);
  box-shadow: 0 0 0 6px rgba(226,59,49,.16);
}

.apply-page .apply-title{
  font-size: clamp(34px, 3.6vw, 56px);
  font-weight: 950;
  line-height: 1.05;
  margin: 0;
}

.apply-page .apply-title span{
  color: var(--rhs-red);
  text-shadow: 0 10px 30px rgba(226,59,49,.25);
}

.apply-page .apply-subtitle{
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,.86);
  max-width: 60ch;
}

.apply-page .apply-offer-badge{
  margin-top: 18px;
  display:inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

.apply-page .apply-offer-badge strong{
  color: #fff;
}

/* ===== Form section ===== */
.apply-page .apply-form-section{
  padding: 80px 0 110px;
}

.apply-page .apply-grid{
  display:grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 26px;
  align-items:start;
}

/* Form card */
.apply-page .apply-card{
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
  position: relative;
  overflow:hidden;
}

.apply-page .apply-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(700px 220px at 12% 0%, rgba(226,59,49,.09), transparent 60%),
    radial-gradient(700px 260px at 85% 60%, rgba(2,6,23,.06), transparent 65%);
}

.apply-page .apply-card > *{
  position: relative;
  z-index: 1;
}

.apply-page .apply-card h2{
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 950;
  color: var(--text);
}

.apply-page .apply-hint{
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

/* Fields */
.apply-page .form-group{
  margin-bottom: 14px;
}

.apply-page .form-group label{
  display:block;
  margin-bottom: 8px;
  font-weight: 900;
  color: #334155;
  font-size: 13px;
}

.apply-page .form-group input,
.apply-page .form-group textarea{
  width: 100%;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 14px;
  background: rgba(248,250,252,.85);
  padding: 12px 12px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.apply-page .form-group textarea{
  padding: 12px 12px;
  resize: vertical;
  min-height: 120px;
}

.apply-page .form-group input:focus,
.apply-page .form-group textarea:focus{
  border-color: rgba(226,59,49,.40);
  box-shadow: 0 0 0 5px rgba(226,59,49,.12);
  background: #fff;
}

/* File inputs */
.apply-page input[type="file"]{
  padding: 10px 12px;
  background: rgba(248,250,252,.85);
}

/* Buttons */
.apply-page .btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 950;
  text-decoration:none;
  letter-spacing: .02em;
  border: 0;
  cursor:pointer;

  background: linear-gradient(135deg, var(--rhs-red), #ff5a4f);
  color: #fff;
  box-shadow: 0 14px 26px rgba(226,59,49,.22);
  transition: transform .2s ease, filter .2s ease;
}

.apply-page .btn-primary:hover{
  transform: translateY(-2px);
  filter: brightness(.98);
}

.apply-page .full{
  width: 100%;
}

/* Right column info */
.apply-page .apply-info{
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}

.apply-page .apply-info h3{
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 950;
  color: var(--text);
}

.apply-page .apply-benefits{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap: 10px;
}

.apply-page .apply-benefits li{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(248,250,252,.85);
  color: #334155;
  font-weight: 800;
  font-size: 14px;
}

.apply-page .apply-note{
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(226,59,49,.16);
  background: rgba(226,59,49,.06);
  color: #334155;
  font-weight: 800;
}

.apply-page .apply-cndp-section {
  padding: 0 0 80px;
}

.apply-page .apply-cndp-card {
  max-width: 980px;
  text-align: center;
  color: #475569;
  line-height: 1.8;
}

.apply-page .apply-cndp-logo {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 18px;
}

.apply-page .apply-cndp-card p {
  max-width: 920px;
  margin: 0 auto;
  font-size: 14px;
}

/* Responsive */
@media(max-width: 980px){
  .apply-page .apply-hero{
    min-height: 520px;
    background-position:center;
  }
  .apply-page .apply-grid{
    grid-template-columns: 1fr;
  }
  .apply-page .apply-card{
    padding: 22px;
  }
}
/* Custom file input wrapper */
.apply-page .form-group input[type="file"] {
    display: none; /* hide the native input */
}

.apply-page .form-group .file-upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 14px;
    background: rgba(248,250,252,.85);
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.apply-page .form-group .file-upload-label:hover {
    border-color: rgba(226,59,49,.4);
    box-shadow: 0 0 0 5px rgba(226,59,49,.12);
    background: #fff;
}

/* The filename display */
.apply-page .form-group .file-upload-label span.filename {
    color: var(--muted);
    font-weight: 500;
    margin-left: 12px;
    font-size: 14px;
}
/* ============================================================
   APPLY PAGE — RESPONSIVE FIXES
=============================================================== */

/* Large screens -> medium */
@media (max-width: 1200px){
  .apply-page .apply-hero{
    height: calc(100vh - 108px);
    padding: 60px 40px;
    background-position: center center;
  }

  .apply-page .apply-hero-content{
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 60px 20px;
  }

  .apply-page .apply-title{
    font-size: 44px;
    line-height: 1.2;
  }

  .apply-page .apply-subtitle{
    text-align: center;
  }
}

/* Medium screens (tablet) */
@media (max-width: 992px){
  .apply-page .apply-grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .apply-page .apply-card{
    padding: 28px;
  }

  .apply-page .apply-info{
    width: 100%;
  }

  .apply-page .apply-card h2{
    font-size: 18px;
  }
}

/* Small screens (mobile) */
@media (max-width: 768px){
  .apply-page .apply-title{
    font-size: 36px;
  }

  .apply-page .apply-subtitle{
    font-size: 16px;
  }

  .apply-page .btn-primary{
    width: 100%;
  }

  .apply-page .apply-card{
    padding: 24px;
  }
}

/* Extra small screens (very small devices) */
@media (max-width: 576px){
  .apply-page .apply-hero{
    min-height: 440px;
    padding: 40px 15px;
  }

  .apply-page .apply-title{
    font-size: 28px;
  }

  .apply-page .apply-subtitle{
    font-size: 14px;
    line-height: 1.6;
  }

  .apply-page .apply-card{
    padding: 20px 12px;
  }

  .apply-page .apply-grid{
    padding: 50px 15px;
  }

  .apply-page .form-group .file-upload-label{
    font-size: 13px;
    padding: 10px 12px;
  }

  .apply-page .apply-benefits li{
    font-size: 13px;
    padding: 10px;
  }

  .apply-page .apply-note{
    font-size: 13px;
    padding: 10px;
  }
}
