/* ═══ Shared Form Styles (Contact & Careers) ═══ */

.contact-hero .hero-inner,
.careers-hero .hero-inner {
  padding: 20px 0 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

/* Alert messages */
.contact-alert {
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.contact-alert--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.contact-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Form wrapper */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 8px 40px rgba(12,28,53,0.06);
  position: relative;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.cf-req {
  color: var(--teal);
}

.cf-field input,
.cf-field textarea,
.cf-field select {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font-main);
  color: var(--navy);
  background: var(--snow);
  transition: all 0.25s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.cf-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237b8fa6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
  cursor: pointer;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: var(--muted);
}

.cf-field input:focus,
.cf-field textarea:focus,
.cf-field select:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,184,169,0.1);
}

.cf-field textarea {
  resize: vertical;
  min-height: 120px;
}

/* Inline field errors */
.cf-error {
  font-size: 13px;
  color: #dc2626;
  display: none;
}

.cf-field--error input,
.cf-field--error textarea {
  border-color: #dc2626;
  background: #fef2f2;
}

.cf-field--error input:focus,
.cf-field--error textarea:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

/* Submit button */
.cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--teal);
  color: var(--white);
  padding: 16px 36px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 24px rgba(0,184,169,0.25);
  align-self: flex-start;
}

.cf-submit:hover {
  background: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,184,169,0.35);
}

.cf-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Contact Info Cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}

.ci-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s;
}

.ci-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(0,184,169,0.08);
}

.ci-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 16px;
}

.ci-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.ci-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.ci-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  transition: color 0.25s;
}

.ci-link:hover {
  color: var(--teal-deep);
}

/* What to expect */
.ci-expect {
  background: var(--navy);
  border-radius: 16px;
  padding: 28px;
  color: var(--white);
}

.ci-expect h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.ci-expect ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ci-expect li {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
}

.ci-expect li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ═══ File Upload Styles ═══ */
.cr-upload-area {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: var(--snow);
  transition: all 0.25s;
  cursor: pointer;
}

.cr-upload-area:hover,
.cr-upload-area.dragover {
  border-color: var(--teal);
  background: rgba(0,184,169,0.04);
}

.cr-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.cr-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 20px;
  color: var(--muted);
  text-align: center;
  pointer-events: none;
}

.cr-upload-placeholder span {
  font-size: 14px;
  font-weight: 500;
}

.cr-upload-placeholder small {
  font-size: 12px;
  opacity: 0.7;
}

.cr-upload-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
}

.cr-upload-file svg {
  color: var(--teal);
  flex-shrink: 0;
}

.cr-upload-file span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cr-file-remove {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  position: relative;
  z-index: 3;
  transition: color 0.2s;
}

.cr-file-remove:hover {
  color: #dc2626;
}

.cf-field--error .cr-upload-area {
  border-color: #dc2626;
  background: #fef2f2;
}

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-info {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .ci-expect {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .contact-form-wrap {
    padding: 28px 20px;
  }
  .cf-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cf-submit {
    width: 100%;
  }
  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* ═══ Careers: V2 Working Here Layout (Dark) ═══ */

.careers-v2-working {
  background: var(--navy);
  padding: 120px 64px;
  position: relative;
  overflow: hidden;
}

.v2-working-layout {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.v2-working-left {
  max-width: 580px;
}

.v2-working-text-wrap {
  margin-top: 32px;
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--teal);
}

.v2-working-text {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin: 0;
  font-weight: 300;
}

.v2-working-right {
  position: relative;
  z-index: 2;
}

.v2-team-image-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  aspect-ratio: 4/5;
}

.v2-team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v2-image-accent {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(12, 28, 53, 0.6));
  pointer-events: none;
}

/* ═══ Careers: V2 Who Thrives Layout (Light) ═══ */

.careers-v2-thrives {
  padding: 120px 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.v2-thrives-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.v2-thrives-header {
  text-align: center;
}

.v2-thrives-main {
  position: relative;
  padding: 0 40px;
}

.v2-thrives-p {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--navy);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: center;
}

.v2-thrives-quote-wrap {
  margin-top: 40px;
  background: var(--snow);
  border-radius: 24px;
  padding: 64px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border);
}

.v2-quote-content {
  position: relative;
  max-width: 700px;
  text-align: center;
}

.v2-quote-content p {
  font-family: var(--font-highlight);
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--body-text);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 2;
}

.v2-quote-mark {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 140px;
  font-family: var(--font-highlight);
  color: var(--teal);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
}

/* ═══ Careers: V2 Sidebar Offers ═══ */

.v2-sidebar-offers {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s;
}

