/* ============================================================
   LOCO PADEL — Careers Application Page
   Reuses brand colors / fonts declared in style.css
   ============================================================ */

/* Single flat brand color for the whole page — no gradient, so there's
   no seam no matter how tall the form content grows. */
.apply-page{
  background: var(--deep-2);
}

/* A fixed (non-scrolling) layer of faint pulsating dots sits behind all
   content. Because it's position:fixed rather than part of the page
   background, it always covers exactly the viewport with zero seams,
   and costs nothing extra to render as the page scrolls. */
.apply-bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(29,213,89,0.9) 1px, transparent 1.6px);
  background-size: 36px 36px;
  opacity: 0.05;
  animation: applyDotsPulse 7s ease-in-out infinite;
}

@keyframes applyDotsPulse{
  0%, 100%{ opacity: 0.035; }
  50%{ opacity: 0.09; }
}

@media (prefers-reduced-motion: reduce){
  .apply-bg{ animation: none; opacity: 0.05; }
}

.apply-nav,
.apply-wrap{
  position:relative;
  z-index: 1;
}

.apply-nav{
  position:static;
}

.nav-back{
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration:none;
  transition: color .25s ease, border-color .25s ease;
}

.nav-back:hover{ color: var(--green); border-color: rgba(29,213,89,0.6); }

.apply-wrap{
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px calc(100px + env(safe-area-inset-bottom, 0px));
  animation: applyReveal .55s cubic-bezier(.22,.9,.32,1) both;
}

/* Gives the page the feel of a modal/pop-up settling into place on
   arrival, even though it's a standalone page rather than an overlay. */
@keyframes applyReveal{
  from{ opacity:0; transform: translateY(22px) scale(0.98); }
  to{ opacity:1; transform:none; }
}

@media (prefers-reduced-motion: reduce){
  .apply-wrap{ animation:none; }
}

.apply-intro{
  margin-bottom: 48px;
}

.apply-intro h1{
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 60px);
  font-weight:700;
  text-transform:uppercase;
  line-height:1;
  color: var(--white);
  margin: 4px 0 18px;
}

.apply-intro h1 .accent{ color: var(--green); }

.apply-intro .subtitle{
  font-family: var(--font-body);
  font-size: 16px;
  line-height:1.7;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
}

/* ---------- FORM ---------- */
.apply-form{
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px;
  padding: 44px;
  box-shadow: 0 30px 80px rgba(0,10,15,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
}

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

.field{
  margin-bottom: 22px;
}

.field label{
  display:block;
  font-family: var(--font-accent);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}

.field label .req{
  color: var(--green);
  margin-left: 3px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea{
  width:100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  outline:none;
  transition: border-color .2s ease, background .2s ease;
}

.field input::placeholder,
.field textarea::placeholder{ color: rgba(255,255,255,0.35); }

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: var(--green);
  background: rgba(255,255,255,0.08);
}

.field textarea{ resize: vertical; min-height: 110px; font-family: var(--font-body); }

.field select{
  appearance:none;
  -webkit-appearance:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.field select option{
  background: var(--deep-2);
  color: var(--white);
}

/* ---------- CV DROPZONE ---------- */
.dropzone{
  position:relative;
  border: 1.5px dashed rgba(255,255,255,0.3);
  border-radius: 16px;
  padding: 32px 20px;
  text-align:center;
  cursor:pointer;
  transition: border-color .2s ease, background .2s ease;
}

.dropzone:hover,
.dropzone:focus-visible{
  border-color: var(--green);
  background: rgba(29,213,89,0.05);
}

.dropzone.dropzone-active{
  border-color: var(--green);
  background: rgba(29,213,89,0.08);
}

.dropzone input[type="file"]{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
}

.dropzone-icon{
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius:50%;
  background: rgba(29,213,89,0.15);
  border: 1px solid rgba(29,213,89,0.4);
  color: var(--green);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 16px;
}

.dropzone-content p{
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}

.dropzone-hint{
  color: rgba(255,255,255,0.45) !important;
  font-size: 12px !important;
  margin-top: 6px !important;
}

/* ---------- SUBMIT / NOTE ---------- */
.form-submit{
  width:100%;
  margin-top: 10px;
  text-align:center;
}

.form-note{
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height:1.6;
  color: rgba(255,255,255,0.4);
  text-align:center;
}

/* ---------- SUCCESS STATE ---------- */
.form-success{
  text-align:center;
  padding: 30px 10px;
}

.form-success-icon{
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius:50%;
  background: rgba(29,213,89,0.15);
  border: 1px solid rgba(29,213,89,0.5);
  color: var(--green);
  font-size: 26px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.form-success h2{
  font-family: var(--font-display);
  font-size: 28px;
  text-transform:uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.form-success p{
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px){
  .apply-wrap{
    padding: 24px 18px calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .apply-intro{ margin-bottom: 32px; }
  .apply-form{ padding: 26px 20px; border-radius: 18px; }
  .field-row{ grid-template-columns: 1fr; gap: 0; }
  .field{ margin-bottom: 18px; }

  /* Slightly calmer / smaller dot pattern on phones so it reads as
     texture rather than noise on a smaller screen. */
  .apply-bg{ background-size: 28px 28px; opacity: 0.04; }
  @keyframes applyDotsPulse{
    0%, 100%{ opacity: 0.03; }
    50%{ opacity: 0.06; }
  }

  /* Comfortable tap targets on touch devices */
  .field input, .field select, .field textarea{ padding: 13px 16px; font-size: 16px; }
  .dropzone{ padding: 26px 16px; }
  .form-submit{ padding: 16px 28px; }
}

@media (max-width: 380px){
  .apply-intro h1{ font-size: 32px; }
  .apply-wrap{ padding-left: 14px; padding-right: 14px; }
  .apply-form{ padding: 22px 16px; }
}
