/* =========================================================
   Oryzias LLC — English Contact Page v2
   Scope: .ory-contact-en only
   ========================================================= */

.ory-contact-en {
  --ory-ink: #172230;
  --ory-ink-soft: #34465a;
  --ory-muted: #6b7785;
  --ory-accent: #b18a45;
  --ory-accent-dark: #8e6b2f;
  --ory-navy: #162b3b;
  --ory-navy-2: #21485b;
  --ory-pale: #f5f7f8;
  --ory-line: #dde3e7;
  --ory-white: #ffffff;
  --ory-shadow: 0 26px 70px rgba(21, 37, 52, .14);
  color: var(--ory-ink);
  background: var(--ory-white);
  overflow: hidden;
  font-family: inherit;
}

.ory-contact-en,
.ory-contact-en *,
.ory-contact-en *::before,
.ory-contact-en *::after {
  box-sizing: border-box;
}

.ory-contact-en h1,
.ory-contact-en h2,
.ory-contact-en h3,
.ory-contact-en p {
  margin-top: 0;
}

.ory-contact-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* HERO */
.ory-contact-hero {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 92px 0 145px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(17, 39, 53, .97) 0%, rgba(20, 63, 80, .93) 60%, rgba(35, 91, 108, .88) 100%),
    radial-gradient(circle at 85% 22%, rgba(255,255,255,.13) 0 2px, transparent 3px);
}

.ory-contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .2;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, transparent, #000 36%, #000);
}

.ory-contact-hero::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -250px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 58px rgba(255,255,255,.05),
    0 0 0 116px rgba(255,255,255,.025);
  pointer-events: none;
}

