/* ═══════════════════════════════════════
   CONTACT PAGE  —  contact.css
═══════════════════════════════════════ */

/* ── Page wrapper ── */
.contact-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 32px 80px;
}

/* ════════════════════════════════════
   TAB NAVIGATION BAR
════════════════════════════════════ */
.cp-tab-row {
  background: #fff;
  border-bottom: 2px solid #ddd;
  margin-top: 76px; /* offset for fixed site header */
}
.cp-tab-row > div {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 0;
}
.cp-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 18px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #999;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.cp-tab:hover {
  color: #1B998B;
}
.cp-tab.active {
  color: #1B998B;
  border-bottom-color: #1B998B;
}

/* ── Panels ── */
.cp-panel { display: none; }
.cp-panel.active { display: block; }

/* ── Section wrapper ── */
.cp-section {
  margin-bottom: 60px;
}

.cp-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: #2a2117;
  margin-bottom: 36px;
  text-align: center;
  letter-spacing: 0.5px;
}
.cp-sub {
  text-align: center;
  color: #7a6a55;
  font-size: 0.9rem;
  margin-top: -24px;
  margin-bottom: 36px;
}

/* ════════════════════════
   TAB 1 — CORPORATE INFO
════════════════════════ */
.corp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
.corp-photo img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  max-height: 380px;
  display: block;
}
.corp-photo-empty { display: none; }

