/* ============================================================
   GLOBAL VARIABLES
============================================================ */

:root {
  --sand: #F7F1E8;
  --sand-dark: #E8DCC7;
  --text-dark: #2B2B2B;
  --text-light: #6A6A6A;
  --white: #FFFFFF;
  --accent: #FF7A2F;
  --gold: #d4b98c;
  --grad: linear-gradient(135deg, #FFB88C 0%, #FF7A2F 100%);
}

/* ============================================================
   PLAYFAIR DISPLAY — Serif Headings
============================================================ */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   INTER — Main UI / Body Font
============================================================ */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   GLOBAL RESET & TYPOGRAPHY
============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: var(--sand);
  color: var(--text-dark);
  line-height: 1.6;
  letter-spacing: 0.2px;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.3px;
  color: #0d0d0d;
}

h2 {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
}

/* Center ONLY section headers */
.section-header,
.section-header h2,
.section-header p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  max-width: 700px;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  color: #444;
}

/* ============================================================
   NAVIGATION
============================================================ */

nav {
  height: 70px;
  width: 100%;
  padding: 1.4rem 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

nav .logo {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: 0.2s ease;
}

nav ul li a:hover {
  color: var(--accent);
}

/* Language Switcher */
.language-switcher select {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: var(--white);
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.language-switcher select:hover {
  border-color: var(--accent);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(6px);
  padding: 1.2rem 6%;
  gap: 1rem;
  border-top: 1px solid #e5e5e5;
  display: none;
  flex-direction: column;
  z-index: 999;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  animation: mobileMenuSlide 0.25s ease-out;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.mobile-menu a {
  text-decoration: none;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 10px;
  font-weight: 500;
  color: var(--text-dark);
  transition: 0.25s ease;
}

.mobile-menu a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Slide-down animation */
@keyframes mobileMenuSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu.open { display: flex; }

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  z-index: 998;
  display: none;
}

/* ============================================================
   FIX #1 — Overlay active state for global JS
============================================================ */
.mobile-menu-overlay.active {
  display: block;
}

/* ============================================================
   HERO SECTION
============================================================ */

.hero {
  background: var(--grad);
  color: var(--white);
  padding: 8rem 6%;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 700;
  max-width: 700px;
}

.hero p {
  margin-top: 1rem;
  font-size: 1.2rem;
  max-width: 550px;
}

.hero .cta {
  margin-top: 2rem;
  display: inline-block;
  padding: 1.1rem 2.2rem;
  background: var(--white);
  color: var(--text-dark);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s ease;
}

.hero .cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ============================================================
   SECTION WRAPPER
============================================================ */

section {
  position: relative;
  padding: 80px 6%;
}

/* ============================================================
   SERVICES / CARDS
============================================================ */

.services {
  background: var(--white);
  border-radius: 20px;
  padding: 4rem 3rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.service-grid,
.service-grid-tight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card,
.talent-card {
  background: var(--white);
  border: 1px solid #e5e5e5;
  padding: 32px !important;
  border-radius: 16px;
  transition: 0.25s ease;
}

.service-card:hover,
.talent-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

/* ============================================================
   TALENT GRID
============================================================ */

.talent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.talent-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.talent-info h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.talent-info .role {
  color: var(--text-light);
  margin: 0.3rem 0;
}

.talent-info .tags {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1rem;
}

/* ============================================================
   BUTTONS
============================================================ */

.cta,
.profile-link {
  border: 1px solid #000;
  padding: 12px 22px;
  border-radius: 6px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  color: #000;
}

.cta:hover,
.profile-link:hover {
  background: #000;
  color: #fff;
}

/* ============================================================
   JOIN / APPLY
============================================================ */

.join-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
}

.join-visual .lux-box {
  background: #111;
  color: #fff;
  padding: 40px;
  border-radius: 12px;
  font-size: 1.3rem;
  line-height: 1.5;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid #333;
  text-align: center;
}

/* ============================================================
   BRANDS & TESTIMONIALS
============================================================ */

#brands .service-card,
#testimonials .service-card {
  background: var(--white);
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 32px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
  border-top: 3px solid #e5e5e5 !important;
}

#brands .service-card:hover,
#testimonials .service-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

/* ============================================================
   AD ROTATOR
============================================================ */

.global-ad-rotator .ad-box {
  background: var(--white) !important;
  border: 2px dashed var(--accent) !important;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  font-weight: 600;
  color: var(--text-light);
  min-height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.global-ad-rotator {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  overflow: hidden;
}

.ad-rotator-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.ad-rotator-slide.active {
  opacity: 1;
  position: relative;
}

.global-ad-rotator .ad-box {
  /* your existing styles already here; this just extends behavior */
  flex-direction: column;
}

.global-ad-rotator .ad-box img,
.global-ad-rotator .ad-box video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 12px;
}

/* ============================================================
   FOOTER
============================================================ */

footer {
  background: var(--white);
  padding: 2.5rem 6%;
  text-align: center;
  margin-top: 4rem;
  border-top: 1px solid #e5e5e5;
}

footer p {
  color: var(--text-light);
}

/* ============================================================
   RESPONSIVE — TABLET
============================================================ */

@media (max-width: 1024px) {
  nav ul { display: none; }
  .mobile-menu-btn { display: block; }
  .join-content { grid-template-columns: 1fr; }
  .hero { padding: 6rem 6%; clip-path: none; }
  .hero h1 { font-size: 2.6rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤640px)
============================================================ */

@media (max-width: 640px) {

  /* Global text adjustments */
  body {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  /* Headings */
  h1 {
    font-size: 1.9rem;
    line-height: 1.25;
  }

  h2 {
    font-size: 1.7rem;
    line-height: 1.25;
  }

  h3 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  /* Section spacing */
  section { padding: 2.2rem 6%; }
  .services { padding: 2.2rem 1.4rem; }

  /* Section headers */
  .section-header h2 { 
    font-size: 1.7rem; 
    line-height: 1.2;
  }
  .section-header p {
    font-size: 1rem;
    line-height: 1.55;
  }

  /* NAV FIXES */
  nav {
    padding: 0.8rem 4%;
    height: auto;
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }

  nav .logo {
    font-size: 1.05rem;
    line-height: 1.2;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    flex: 1 1 100%;
  }

  .language-switcher select {
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
  }

  .mobile-menu-btn {
    font-size: 1.8rem;
  }

  /* HERO FIXES */
  .hero {
    padding: 4.5rem 6%;
  }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.25;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Card padding */
  .service-card,
  .talent-card {
    padding: 20px !important;
  }

  /* Lists */
  .join-content li {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* ---------------------------------------------------
   MOBILE (≤768px)
--------------------------------------------------- */

@media (max-width: 768px) {
  .legal-topbar {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }

  .pill-row {
    justify-content: center;
  }

  .legal-brand {
    font-size: 1.35rem;
  }

  .pill {
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
  }

  .legal-card-section {
    padding: 1.8rem 1.4rem;
    margin: 2.5rem 1rem;
  }

  .legal-card-section h2 {
    font-size: 1.55rem;
  }

  .legal-card-section h3 {
    font-size: 1.15rem;
  }

  .legal-card-section p,
  .legal-card-section li {
    font-size: 1rem;
  }
}

/* ============================================================
   SMALL MOBILE — VERY SMALL SCREENS (≤400px)
============================================================ */

@media (max-width: 400px) {

  body {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  .hero {
    padding: 3.8rem 6%;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .service-card,
  .talent-card {
    padding: 16px !important;
  }

  nav .logo {
    font-size: 0.95rem;
  }

  .language-switcher select {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  .mobile-menu-btn {
    font-size: 1.6rem;
  }
}


/* ============================================================
   SECTION DIVIDERS
============================================================ */

section::after { content: none !important; }

#services::after,
#talent::after,
#apply::after,
#brands::after,
#testimonials::after,
#process::after,
#faq::after {
  content: "";
  display: block;
  width: 200px;
  height: 2px;
  margin: 80px auto 0 auto;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

@media (max-width: 1024px) {
  #services::after,
  #talent::after,
  #apply::after,
  #brands::after,
  #testimonials::after,
  #process::after,
  #faq::after {
    margin-top: 60px;
  }
}

@media (max-width: 640px) {
  #services::after,
  #talent::after,
  #apply::after,
  #brands::after,
  #testimonials::after,
  #process::after,
  #faq::after {
    width: 160px;
    margin-top: 50px;
  }
}

/* ============================================================
   COOKIE BANNER + MODAL
============================================================ */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  padding: 1.5rem;
  box-shadow: 0 -6px 30px rgba(0,0,0,0.15);
  border-top: 1px solid #e5e5e5;
  z-index: 9999;
  display: flex;
  justify-content: center;
}

#cookie-banner .cookie-inner {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#cookie-banner .cookie-text {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.cookie-btn {
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: 0.25s ease;
}

.cookie-btn.primary {
  background: var(--accent);
  color: #fff;
}

.cookie-btn.primary:hover {
  background: #e86a22;
}

.cookie-btn.secondary {
  background: #f2f2f2;
  color: #333;
}

.cookie-btn.secondary:hover {
  background: #e6e6e6;
}

.cookie-btn.ghost {
  background: transparent;
  color: #333;
  border: 1px solid #ccc;
}

.cookie-btn.ghost:hover {
  border-color: #999;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ============================================================
   COOKIE BANNER — MOBILE (≤640px)
============================================================ */

@media (max-width: 640px) {

  /* Banner container */
  #cookie-banner {
    padding: 14px 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    bottom: 0;
    width: 100%;
  }

  /* Banner text */
  #cookie-text {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  /* Buttons inside banner */
  #cookie-banner .cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  #cookie-banner button {
    padding: 10px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
  }

  /* Settings modal backdrop */
  #cookie-modal-backdrop {
    padding: 20px;
  }

  /* Modal box */
  #cookie-modal {
    width: 100%;
    max-width: 360px;
    padding: 18px 20px;
    border-radius: 10px;
  }

  /* Modal title + subtitle */
  #cookie-modal-title {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }

  #cookie-modal-subtitle {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }

  /* Toggle rows */
  .cookie-setting-row {
    padding: 10px 0;
  }

  .cookie-setting-row label {
    font-size: 0.9rem;
  }

  .cookie-setting-row p {
    font-size: 0.85rem;
    line-height: 1.35;
  }

  /* Modal buttons */
  #cookie-save-preferences,
  #cookie-accept-all-modal {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  /* Close button */
  #cookie-modal-close {
    font-size: 1.4rem;
    top: 10px;
    right: 10px;
  }
}

