/* ═══════════════════════════════════════════════════════════════════
   NMS — Contact Page
   Complete contact page with hero, info cards, form, map, FAQ.
   All selectors scoped under .nmsh-cp to prevent global leaks.
   ═══════════════════════════════════════════════════════════════════ */
.nmsh-cp {
  --cp-accent: #057485;
  --cp-accent-dark: #045a66;
  --cp-ink: #0A2540;
  --cp-muted: #5a6b7d;
  --cp-bg: #f7f9fc;
  --cp-surface: #ffffff;
  --cp-border: #e2e8f0;
  font-family: 'Nunito Sans', 'Jost', system-ui, sans-serif;
  color: var(--cp-ink);
  box-sizing: border-box;
  position: relative;
}
.nmsh-cp *, .nmsh-cp *::before, .nmsh-cp *::after { box-sizing: border-box; }

/* ── Full-width breakout ── */
.elementor-widget-nmsh-contact-page:has(.nmsh-cp--full) {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  overflow-x: hidden !important;
}
.nmsh-cp.nmsh-cp--full { width: 100%; max-width: 100%; margin: 0; }

/* ── Transparent background ── */
.nmsh-cp.nmsh-cp--transparent { background: transparent; }
.nmsh-cp.nmsh-cp--transparent .nmsh-cp-hero { background: transparent; }
.nmsh-cp.nmsh-cp--transparent .nmsh-cp-section { background: transparent; }

/* ── Inner Container ── */
.nmsh-cp-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO — Dual background images (desktop/mobile)
   ═══════════════════════════════════════════════════════════════════ */
.nmsh-cp-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0A2540 0%, #0d3a5c 100%);
}
.nmsh-cp-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.nmsh-cp-hero-bg--desktop { display: block; }
.nmsh-cp-hero-bg--mobile { display: none; }
@media(max-width:768px) {
  .nmsh-cp-hero-bg--desktop { display: none; }
  .nmsh-cp-hero-bg--mobile { display: block; }
}
.nmsh-cp-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.nmsh-cp-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 24px;
  max-width: 700px;
}
.nmsh-cp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cp-accent);
  margin-bottom: 16px;
}
.nmsh-cp-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--cp-accent);
}
.nmsh-cp-hero-title {
  font-family: 'Spartan', system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 16px;
}
.nmsh-cp-hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,.7);
  margin: 0;
}
.nmsh-cp-hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 3;
  pointer-events: none;
  color: var(--cp-bg);
}
.nmsh-cp-hero-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════════════ */
.nmsh-cp-section {
  padding: 80px 24px;
  background: var(--cp-bg);
}
.nmsh-cp-section--alt { background: #fff; }
.nmsh-cp-section-title {
  font-family: 'Spartan', system-ui, sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--cp-ink);
  text-align: center;
  margin: 0 0 48px;
}
.nmsh-cp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Info Cards ── */
.nmsh-cp-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nmsh-cp-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--cp-surface);
  border: 1px solid var(--cp-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}
.nmsh-cp-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.nmsh-cp-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(5,116,133,.1);
  color: var(--cp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.nmsh-cp-info-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--cp-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 4px;
}
.nmsh-cp-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--cp-ink);
  margin: 0;
  line-height: 1.5;
  white-space: pre-line;
}

/* ── Form Card ── */
.nmsh-cp-form-wrap { position: relative; }
.nmsh-cp-form-card {
  position: relative;
  background: linear-gradient(135deg, #0A2540 0%, #0d3a5c 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.nmsh-cp-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
}
.nmsh-cp-form-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.4), transparent, rgba(255,255,255,.2));
}
.nmsh-cp-form-card-inner {
  padding: 32px 28px;
  position: relative;
  z-index: 2;
}
.nmsh-cp-form-title {
  font-family: 'Spartan', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}