.ory-contact-eyebrow,
.ory-contact-section-label {
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.ory-contact-eyebrow {
  color: #d3b37a;
}

.ory-contact-hero h1 {
  max-width: 820px;
  margin-bottom: 26px;
  color: #fff;
  font-size: clamp(54px, 7vw, 88px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 600;
}

.ory-contact-lead {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.85;
}

/* MAIN */
.ory-contact-main {
  position: relative;
  padding: 0 0 118px;
  background:
    linear-gradient(180deg, #f4f7f8 0, #fff 240px, #fff 100%);
}

.ory-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(500px, 1.12fr);
  gap: clamp(58px, 7vw, 96px);
  align-items: start;
}

.ory-contact-copy {
  padding-top: 98px;
}

.ory-contact-section-label {
  color: var(--ory-accent-dark);
}

.ory-contact-copy > h2,
.ory-contact-form-heading h2 {
  margin-bottom: 22px;
  color: var(--ory-ink);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -.04em;
  font-weight: 650;
}

.ory-contact-copy > p:not(.ory-contact-section-label) {
  margin-bottom: 0;
  color: var(--ory-muted);
  font-size: 16px;
  line-height: 1.95;
}

/* PROCESS */
.ory-contact-points {
  display: grid;
  gap: 16px;
  margin-top: 42px;
}

.ory-contact-point {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 23px 24px;
  background: #fff;
  border: 1px solid var(--ory-line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ory-contact-point:hover {
  transform: translateY(-3px);
  border-color: #c9d3d9;
  box-shadow: 0 14px 34px rgba(26, 44, 60, .08);
}

.ory-contact-point-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--ory-navy);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.ory-contact-point h3 {
  margin: 0 0 7px;
  color: var(--ory-ink);
  font-size: 18px;
  line-height: 1.4;
}

.ory-contact-point p {
  margin: 0;
  color: var(--ory-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* DIRECT CONTACT */
.ory-contact-info {
  position: relative;
  margin-top: 28px;
  padding: 28px 30px 28px 34px;
  background: var(--ory-navy);
  color: #fff;
  overflow: hidden;
}

.ory-contact-info::after {
  content: "@";
  position: absolute;
  right: 18px;
  top: -18px;
  color: rgba(255,255,255,.06);
  font-size: 120px;
  line-height: 1;
  font-weight: 700;
}

.ory-contact-info-title {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  color: #d3b37a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.ory-contact-info a {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: #fff;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 650;
  text-decoration: none;
}

.ory-contact-info a:hover,
.ory-contact-info a:focus-visible {
  color: #e2c690;
}

.ory-contact-info > p:last-child {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: rgba(255,255,255,.68);
  font-size: 14px;
}

/* FORM CARD */
.ory-contact-form-card {
  position: relative;
  z-index: 3;
  margin-top: -155px;
  padding: clamp(34px, 4vw, 54px);
  background: rgba(255,255,255,.99);
  border: 1px solid rgba(212, 221, 226, .95);
  box-shadow: var(--ory-shadow);
}

.ory-contact-form-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 92px;
  height: 4px;
  background: var(--ory-accent);
}

.ory-contact-form-heading {
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ory-line);
}

.ory-contact-form-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.2vw, 42px);
}

.ory-contact-form-heading > p:last-child {
  margin-bottom: 0;
  color: var(--ory-muted);
  font-size: 14px;
}

/* Contact Form 7 */
.ory-contact-form-wrap .wpcf7,
.ory-contact-form-wrap .wpcf7-form {
  width: 100%;
}

.ory-contact-form-wrap .wpcf7-form p {
  margin: 0 0 22px;
}

.ory-contact-form-wrap .wpcf7-form label {
  display: block;
  color: var(--ory-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .01em;
}

.ory-contact-form-wrap .wpcf7-form-control-wrap {
  display: block;
  margin-top: 9px;
}

.ory-contact-form-wrap input[type="text"],
.ory-contact-form-wrap input[type="email"],
.ory-contact-form-wrap input[type="tel"],
.ory-contact-form-wrap input[type="url"],
.ory-contact-form-wrap input[type="number"],
.ory-contact-form-wrap input[type="date"],
.ory-contact-form-wrap select,
.ory-contact-form-wrap textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 14px 16px;
  color: var(--ory-ink);
  background: #fbfcfd;
  border: 1px solid #cfd8dd;
  border-radius: 2px;
  outline: none;
  box-shadow: none;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  -webkit-appearance: none;
}

.ory-contact-form-wrap textarea {
  min-height: 180px;
  resize: vertical;
}

.ory-contact-form-wrap select {
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #667784 50%),
    linear-gradient(135deg, #667784 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 24px,
    calc(100% - 14px) 24px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.ory-contact-form-wrap input::placeholder,
.ory-contact-form-wrap textarea::placeholder {
  color: #98a4ae;
  opacity: 1;
}

.ory-contact-form-wrap input:focus,
.ory-contact-form-wrap select:focus,
.ory-contact-form-wrap textarea:focus {
  border-color: var(--ory-navy-2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(33, 72, 91, .10);
}

.ory-contact-form-wrap .wpcf7-list-item {
  margin: 0 16px 8px 0;
}

.ory-contact-form-wrap input[type="checkbox"],
.ory-contact-form-wrap input[type="radio"] {
  accent-color: var(--ory-navy);
}

.ory-contact-form-wrap input[type="submit"],
.ory-contact-form-wrap .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  margin: 4px 0 0;
  padding: 16px 26px;
  color: #fff;
  background: var(--ory-navy);
  border: 1px solid var(--ory-navy);
  border-radius: 2px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.ory-contact-form-wrap input[type="submit"]:hover,
.ory-contact-form-wrap input[type="submit"]:focus-visible,
.ory-contact-form-wrap .wpcf7-submit:hover,
.ory-contact-form-wrap .wpcf7-submit:focus-visible {
  color: #fff;
  background: var(--ory-navy-2);
  border-color: var(--ory-navy-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(22, 43, 59, .18);
}

.ory-contact-form-wrap .wpcf7-spinner {
  display: block;
  margin: 14px auto 0;
}

.ory-contact-form-wrap .wpcf7-not-valid-tip {
  margin-top: 7px;
  color: #b43b3b;
  font-size: 12px;
}

.ory-contact-form-wrap .wpcf7-response-output {
  margin: 22px 0 0 !important;
  padding: 14px 16px !important;
  border: 1px solid #c8d2d8 !important;
  background: #f7f9fa;
  color: var(--ory-ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.ory-contact-form-wrap form.sent .wpcf7-response-output {
  border-color: #6c9d82 !important;
  background: #eef7f2;
}

.ory-contact-form-wrap form.invalid .wpcf7-response-output,
.ory-contact-form-wrap form.unaccepted .wpcf7-response-output,
.ory-contact-form-wrap form.payment-required .wpcf7-response-output {
  border-color: #c49a48 !important;
  background: #fff8e8;
}

.ory-contact-privacy-note {
  margin: 20px 0 0;
  color: #7b8791;
  font-size: 12px;
  line-height: 1.75;
}

/* Theme conflict guards */
.ory-contact-en .entry-content,
.ory-contact-en .site-content,
.ory-contact-en .ast-container,
.ory-contact-en .container {
  max-width: none;
  padding: 0;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .ory-contact-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .ory-contact-copy {
    padding-top: 72px;
  }

  .ory-contact-form-card {
    order: -1;
    margin-top: -100px;
  }
}

@media (max-width: 640px) {
  .ory-contact-container {
    width: min(100% - 30px, 1180px);
  }

  .ory-contact-hero {
    min-height: 360px;
    padding: 74px 0 116px;
  }

  .ory-contact-hero h1 {
    font-size: clamp(46px, 16vw, 64px);
  }

  .ory-contact-lead {
    font-size: 16px;
    line-height: 1.75;
  }

  .ory-contact-main {
    padding-bottom: 78px;
  }

  .ory-contact-form-card {
    margin-top: -72px;
    padding: 30px 22px;
  }

  .ory-contact-copy {
    padding-top: 12px;
  }

  .ory-contact-point {
    grid-template-columns: 44px 1fr;
    padding: 20px 18px;
  }

  .ory-contact-point-number {
    width: 36px;
    height: 36px;
  }

  .ory-contact-info {
    padding: 24px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ory-contact-en *,
  .ory-contact-en *::before,
  .ory-contact-en *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