/* ============================================================
   COOKIE BANNER — SMALL MOBILE (≤400px)
============================================================ */

@media (max-width: 400px) {

  /* Banner container */
  #cookie-banner {
    padding: 10px 12px;
    font-size: 0.85rem;
    line-height: 1.35;
  }

  /* Banner text */
  #cookie-text {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  /* Buttons stack tighter */
  #cookie-banner .cookie-buttons {
    gap: 6px;
  }

  #cookie-banner button {
    padding: 8px 12px;
    font-size: 0.8rem;
    border-radius: 5px;
  }

  /* Modal backdrop */
  #cookie-modal-backdrop {
    padding: 14px;
  }

  /* Modal box */
  #cookie-modal {
    width: 100%;
    max-width: 320px;
    padding: 14px 16px;
    border-radius: 8px;
  }

  /* Modal title + subtitle */
  #cookie-modal-title {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }

  #cookie-modal-subtitle {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  /* Toggle rows */
  .cookie-setting-row {
    padding: 8px 0;
  }

  .cookie-setting-row label {
    font-size: 0.85rem;
  }

  .cookie-setting-row p {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  /* Modal buttons */
  #cookie-save-preferences,
  #cookie-accept-all-modal {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  /* Close button */
  #cookie-modal-close {
    font-size: 1.2rem;
    top: 8px;
    right: 8px;
  }
}