.nmsh-cp-form-sub {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  margin: 0 0 20px;
  line-height: 1.5;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

/* ── Built-in Form ── */
.nmsh-cp-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nmsh-cp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.nmsh-cp-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nmsh-cp-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.nmsh-cp-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}
.nmsh-cp-input::placeholder { color: rgba(255,255,255,0.4); }
.nmsh-cp-input:focus {
  border-color: var(--cp-accent);
  box-shadow: 0 0 0 2px rgba(5,116,133,.2);
}
select.nmsh-cp-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='rgba(255,255,255,0.7)' viewBox='0 0 20 20'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
  height: auto;
  min-height: 42px;
  line-height: 1.4;
  position: relative;
  z-index: 10;
}
select.nmsh-cp-input option {
  color: #1a2332;
  background: #fff;
  padding: 10px 12px;
  white-space: normal;
  min-height: 32px;
  line-height: 1.4;
}
textarea.nmsh-cp-input {
  min-height: 80px;
  resize: vertical;
}
.nmsh-cp-submit {
  width: 100%;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--cp-accent) 0%, var(--cp-accent-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 4px 16px rgba(5,116,133,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.nmsh-cp-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5,116,133,.45);
}
.nmsh-cp-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}
.nmsh-cp-form-status {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.nmsh-cp-form-status.is-ok { color: #4ade80; }
.nmsh-cp-form-status.is-error { color: #f87171; }
.nmsh-cp-notice {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 24px;
}

/* ── CF7 Overrides ── */
.nmsh-cp-form-card .wpcf7 { color: #fff; }
.nmsh-cp-form-card .wpcf7 label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.nmsh-cp-form-card .wpcf7 input[type="text"],
.nmsh-cp-form-card .wpcf7 input[type="email"],
.nmsh-cp-form-card .wpcf7 input[type="tel"],
.nmsh-cp-form-card .wpcf7 select,
.nmsh-cp-form-card .wpcf7 textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease;
  box-sizing: border-box;
}
.nmsh-cp-form-card .wpcf7 input::placeholder,
.nmsh-cp-form-card .wpcf7 textarea::placeholder { color: rgba(255,255,255,0.4); }
.nmsh-cp-form-card .wpcf7 input:focus,
.nmsh-cp-form-card .wpcf7 select:focus,
.nmsh-cp-form-card .wpcf7 textarea:focus { border-color: var(--cp-accent); }
.nmsh-cp-form-card .wpcf7 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' fill='rgba(255,255,255,0.7)' viewBox='0 0 20 20'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
  height: auto;
  min-height: 42px;
  line-height: 1.4;
  position: relative;
  z-index: 10;
}
.nmsh-cp-form-card .wpcf7 select option {
  color: #1a2332;
  background: #fff;
  padding: 10px 12px;
  min-height: 32px;
}
.nmsh-cp-form-card .wpcf7 .wpcf7-submit {
  width: 100%;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--cp-accent) 0%, var(--cp-accent-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 4px 16px rgba(5,116,133,.35);
}
.nmsh-cp-form-card .wpcf7 .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5,116,133,.45);
}
.nmsh-cp-form-card .wpcf7-form .wpcf7-response-output {
  border: none;
  padding: 6px 0;
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.nmsh-cp-form-card .wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ok { color: #4ade80; }
.nmsh-cp-form-card .wpcf7-form .wpcf7-response-output.wpcf7-validation-errors,
.nmsh-cp-form-card .wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ng { color: #f87171; }

/* ── Map ── */
.nmsh-cp-map-section {
  padding: 0;
  background: var(--cp-bg);
}
.nmsh-cp-map-wrap {
  position: relative;
}
.nmsh-cp-map {
  width: 100%;
}
.nmsh-cp-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}
.nmsh-cp-map-link {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--cp-accent);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: all .25s ease;
  z-index: 10;
}
.nmsh-cp-map-link:hover {
  background: var(--cp-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
}

/* ── FAQ ── */
.nmsh-cp-faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nmsh-cp-faq-item {
  background: var(--cp-surface);
  border: 1px solid var(--cp-border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .3s ease;
}
.nmsh-cp-faq-item[open] {
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.nmsh-cp-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--cp-ink);
  list-style: none;
  transition: background .2s ease;
}
.nmsh-cp-faq-item summary::-webkit-details-marker { display: none; }
.nmsh-cp-faq-item summary:hover { background: rgba(5,116,133,.03); }
.nmsh-cp-faq-plus {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--cp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cp-accent);
  font-size: 16px;
  font-weight: 700;
  transition: transform .3s ease;
}
.nmsh-cp-faq-item[open] .nmsh-cp-faq-plus { transform: rotate(45deg); }
.nmsh-cp-faq-answer {
  padding: 0 22px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--cp-muted);
}

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