.corp-info {
  padding-top: 8px;
}
.corp-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  color: #1B998B;
  margin-bottom: 18px;
  font-weight: 400;
  line-height: 1.4;
}
.corp-addr {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 22px;
}
.corp-contact {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.6;
}
.corp-contact strong { color: #2a2117; }
.corp-contact a { color: #1B998B; text-decoration: none; }
.corp-contact a:hover { text-decoration: underline; }
.corp-map { margin-top: 24px; }
.map-link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: #f0faf7; border: 1px solid #1B998B;
  border-radius: 7px; color: #1B998B;
  font-size: 0.85rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.map-link-btn:hover { background: #1B998B; color: #fff; }

/* ── Contact Form ── */
.cp-form-section {
  background: #f7f5f0;
  border-radius: 12px;
  padding: 48px 48px;
}
.contact-form { width: 100%; }
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.cf-full { margin-bottom: 20px; }
.cf-field label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
  font-family: 'DM Sans', sans-serif;
}
.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus { border-color: #1B998B; }
.cf-field textarea { resize: vertical; min-height: 110px; }
.cf-phone-wrap { display: flex; }
.cf-flag {
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 6px 0 0 6px;
  background: #f5f5f5;
  font-size: 0.82rem;
  color: #555;
  white-space: nowrap;
  display: flex; align-items: center;
}
.cf-phone-wrap input { border-radius: 0 6px 6px 0; flex: 1; }
.cf-submit {
  display: block; width: 100%;
  padding: 15px;
  background: #1B998B; color: #fff;
  border: none; border-radius: 6px;
  font-size: 0.78rem; letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: background 0.2s;
  margin-top: 8px; font-weight: 600;
}
.cf-submit:hover { background: #157a6e; }
.cf-success {
  margin-top: 16px; padding: 14px 20px;
  background: #e8f5e9; border: 1px solid #a5d6a7;
  border-radius: 6px; color: #2e7d32;
  font-size: 0.88rem; text-align: center;
}

/* ════════════════════════
   TAB 2 — OUR DIRECTORY
════════════════════════ */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.dir-card {
  background: #fff;
  border: 1px solid #e8e2d8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}
.dir-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); transform: translateY(-3px); }
.dir-card-img {
  width: 100%; height: 195px;
  object-fit: cover; display: block;
  background: #f0ebe3;
}
.dir-card-body { padding: 20px; }
.dir-card-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  color: #1B998B;
  margin-bottom: 14px;
  text-align: center;
  font-weight: 500;
  line-height: 1.4;
}
.dir-card-row {
  font-size: 0.8rem; color: #555;
  margin-bottom: 7px;
  display: flex; align-items: flex-start;
  gap: 8px; line-height: 1.5;
}
.dir-card-row .dci { font-size: 0.88rem; flex-shrink: 0; margin-top: 1px; }
.dir-card-row a { color: #1B998B; text-decoration: none; }
.dir-card-row a:hover { text-decoration: underline; }
.dir-card-addr {
  font-size: 0.78rem; color: #777;
  line-height: 1.65;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid #eee;
}
.dir-empty, .jobs-empty {
  color: #aaa; text-align: center;
  padding: 60px; grid-column: 1/-1;
  font-size: 0.9rem;
}

/* ════════════════════════
   TAB 3 — JOB OPPORTUNITIES
════════════════════════ */
.jobs-list {
  display: flex; flex-direction: column;
  gap: 20px; max-width: 820px; margin: 0 auto;
}
.job-card {
  border: 1px solid #e8e2d8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.job-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.job-card-img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #f5f0eb;
  display: block;
}
.job-card-body { padding: 28px 32px; }
.job-card-hdr {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.job-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem; color: #2a2117; font-weight: 400;
}
.job-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.job-badge {
  font-size: 0.65rem; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 11px;
  border-radius: 20px; font-weight: 600;
}
.job-badge-type { background: #f0ebe3; color: #7a6a55; }
.job-badge-loc  { background: #e8f4f0; color: #1B998B; }
.job-badge-open { background: #e8f0e8; color: #2e7d32; }
.job-card-desc {
  font-size: 0.87rem; color: #666;
  line-height: 1.75; margin-bottom: 18px;
}
.job-card-footer {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 16px; border-top: 1px solid #eee;
}
.job-apply-email { font-size: 0.8rem; color: #888; }
.job-apply-email a { color: #1B998B; text-decoration: none; }
.job-apply-btn {
  padding: 10px 24px; background: #1B998B; color: #fff;
  border: none; border-radius: 5px; font-size: 0.75rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  text-decoration: none; transition: background 0.2s;
  display: inline-block; font-weight: 600;
}
.job-apply-btn:hover { background: #157a6e; }

/* ════════════════════════════
   JOB APPLICATION MODAL
════════════════════════════ */
.japp-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 12000;
  background: rgba(28,26,23,0.72);
  align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 40px 20px;
}
.japp-overlay.open { display: flex; }

.japp-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%; max-width: 640px;
  margin: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
}

.japp-hdr {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  padding: 28px 32px 22px;
  border-bottom: 1px solid #f0ebe3;
  background: #faf7f3;
}
.japp-pretitle {
  font-size: 0.68rem; letter-spacing: 2px;
  text-transform: uppercase; color: #1B998B;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; margin-bottom: 6px;
}
.japp-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem; font-weight: 400;
  color: #2a2117; margin: 0;
}
.japp-close {
  background: none; border: none;
  font-size: 1.6rem; color: #aaa;
  cursor: pointer; line-height: 1;
  padding: 0 4px; flex-shrink: 0;
  transition: color 0.2s; margin-top: -2px;
}
.japp-close:hover { color: #333; }

#jappForm, .japp-success { padding: 28px 32px 32px; }

.japp-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}
.japp-field {
  margin-bottom: 16px;
}
.japp-field label {
  display: block; font-size: 0.68rem;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: #888; margin-bottom: 7px;
  font-family: 'DM Sans', sans-serif;
}
.japp-req { color: #e53935; }
.japp-hint {
  font-size: 0.65rem; color: #aaa;
  text-transform: none; letter-spacing: 0.5px; font-weight: 400;
}
.japp-field input,
.japp-field textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid #ddd; border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  color: #333; background: #fff;
  outline: none; transition: border-color 0.2s;
  box-sizing: border-box;
}
.japp-field input:focus,
.japp-field textarea:focus { border-color: #1B998B; }
.japp-field textarea { resize: vertical; min-height: 95px; }

.japp-phone-wrap { display: flex; }
.japp-flag {
  padding: 11px 12px; border: 1px solid #ddd;
  border-right: none; border-radius: 6px 0 0 6px;
  background: #f5f5f5; font-size: 0.82rem; color: #555;
  white-space: nowrap; display: flex; align-items: center;
}
.japp-phone-wrap input { border-radius: 0 6px 6px 0; flex: 1; }

/* CV Upload Box */
.japp-cv-box {
  border: 2px dashed #d5cec4; border-radius: 8px;
  background: #faf7f3; cursor: pointer;
  transition: border-color 0.2s; position: relative;
  overflow: hidden;
}
.japp-cv-box:hover { border-color: #1B998B; }
.japp-cv-box input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer; width: 100%; height: 100%;
  padding: 0; border: none;
}
.japp-cv-idle, .japp-cv-chosen {
  padding: 18px 20px;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.87rem; color: #888;
  font-family: 'DM Sans', sans-serif;
  pointer-events: none;
}
.japp-cv-chosen { color: #2e7d32; }
.japp-cv-icon { font-size: 1.3rem; }
.japp-cv-remove {
  margin-left: auto; background: none; border: 1px solid #e53935;
  color: #e53935; border-radius: 4px; padding: 3px 10px;
  font-size: 0.72rem; cursor: pointer; pointer-events: all;
  font-family: 'DM Sans', sans-serif;
}
.japp-cv-error {
  font-size: 0.8rem; color: #e53935; margin-top: 6px;
}

.japp-err {
  background: #fff3f3; border: 1px solid #fcc;
  border-radius: 6px; padding: 10px 14px;
  font-size: 0.82rem; color: #c62828; margin-bottom: 14px;
}
.japp-submit {
  display: block; width: 100%; padding: 15px;
  background: #1B998B; color: #fff; border: none;
  border-radius: 6px; font-size: 0.78rem; letter-spacing: 2px;
  text-transform: uppercase; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: background 0.2s;
  font-weight: 600; margin-top: 6px;
}
.japp-submit:hover { background: #157a6e; }
.japp-submit:disabled { background: #aaa; cursor: not-allowed; }

/* Success state */
.japp-success {
  text-align: center; padding: 48px 32px;
}
.japp-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #e8f5e9; color: #2e7d32;
  font-size: 1.8rem; display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.japp-success h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem; font-weight: 400; color: #2a2117;
  margin-bottom: 12px;
}
.japp-success p { color: #666; font-size: 0.9rem; line-height: 1.7; }

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

/* ── Tablet (≤900px) ────────────────────────────── */
@media (max-width: 900px) {
  .corp-layout { grid-template-columns: 1fr; gap: 28px; }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-form-section { padding: 32px 24px; }
  .cf-row { grid-template-columns: 1fr; }
  .contact-page { padding: 40px 20px 60px; }
  .japp-row { grid-template-columns: 1fr; }
  .japp-hdr, #jappForm, .japp-success { padding-left: 20px; padding-right: 20px; }

  /* Job cards — stack on tablet */
  .jobs-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile (≤600px) ────────────────────────────── */
@media (max-width: 600px) {
  /* Tab row — scrolls horizontally, no overflow clip */
  .cp-tab-row { margin-top: 64px; }
  .cp-tab-row > div {
    padding: 0 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .cp-tab-row > div::-webkit-scrollbar { display: none; }
  .cp-tab { padding: 14px 14px; font-size: 0.65rem; letter-spacing: 0.8px; white-space: nowrap; flex-shrink: 0; }

  .dir-grid { grid-template-columns: 1fr; }
  .contact-page { padding: 24px 16px 60px; }
  .cp-form-section { padding: 24px 16px; }

  /* Job cards — 1 column on mobile */
  .jobs-grid { grid-template-columns: 1fr; }
  .job-card-body { padding: 20px 18px; }
  .job-card-img { max-height: 220px; }

  /* Job apply modal */
  .japp-modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh;
    border-radius: 12px 12px 0 0;
    overflow-y: auto;
  }
  .japp-overlay { align-items: flex-end !important; padding: 0 !important; }
  .japp-hdr { padding: 20px 16px 16px !important; }
  #jappForm { padding: 0 16px 16px !important; }

  /* Headings */
  .cp-heading { font-size: 1.55rem; margin-bottom: 24px; }
  .cp-sub { font-size: 0.82rem; margin-bottom: 28px; }
}

/* ── Small Mobile (≤400px) ──────────────────────── */
@media (max-width: 400px) {
  .cp-tab { padding: 12px 10px; font-size: 0.6rem; }
  .cp-heading { font-size: 1.3rem; }
}