/* ============================================================
   COOKIE SETTINGS MODAL
============================================================ */

#cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(3px);
  overflow-y: auto;
}

#cookie-modal {
  background: var(--white);
  padding: 2rem 2.2rem;
  border-radius: 16px;
  width: 92%;
  max-width: 480px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-modal-header h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* ---------------------------------------------------
   LEGAL PAGE — TOP BAR
--------------------------------------------------- */

.legal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 0;
  gap: 1rem;
}

.legal-brand {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

/* Pills styled like mini cards */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.pill {
  padding: 0.8rem 1.4rem;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e5e5;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  transition: 0.25s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.pill:hover {
  background: #f5f5f5;
  border-color: #d8d2c8;
  transform: translateY(-3px);
}

.pill.accent {
  background: #ff7a00;
  color: #fff;
  border-color: #ff7a00;
  box-shadow: 0 8px 22px rgba(255, 122, 0, 0.25);
}

/* ---------------------------------------------------
   LEGAL PAGE — PURE WHITE CARD SECTIONS
--------------------------------------------------- */

.legal-card-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.2rem 2.4rem;
  margin: 3.5rem auto;
  border: 1px solid #e5e5e5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  max-width: 1100px;
}

/* Short black divider */
.legal-card-section + .legal-card-section {
  position: relative;
  padding-top: 3.5rem;
}

.legal-card-section + .legal-card-section::before {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  background: #000;
  margin: 0 auto 2rem;
  border-radius: 2px;
}

/* Typography inside cards */
.legal-card-section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.legal-card-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.legal-card-section p,
.legal-card-section li {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ---------------------------------------------------
   TABLET (768px–1024px)
--------------------------------------------------- */

@media (max-width: 1024px) {
  .legal-topbar {
    padding: 1.2rem 1.2rem 0;
  }

  .legal-brand {
    font-size: 1.45rem;
  }

  .pill {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .legal-card-section {
    padding: 2rem 2rem;
    margin: 3rem 1rem;
  }
}
/* ============================================================
   APPLY FORM — LUXURY DARK THEME (ISOLATED)
============================================================ */

.apply-form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Success Banner (matches luxury orange version) */
.apply-success-banner {
  margin: 25px 0;
  padding: 22px 26px;
  background: linear-gradient(135deg, #1a1a1a, #111);
  border-left: 5px solid #ff7a00;
  color: #f5f5f5;
  font-size: 1.15rem;
  line-height: 1.6;
  letter-spacing: 0.3px;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.apply-success-banner strong {
  font-size: 1.25rem;
  color: #ffb366;
}

/* Form Section Headings */
.apply-form-wrapper h2 {
  color: #111;
  font-size: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid #ff7a00;
  padding-left: 12px;
  letter-spacing: 0.4px;
}

/* Form Groups */
.apply-form-wrapper .form-group {
  margin-bottom: 28px;
}

/* Inputs, Selects, Textareas */
.apply-form-wrapper input[type="text"],
.apply-form-wrapper input[type="email"],
.apply-form-wrapper input[type="tel"],
.apply-form-wrapper input[type="date"],
.apply-form-wrapper select,
.apply-form-wrapper textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 1rem;
  transition: 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.apply-form-wrapper input:focus,
.apply-form-wrapper select:focus,
.apply-form-wrapper textarea:focus {
  border-color: #ff7a00;
  box-shadow: 0 0 0 3px rgba(255,122,0,0.25);
  outline: none;
}

/* Checkboxes */
.apply-form-wrapper input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 8px;
}

/* Submit Button */
.apply-form-wrapper button[type="submit"] {
  background: #ff7a00;
  color: #fff;
  border: none;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: 0.25s ease;
  text-transform: uppercase;
}

.apply-form-wrapper button[type="submit"]:hover {
  background: #e86a00;
  box-shadow: 0 6px 18px rgba(255,122,0,0.35);
  transform: translateY(-2px);
}
/* ============================================================
   APPLY FORM — WHITE LUXURY CARDS (ISOLATED)
============================================================ */

.apply-form-wrapper .apply-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem 2.2rem;
  margin: 2.5rem 0;
  border: 1px solid #e5e5e5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* Section Titles */
.apply-form-wrapper .apply-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  color: #111;
  letter-spacing: 0.4px;
}

/* Form Fields Inside Cards */
.apply-form-wrapper .apply-card .form-group {
  margin-bottom: 22px;
}

.apply-form-wrapper .apply-card input[type="text"],
.apply-form-wrapper .apply-card input[type="email"],
.apply-form-wrapper .apply-card input[type="tel"],
.apply-form-wrapper .apply-card input[type="date"],
.apply-form-wrapper .apply-card select,
.apply-form-wrapper .apply-card textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 1rem;
  transition: 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.apply-form-wrapper .apply-card input:focus,
.apply-form-wrapper .apply-card select:focus,
.apply-form-wrapper .apply-card textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,122,0,0.25);
  outline: none;
}

/* Checkboxes */
.apply-form-wrapper .apply-card input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 8px;
}