/* Tablet landscape */
@media(max-width:1024px) {
  .nmsh-cp-grid { gap: 36px; }
  .nmsh-cp-info { gap: 14px; }
}

/* Tablet portrait */
@media(max-width:960px) {
  .nmsh-cp-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .nmsh-cp-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .nmsh-cp-form-wrap { order: 2; }
  .nmsh-cp-inner { padding: 0 20px; }
}

/* Mobile */
@media(max-width:768px) {
  .nmsh-cp-hero { min-height: 350px; }
  .nmsh-cp-hero-content { padding: 60px 20px; }
  .nmsh-cp-hero-title { font-size: clamp(24px, 6vw, 32px); }
  .nmsh-cp-hero-sub { font-size: 15px; }
  .nmsh-cp-section { padding: 56px 20px; }
  .nmsh-cp-section-title { margin-bottom: 36px; }
  .nmsh-cp-form-card-inner { padding: 28px 24px; }
  .nmsh-cp-form-title { font-size: 20px; }
  .nmsh-cp-form-sub { font-size: 13px; }
  .nmsh-cp-info-card { padding: 16px; gap: 12px; }
  .nmsh-cp-info-icon { width: 40px; height: 40px; font-size: 16px; }
  .nmsh-cp-info-title { font-size: 11px; }
  .nmsh-cp-info-value { font-size: 13px; }
  .nmsh-cp-faq-item summary { padding: 14px 16px; font-size: 14px; }
  .nmsh-cp-faq-answer { padding: 0 16px 14px; font-size: 13px; }
  .nmsh-cp-map iframe { height: 300px; }
}

/* Mobile portrait */
@media(max-width:640px) {
  .nmsh-cp-hero { min-height: 300px; }
  .nmsh-cp-hero-content { padding: 48px 16px; }
  .nmsh-cp-hero-title { font-size: 26px; }
  .nmsh-cp-hero-sub { font-size: 14px; }
  .nmsh-cp-section { padding: 48px 16px; }
  .nmsh-cp-inner { padding: 0 16px; }
  .nmsh-cp-info {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .nmsh-cp-form-card-inner { padding: 24px 20px; }
  .nmsh-cp-form-title { font-size: 18px; }
  .nmsh-cp-form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .nmsh-cp-input {
    padding: 10px 12px;
    font-size: 13px;
  }
  .nmsh-cp-submit {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Small mobile */
@media(max-width:380px) {
  .nmsh-cp-hero { min-height: 250px; }
  .nmsh-cp-hero-content { padding: 40px 14px; }
  .nmsh-cp-hero-title { font-size: 22px; }
  .nmsh-cp-section { padding: 40px 14px; }
  .nmsh-cp-form-card-inner { padding: 20px 16px; }
  .nmsh-cp-form-title { font-size: 16px; }
  .nmsh-cp-info-card { padding: 14px; }
}

/* ── Reduced Motion ── */
@media(prefers-reduced-motion:reduce) {
  .nmsh-cp-info-card,
  .nmsh-cp-input,
  .nmsh-cp-submit,
  .nmsh-cp-faq-item,
  .nmsh-cp-faq-plus {
    transition: none !important;
  }
}
