/* ===================================================================
   CAREER PAGE STYLES  |  Prefix: ca-
   =================================================================== */

/* ── Toast (career page doesn't include contact-form.php) ──────── */
.inquiry-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 40px);
}

.inquiry-toast {
  pointer-events: auto;
  padding: 16px 44px 16px 20px;
  border-radius: 10px;
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  animation: inquiryToastIn 0.4s ease;
  position: relative;
  line-height: 1.5;
}

.inquiry-toast.removing {
  animation: inquiryToastOut 0.3s ease forwards;
}

.inquiry-toast-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.inquiry-toast-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.inquiry-toast-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  line-height: 1;
  padding: 0;
}

.inquiry-toast-close:hover {
  opacity: 1;
}

.inquiry-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 10px 10px;
  animation: inquiryToastProgress 5s linear forwards;
}

.inquiry-toast-success .inquiry-toast-progress {
  background: #155724;
}

.inquiry-toast-error .inquiry-toast-progress {
  background: #721c24;
}

@keyframes inquiryToastIn {
  from {
    opacity: 0;
    transform: translateX(80px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes inquiryToastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(80px);
  }
}

@keyframes inquiryToastProgress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

@media (max-width: 480px) {
  .inquiry-toast-container {
    top: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
    width: calc(100% - 20px);
  }
}

/* ══════════════════════════════════════════════════════════════════
   SECTION 1: HERO
   ══════════════════════════════════════════════════════════════════ */
.ca-hero-section {
  padding: 40px 0 36px;
  background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.ca-hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.ca-hero-badge {
  display: inline-block;
  background: rgba(206, 64, 61, 0.08);
  color: #ce403d;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 16px;
  font-family: p_m;
}

.ca-hero-title {
  font-size: 52px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--tp-ff-platform);
  background-image: linear-gradient(90deg,
      #ce403d 0%,
      #8a2e2e 35%,
      #2a2f36 50%,
      #8a2e2e 65%,
      #ce403d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  width: fit-content;
}

.ca-hero-subtitle {
  font-size: 18px;
  color: #636368;
  max-width: 680px;
  margin: 0 auto 10px;
  line-height: 1.65;
  font-family: p_r;
}

.ca-hero-description {
  font-size: 18px;
  color: #888;
  max-width: 620px;
  margin: 0 auto 20px;
  line-height: 1.75;
  font-family: p_r;
}

/* Feature badges row — exact pattern from expertise.php */
.ca-hero-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ca-hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: #1a1a2e;
  font-weight: 500;
  font-family: p_m;
}

.ca-feature-icon {
  width: 26px;
  height: 26px;
  background: #ce403d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ca-feature-icon svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

/* Stats row */
.ca-hero-stats {
  display: flex;
  justify-content: center;
  gap: 70px;
  padding-top: 30px;
  margin-top: 28px;
  border-top: 1px solid #e8eaed;
  flex-wrap: wrap;
}

.ca-stat {
  text-align: center;
}

.ca-stat-number {
  display: block;
  font-size: 40px;
  font-weight: 700;
  color: #ce403d;
  line-height: 1;
  font-family: var(--tp-ff-platform);
}

.ca-stat-number sup {
  font-size: 22px;
  vertical-align: super;
}

.ca-stat-label {
  display: block;
  font-size: 12px;
  color: #636368;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: p_r;
  margin-top: 6px;
}

/* ══════════════════════════════════════════════════════════════════
   SECTION 2: WHAT YOU'LL WORK ON
   ══════════════════════════════════════════════════════════════════ */
.ca-work-section {
  background: #ffffff;
  padding: 48px 0;
}

.ca-work-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Left content */
.ca-section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #ce403d;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: p_m;
  margin-bottom: 16px;
}

.ca-section-title {
  font-size: 40px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--tp-ff-platform);
  background-image: linear-gradient(90deg,
      #ce403d 0%,
      #8a2e2e 35%,
      #2a2f36 50%,
      #8a2e2e 65%,
      #ce403d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  width: fit-content;
}

.ca-work-description {
  font-size: 18px;
  color: #636368;
  line-height: 1.75;
  font-family: p_r;
  margin-bottom: 22px;
}

.ca-work-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ca-work-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 18px;
  color: #444;
  font-family: p_r;
  line-height: 1.5;
}