/* Submit Button */
.apply-form-wrapper button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: 0.25s ease;
  text-transform: uppercase;
}

.apply-form-wrapper button[type="submit"]:hover {
  background: #e86a00;
  box-shadow: 0 6px 18px rgba(255,122,0,0.35);
  transform: translateY(-2px);
}
/* required-note */
.required-note {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.2rem;
  text-align: left;
}
.apply-card label.required::after {
  content: " *";
  color: #ff7a00;
  font-weight: bold;
}
/* ============================
   FORM VALIDATION ERROR STATES
============================ */

input.error,
select.error,
textarea.error {
  border-color: #ff3b3b !important;
  box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.25) !important;
}

.error-message {
  color: #ff3b3b;
  font-size: 0.9rem;
  margin-top: 6px;
  font-weight: 500;
}
/* ============================================================
   APPLY FORM — DARK LUXURY ERROR SUMMARY BOX
   (Sticky right-side)
============================================================ */

.apply-error-summary {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 280px;
  background: #111;
  color: #f5f5f5;
  padding: 18px 20px;
  border-left: 4px solid #ff7a00;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  z-index: 9999;
  animation: fadeInRight 0.35s ease-out;
}

.apply-error-summary-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffb366;
  margin-bottom: 10px;
}

.apply-error-summary ul {
  margin: 0;
  padding-left: 18px;
}

.apply-error-summary ul li {
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* Slide-in animation */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================
   INLINE FIELD ERRORS
============================================================ */

.error-message {
  color: #ff3b3b;
  font-size: 0.9rem;
  margin-top: 6px;
  font-weight: 500;
}

/* Red border for invalid fields */
input.error,
select.error,
textarea.error {
  border-color: #ff3b3b !important;
  box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.25) !important;
}

/* ============================================================
   SUCCESS CHECKMARK ANIMATION
============================================================ */

button.submit-success {
  position: relative;
  background: #28a745 !important;
  color: #fff !important;
  transition: 0.25s ease;
}

.submit-success-check {
  position: absolute;
  right: -28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: #28a745;
  opacity: 0;
  animation: checkPop 0.45s ease-out forwards;
}

@keyframes checkPop {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.4);
  }
  60% {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

