/* =========================================================
   NEW WORLD MEDIA — CONTACT PAGE
   Typography & Theme synced with Space Grotesk & DM Sans
   ========================================================= */

* {
  box-sizing: border-box;
}

:root {
  --contact-gold: #ffd447;
  --contact-gold-light: #ffe37d;
  --contact-border: rgba(255, 212, 71, 0.35);
  --contact-muted: #a3a3a3;
  --contact-bg-card: rgba(12, 11, 9, 0.96);
}

body.contact-page {
  margin: 0;
  min-height: 100vh;
  padding: 110px 5vw 50px;
  display: grid;
  place-items: center;
  background-color: #050505;
  background-image: url("../images/body-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #f8f5ef;
  font-family: var(--font-main, "DM Sans", sans-serif);
  overflow-x: hidden;
  position: relative;
}

body.contact-page:before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   CONTACT CARD MODAL
   ========================================================= */
.contact-modal {
  position: relative;
  z-index: 2;
  width: min(1360px, 100%);
  min-height: min(840px, 86vh);
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  border: 1px solid var(--contact-border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--contact-bg-card);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8),
              inset 0 0 30px rgba(255, 212, 71, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* CLOSE BUTTON */
.contact-close {
  position: absolute;
  right: 24px;
  top: 18px;
  z-index: 10;
  color: #f8f5ef;
  text-decoration: none;
  font-size: 32px;
  line-height: 1;
  font-weight: 300;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: all 0.25s ease;
}

.contact-close:hover {
  color: var(--contact-gold);
  transform: rotate(90deg) scale(1.1);
  background: rgba(255, 212, 71, 0.08);
}

/* LEFT PITCH */
.contact-pitch {
  padding: clamp(40px, 5vw, 75px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 212, 71, 0.15);
  background: radial-gradient(ellipse at 30% 40%, rgba(255, 212, 71, 0.08), transparent 65%),
              rgba(0, 0, 0, 0.35);
}

.contact-mark {
  width: clamp(100px, 12vw, 150px);
  height: auto;
  object-fit: contain;
  margin-bottom: 48px;
  filter: drop-shadow(0 0 16px rgba(255, 212, 71, 0.4));
}

.contact-eyebrow {
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--contact-gold);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.contact-pitch h1 {
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-weight: 700;
  font-size: clamp(48px, 5.2vw, 84px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 20px;
  color: #ffffff;
}

.contact-pitch h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #fff5c0 0%, #ffd447 45%, #c88a2b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-pitch p {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: #d1cbcb;
  max-width: 400px;
  margin: 0;
}

.contact-rule {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--contact-gold);
  box-shadow: 0 0 10px rgba(255, 212, 71, 0.5);
  margin-top: 36px;
}

/* RIGHT FORM PANEL */
.contact-form-panel {
  padding: clamp(40px, 4.5vw, 65px) clamp(25px, 3.5vw, 55px);
  display: flex;
  align-items: center;
}

.contact-form-panel form {
  width: 100%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}

.contact-grid label {
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: #f1eee9;
  display: block;
}

.contact-grid label > b,
.contact-consent b {
  color: var(--contact-gold);
}

.contact-grid input:not([type="checkbox"]),
.contact-grid select,
.contact-grid textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font: 400 13px var(--font-main, "DM Sans", sans-serif);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-grid textarea {
  padding-top: 12px;
  min-height: 90px;
  resize: vertical;
}

.contact-grid input::placeholder,
.contact-grid textarea::placeholder {
  color: #777777;
}

.contact-grid select {
  appearance: none;
  -webkit-appearance: none;
  color: #ffffff;
  padding-right: 38px !important;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffd447' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}

.contact-grid select option {
  background-color: #111111;
  color: #ffffff;
  padding: 10px;
}

.contact-grid select option,
.contact-phone select option {
  background: #111111;
  color: #ffffff;
}

.contact-grid input:focus,
.contact-grid select:focus,
.contact-grid textarea:focus {
  border-color: var(--contact-gold);
  box-shadow: 0 0 0 2px rgba(255, 212, 71, 0.15);
}

.wide {
  grid-column: 1 / -1;
}

.contact-phone {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.contact-phone select {
  width: 88px;
  flex: 0 0 88px;
  margin: 0;
}

.contact-phone input {
  margin: 0 !important;
  min-width: 0;
}

/* CONSENT */
.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 18px;
  font-size: 12px;
  color: var(--contact-muted);
  font-family: var(--font-main, "DM Sans", sans-serif);
}

.contact-consent input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: transparent;
  margin-top: 2px;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all 0.2s ease;
}

.contact-consent input:checked {
  background: var(--contact-gold);
  border-color: var(--contact-gold);
}

.contact-consent input:checked::after {
  content: "✓";
  color: #000000;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

/* SUBMIT BUTTON */
.contact-submit {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 30px;
  background: var(--contact-gold);
  color: #000000;
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.contact-submit span {
  font-size: 18px;
  transition: transform 0.25s ease;
}

.contact-submit:hover {
  background: var(--contact-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 212, 71, 0.35);
}

.contact-submit:hover span {
  transform: translateX(4px);
}

.contact-feedback {
  margin: 12px 0 0;
  color: var(--contact-gold);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 990px) {
  body.contact-page {
    padding: 90px 20px 40px;
  }
  .contact-modal {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .contact-pitch {
    padding: 40px 30px 35px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 212, 71, 0.15);
  }
  .contact-mark {
    margin-bottom: 24px;
    width: 110px;
  }
  .contact-pitch h1 {
    font-size: clamp(40px, 7vw, 56px);
  }
  .contact-form-panel {
    padding: 35px 25px;
  }
}

@media (max-width: 600px) {
  body.contact-page {
    padding: 80px 12px 30px;
  }
  .contact-modal {
    border-radius: 16px;
  }
  .contact-pitch {
    padding: 30px 20px;
  }
  .contact-form-panel {
    padding: 25px 18px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .wide {
    grid-column: auto;
  }
  .contact-submit {
    min-height: 48px;
  }
  .contact-close {
    font-size: 28px;
    right: 14px;
    top: 14px;
  }
}

/* ==========================================================================
   MULTI-SERVICE CHECKBOX DESIGN & HIERARCHY
   ========================================================================== */

.service-field {
  min-width: 0;
  width: 100%;
}

.service-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  color: #f1eee9;
}

.service-label b {
  color: var(--contact-gold, #ffd447);
}

.service-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  width: 100%;
}

.service-group {
  min-width: 0;
}

/* Main Parent Service Option Box */
.contact-grid label.service-option,
.service-options .service-option,
.service-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  min-height: 48px;
  padding: 12px 14px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.service-option:hover {
  border-color: rgba(255, 212, 71, 0.55);
  background: rgba(255, 212, 71, 0.06);
}

.service-option:has(input:checked) {
  border-color: var(--contact-gold, #ffd447);
  background: rgba(255, 212, 71, 0.10);
}

/* Custom Checkbox for Parent Option */
.service-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #777;
  border-radius: 4px;
  background: #111;
  cursor: pointer;
  box-sizing: border-box;
  flex-shrink: 0 !important;
}

.service-option input[type="checkbox"]:checked {
  background: var(--contact-gold, #ffd447);
  border-color: var(--contact-gold, #ffd447);
}

.service-option input[type="checkbox"]:checked::after {
  content: "✓";
  color: #050505;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.service-option span {
  display: inline-block !important;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #f1eee9;
  font-family: var(--font-main, "DM Sans", sans-serif);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  user-select: none;
}

/* Sub-Services Container (Reveals when parent checked) */
.sub-service-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 212, 71, 0.2);
  border-radius: 8px;
  background: rgba(255, 212, 71, 0.035);
}

.sub-service-options[hidden] {
  display: none !important;
}

/* Sub-service Labels with Specificity override */
.contact-grid .sub-service-options label,
.sub-service-options label {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 9px !important;
  color: #d8d2c8 !important;
  font-family: var(--font-main, "DM Sans", sans-serif) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
  cursor: pointer;
  margin: 0;
}

.sub-service-options input[type="checkbox"] {
  flex: 0 0 15px !important;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  margin: 2px 0 0 !important;
  accent-color: #ffd447;
  cursor: pointer;
}

.service-hint {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(241, 238, 233, 0.5);
}

/* Single column on mobile devices */
@media (max-width: 600px) {
  .service-options {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CUSTOM DROPDOWNS (TIMELINE & SOURCE) — IN-PAGE GOLD THEME
   ========================================================================== */

.custom-dropdown {
  position: relative;
  width: 100%;
  margin-top: 8px;
}

.custom-dropdown__native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
}

.custom-dropdown__trigger {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font: 400 13px var(--font-main, "DM Sans", sans-serif);
  cursor: pointer;
  outline: none;
  text-align: left;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.custom-dropdown__trigger:hover,
.custom-dropdown.open .custom-dropdown__trigger {
  border-color: var(--contact-gold, #ffd447);
  box-shadow: 0 0 0 2px rgba(255, 212, 71, 0.15);
  background: rgba(255, 212, 71, 0.04);
}

.custom-dropdown__label {
  color: #888888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-dropdown__trigger.has-value .custom-dropdown__label {
  color: #ffffff;
}

.custom-dropdown__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--contact-gold, #ffd447);
  flex-shrink: 0;
  margin-left: 10px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-dropdown.open .custom-dropdown__arrow {
  transform: rotate(180deg);
}

.custom-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 220px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #0d0c0a;
  border: 1px solid rgba(255, 212, 71, 0.25);
  border-radius: 10px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85),
              0 0 20px rgba(255, 212, 71, 0.06);
  overflow-y: auto;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.custom-dropdown.open .custom-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-dropdown__menu::-webkit-scrollbar {
  width: 4px;
}

.custom-dropdown__menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.custom-dropdown__menu::-webkit-scrollbar-thumb {
  background: var(--contact-gold, #ffd447);
  border-radius: 4px;
}

.custom-dropdown__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  font-family: var(--font-main, "DM Sans", sans-serif);
  font-size: 13px;
  color: #d1cbcb;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.custom-dropdown__option:hover {
  background: rgba(255, 212, 71, 0.1);
  color: var(--contact-gold, #ffd447);
}

.custom-dropdown__option.selected {
  background: rgba(255, 212, 71, 0.15);
  color: var(--contact-gold, #ffd447);
  font-weight: 600;
}