.v2-sidebar-offers:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(0, 184, 169, 0.08);
}

.v2-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.v2-sidebar-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.v2-sb-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--teal-bg);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.v2-sidebar-list li strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 2px;
}

.v2-sidebar-list li span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ═══ Careers: Job Listings ═══ */

.jobs-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.job-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(0, 184, 169, 0.08);
}

.job-card-header {
  flex: 1;
  min-width: 0;
}

.job-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.3;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.job-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  line-height: 1.4;
}

.job-tag--type {
  background: var(--teal-bg);
  color: var(--teal);
}

.job-tag--dept {
  background: rgba(12, 28, 53, 0.06);
  color: var(--navy);
}

.job-tag--loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(12, 28, 53, 0.04);
  color: var(--muted);
}

.job-tag--exp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(12, 28, 53, 0.04);
  color: var(--muted);
}

.job-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.job-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-main);
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
}

.job-btn--ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--navy);
}

.job-btn--ghost:hover {
  border-color: var(--navy);
  background: rgba(12, 28, 53, 0.04);
}

.job-btn--primary {
  background: var(--teal);
  color: var(--white);
  border: 1.5px solid transparent;
  box-shadow: 0 4px 16px rgba(0, 184, 169, 0.2);
}

.job-btn--primary:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 184, 169, 0.3);
}

.jobs-empty {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 32px;
}

.jobs-empty p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.jobs-footer {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.jobs-email-link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.jobs-email-link:hover {
  color: var(--teal-deep);
}

/* ═══ JD Modal ═══ */

.jd-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.jd-modal[aria-hidden="true"] {
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.3s;
}

.jd-modal[aria-hidden="false"] {
  visibility: visible;
  transition: visibility 0s;
}

.jd-modal[aria-hidden="true"] .jd-modal-backdrop {
  opacity: 0;
}

.jd-modal[aria-hidden="true"] .jd-modal-box {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
}

.jd-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 28, 53, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

.jd-modal-box {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 740px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(12, 28, 53, 0.28);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

/* Modal header */
.jd-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.jd-modal-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.jd-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.jd-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.jd-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--snow);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.jd-download-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.jd-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.jd-close-btn:hover {
  background: var(--snow);
  border-color: var(--navy);
}

/* Modal body — scrollable */
.jd-modal-body {
  overflow-y: auto;
  padding: 0 32px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.jd-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.jd-section:last-child {
  border-bottom: none;
}

.jd-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal);
  margin-bottom: 14px;
}

.jd-section-text {
  font-size: 15px;
  color: var(--navy);
  line-height: 1.8;
  margin: 0;
}

.jd-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jd-list li {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.jd-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 600;
}

.jd-list--muted li {
  color: var(--muted);
}

.jd-tools-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
  background: var(--snow);
  border-radius: 10px;
  padding: 16px 18px;
  border: 1px solid var(--border);
}

/* Modal footer */
.jd-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.jd-close-text-btn {
  width: auto;
  height: auto;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--navy);
  cursor: pointer;
  font-family: var(--font-main);
  transition: all 0.2s;
}

.jd-close-text-btn:hover {
  border-color: var(--navy);
}

.jd-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ═══ Careers: Responsive ═══ */

@media (max-width: 1100px) {
  .v2-working-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: left;
  }
  
  .v2-working-left {
    max-width: 100%;
  }

  .v2-team-image-wrap {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 1024px) {
  .job-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .job-actions {
    width: 100%;
  }

  .job-btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .careers-v2-working,
  .careers-v2-thrives {
    padding: 80px 24px;
  }

  .v2-working-content-box {
    padding: 40px 24px;
    border-radius: 20px;
  }

  .v2-working-text {
    font-size: 18px;
  }

  .v2-thrives-main {
    padding: 0;
  }

  .v2-thrives-p {
    font-size: 20px;
  }

  .v2-thrives-quote-wrap {
    padding: 48px 24px;
  }

  .v2-quote-content p {
    font-size: 18px;
  }

  .v2-quote-mark {
    font-size: 100px;
    top: -40px;
  }

  .job-card {
    padding: 22px 20px;
  }

  .job-actions {
    flex-direction: row;
    gap: 10px;
  }

  .jd-modal-head {
    padding: 20px;
    flex-direction: column;
  }

  .jd-modal-head-right {
    align-self: flex-end;
  }

  .jd-modal-body {
    padding: 0 20px;
  }

  .jd-modal-foot {
    padding: 16px 20px;
    flex-direction: column;
  }

  .jd-close-text-btn,
  .jd-apply-btn {
    width: 100%;
    justify-content: center;
  }
}