.ca-check-icon {
  width: 22px;
  height: 22px;
  background: rgba(206, 64, 61, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.ca-check-icon svg {
  width: 12px;
  height: 12px;
  stroke: #ce403d;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Service mini-cards grid */
.ca-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ca-service-card {
  background: #ffffff;
  border: 1px solid #EAEBED;
  border-radius: 14px;
  padding: 26px 22px;
  transition: all 0.3s ease;
}

.ca-service-card:hover {
  border-color: rgba(206, 64, 61, 0.35);
  box-shadow: 0 8px 30px rgba(206, 64, 61, 0.09);
  transform: translateY(-4px);
}

.ca-service-icon {
  width: 46px;
  height: 46px;
  background: rgba(206, 64, 61, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.ca-service-icon i {
  font-size: 20px;
  color: #ce403d;
}

.ca-service-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  font-family: var(--tp-ff-platform);
  margin-bottom: 6px;
}

.ca-service-desc {
  font-size: 18px;
  color: #636368;
  font-family: p_r;
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
   SECTION 3: WHY JOIN US
   ══════════════════════════════════════════════════════════════════ */
.ca-why-section {
  background: #f8f9fb;
  padding: 48px 0;
}

.ca-why-head {
  text-align: center;
  margin-bottom: 36px;
}

.ca-why-subtitle {
  font-size: 17px;
  color: #636368;
  max-width: 600px;
  margin: 16px auto 0;
  font-family: p_r;
  line-height: 1.7;
}

.ca-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ca-why-card {
  background: #ffffff;
  border-radius: 14px;
  border-top: 3px solid #ce403d;
  padding: 24px 22px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.ca-why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(206, 64, 61, 0.1);
}

.ca-why-icon {
  width: 44px;
  height: 44px;
  background: rgba(206, 64, 61, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.ca-why-icon i {
  font-size: 22px;
  color: #ce403d;
}

.ca-why-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 12px;
  font-family: var(--tp-ff-platform);
}

.ca-why-text {
  font-size: 18px;
  color: #636368;
  line-height: 1.75;
  font-family: p_r;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
   SECTION 4: APPLICATION FORM
   ══════════════════════════════════════════════════════════════════ */
.ca-apply-section {
  background: #ffffff;
  padding: 50px 0 60px;
  border-top: 1px solid #EAEBED;
}

.ca-apply-section-head {
  text-align: center;
  margin-bottom: 32px;
}

.ca-apply-head-subtitle {
  font-size: 18px;
  color: #636368;
  max-width: 560px;
  margin: 14px auto 0;
  font-family: p_r;
  line-height: 1.7;
}

/* Left info column */
.ca-apply-left {
  padding-right: 30px;
}

.ca-apply-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
  margin-bottom: 10px;
  font-family: var(--tp-ff-platform);
}

.ca-apply-intro {
  font-size: 18px;
  color: #636368;
  line-height: 1.75;
  font-family: p_r;
  margin-bottom: 22px;
}

.ca-apply-divider {
  height: 1px;
  background: #EAEBED;
  margin: 24px 0;
}

/* Quote block */
.ca-apply-quote {
  background: #f8f9fb;
  border-left: 4px solid #ce403d;
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 28px;
}

.ca-apply-quote p {
  font-size: 14px;
  color: #444;
  font-style: italic;
  line-height: 1.7;
  font-family: p_r;
  margin: 0 0 10px;
}

.ca-apply-quote cite {
  font-size: 13px;
  color: #ce403d;
  font-weight: 600;
  font-style: normal;
  font-family: p_m;
}

.ca-apply-email-fallback {
  font-size: 14px;
  color: #636368;
  font-family: p_r;
}

.ca-apply-email-fallback a {
  color: #ce403d;
  font-weight: 600;
  text-decoration: none;
}

.ca-apply-email-fallback a:hover {
  text-decoration: underline;
}

/* Right form column */
.ca-apply-right {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 36px;
  border: 1.5px solid #EAEBED;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* Form sub-section label */
.ca-form-sub-label {
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: p_m;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

/* Form layout */
.ca-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.ca-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ca-form-group--full {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.ca-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  font-family: p_m;
  letter-spacing: 0.2px;
}

.ca-form-group label .ca-required {
  color: #ce403d;
  margin-left: 2px;
}

.ca-form-group input,
.ca-form-group select,
.ca-form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #EAEBED;
  border-radius: 10px;
  font-size: 15px;
  font-family: p_r;
  color: #1a1a2e;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: auto;
}

.ca-form-group input::placeholder,
.ca-form-group textarea::placeholder {
  color: #bbb;
  font-family: p_r;
}

.ca-form-group input:focus,
.ca-form-group select:focus,
.ca-form-group textarea:focus {
  border-color: #ce403d;
  box-shadow: 0 0 0 3px rgba(206, 64, 61, 0.08);
  background: #fff;
}

.ca-form-group select {
  cursor: pointer;
  color: #1a1a2e;
}

.ca-form-group select option[value=""] {
  color: #bbb;
}

.ca-form-group textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

/* File Upload Area */
.ca-file-wrap label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  font-family: p_m;
  display: block;
  margin-bottom: 8px;
}

.ca-file-drop {
  border: 2px dashed #d0d5dd;
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 0.2s ease, background 0.2s ease;
  overflow: hidden;
}

.ca-file-drop:hover,
.ca-file-drop.drag-over {
  border-color: #ce403d;
  background: rgba(206, 64, 61, 0.02);
}

.ca-file-label {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 20px;
  gap: 8px;
}

.ca-file-label i {
  font-size: 30px;
  color: #ce403d;
}

.ca-file-label-text {
  font-size: 15px;
  color: #555;
  font-family: p_r;
  text-align: center;
}

.ca-file-label-text u {
  color: #ce403d;
  text-underline-offset: 2px;
}

.ca-file-label-hint {
  font-size: 12px;
  color: #aaa;
  font-family: p_r;
}

.ca-file-selected {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.ca-file-selected i {
  font-size: 24px;
  color: #ce403d;
  flex-shrink: 0;
}

#ca-file-name {
  font-size: 14px;
  color: #1a1a2e;
  font-family: p_r;
  flex: 1;
  word-break: break-all;
}

#ca-file-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 18px;
  padding: 4px 6px;
  transition: color 0.2s;
  flex-shrink: 0;
}

#ca-file-remove:hover {
  color: #ce403d;
}

/* reCAPTCHA wrapper */
.ca-recaptcha-wrap {
  margin-bottom: 20px;
}

/* Submit button — full width */
.ca-submit-wrap .tp-btn-yellow-green {
  width: 100%;
  justify-content: center;
  font-size: 15px;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .ca-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .ca-hero-section {
    padding: 50px 0 40px;
  }

  .ca-hero-title {
    font-size: 38px;
  }

  .ca-hero-stats {
    gap: 42px;
    padding-top: 26px;
    margin-top: 26px;
  }

  .ca-stat-number {
    font-size: 34px;
  }

  .ca-hero-features {
    gap: 16px;
  }

  .ca-work-section {
    padding: 55px 0;
  }

  .ca-work-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ca-section-title {
    font-size: 28px;
  }

  .ca-why-section {
    padding: 55px 0;
  }

  .ca-why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .ca-apply-section {
    padding: 55px 0 65px;
  }

  .ca-apply-left {
    padding-right: 0;
    margin-bottom: 36px;
  }

  .ca-apply-right {
    padding: 28px 24px;
  }
}

@media (max-width: 768px) {
  .ca-hero-section {
    padding: 40px 0 34px;
  }

  .ca-hero-title {
    font-size: 28px;
  }

  .ca-hero-subtitle {
    font-size: 15px;
  }

  .ca-hero-description {
    font-size: 14px;
  }

  .ca-hero-features {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .ca-hero-stats {
    gap: 26px;
  }

  .ca-stat-number {
    font-size: 30px;
  }

  .ca-why-grid {
    grid-template-columns: 1fr;
  }

  .ca-service-grid {
    grid-template-columns: 1fr;
  }

  .ca-form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ca-apply-right {
    padding: 22px 18px;
  }

  .ca-apply-title {
    font-size: 24px;
  }

  .ca-section-title {
    font-size: 23px;
  }
}

@media (max-width: 480px) {
  .ca-hero-title {
    font-size: 23px;
  }

  .ca-why-card {
    padding: 20px 18px;
  }

  .ca-service-card {
    padding: 18px 16px;
  }
}