/* =========================================================
   GOLDEN HOUSE CONTACT PAGE
   FULL CSS
========================================================= */

:root {
  --gh-contact-white: #ffffff;
  --gh-contact-cream: #fbf9f5;
  --gh-contact-black: #111111;
  --gh-contact-text: #383838;
  --gh-contact-muted: #737373;
  --gh-contact-gold: #bd8a34;
  --gh-contact-gold-dark: #93671f;
  --gh-contact-border: #e8e3dc;
  --gh-contact-error: #a73a3a;

  --gh-contact-heading-font: "Playfair Display", serif;
  --gh-contact-body-font: "DM Sans", sans-serif;
}


/* =========================================================
   PAGE RESET
========================================================= */

.gh-contact-page,
.gh-contact-page * {
  box-sizing: border-box;
}

.gh-contact-page {
  width: 100%;

  background: var(--gh-contact-white);
  color: var(--gh-contact-black);

  font-family: var(--gh-contact-body-font);

  overflow: hidden;
}

.gh-contact-page a {
  color: inherit;
  text-decoration: none;
}

.gh-contact-page button,
.gh-contact-page input,
.gh-contact-page select,
.gh-contact-page textarea {
  font: inherit;
}

.gh-contact-page button {
  cursor: pointer;
}


/* =========================================================
   1. HERO
========================================================= */

.gh-contact-hero {
  width: 100%;
  padding: 80px 5vw 70px;

  position: relative;
  isolation: isolate;

  background: var(--gh-contact-black);
  color: var(--gh-contact-white);

  text-align: center;

  overflow: hidden;
}

.gh-contact-hero-decor {
  position: absolute;
  inset: 0;
  z-index: -1;

  pointer-events: none;
}

.gh-contact-circle {
  border: 1px solid rgba(189, 138, 52, 0.3);
  border-radius: 50%;

  position: absolute;
}

.gh-contact-circle-one {
  width: 340px;
  height: 340px;

  top: -180px;
  left: -120px;
}

.gh-contact-circle-two {
  width: 280px;
  height: 280px;

  bottom: -160px;
  right: -110px;
}

.gh-contact-star {
  position: absolute;
  top: 22%;
  right: 12%;

  color: var(--gh-contact-gold);

  font-size: 1.3rem;
}

.gh-contact-eyebrow {
  margin: 0;

  color: var(--gh-contact-gold);

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.gh-contact-hero h1 {
  margin: 16px 0 0;

  color: var(--gh-contact-white);

  font-family: var(--gh-contact-heading-font);
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.gh-contact-hero-description {
  max-width: 560px;
  margin: 22px auto 0;

  color: rgba(255, 255, 255, 0.7);

  font-size: 0.94rem;
  line-height: 1.8;
}


/* =========================================================
   2. FORM + DETAILS SECTION
========================================================= */

.gh-contact-main-section {
  width: 100%;
  padding: 70px 5vw 80px;

  background: var(--gh-contact-white);
}

.gh-contact-main-grid {
  width: min(100%, 1300px);
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  align-items: stretch;
  gap: 24px;
}


/* =========================================================
   FORM PANEL
========================================================= */

.gh-contact-form-panel {
  padding: 40px 40px 36px;
  border-radius: 10px;

  background: var(--gh-contact-cream);
  border: 1px solid rgba(17, 17, 17, 0.05);
}

.gh-contact-view {
  display: none;
}

.gh-contact-view.is-active {
  display: block;

  animation: ghContactViewReveal 0.4s ease;
}

.gh-contact-panel-heading {
  margin-bottom: 26px;
}

.gh-contact-panel-heading h2 {
  margin: 0;

  font-family: var(--gh-contact-heading-font);
  font-size: clamp(1.7rem, 2.2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.gh-contact-panel-heading span {
  width: 44px;
  height: 1px;
  margin-top: 14px;

  display: block;

  background: var(--gh-contact-gold);
}


/* =========================================================
   FORM FIELDS
========================================================= */

.gh-contact-field {
  width: 100%;
  margin-bottom: 16px;
}

.gh-contact-field label {
  display: block;
  margin-bottom: 7px;

  color: var(--gh-contact-black);

  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gh-contact-optional {
  color: var(--gh-contact-muted);

  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.gh-contact-field input,
.gh-contact-field select,
.gh-contact-field textarea {
  width: 100%;
  border: 1px solid #dcd8d1;
  border-radius: 3px;

  background: var(--gh-contact-white);
  color: var(--gh-contact-black);

  outline: none;

  font-size: 0.85rem;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.gh-contact-field input,
.gh-contact-field select {
  height: 50px;
  padding: 0 15px;
}

.gh-contact-field textarea {
  min-height: 130px;
  padding: 14px 15px;

  line-height: 1.6;

  resize: vertical;
}

.gh-contact-field select {
  appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, #555 50%),
    linear-gradient(135deg, #555 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 22px,
    calc(100% - 13px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.gh-contact-field input::placeholder,
.gh-contact-field textarea::placeholder {
  color: #a3a3a3;
}

.gh-contact-field input:focus,
.gh-contact-field select:focus,
.gh-contact-field textarea:focus {
  border-color: var(--gh-contact-gold);

  box-shadow: 0 0 0 3px rgba(189, 138, 52, 0.1);
}

.gh-contact-field.has-error input,
.gh-contact-field.has-error select,
.gh-contact-field.has-error textarea {
  border-color: var(--gh-contact-error);
}

.gh-field-error {
  min-height: 15px;
  margin-top: 5px;

  display: block;

  color: var(--gh-contact-error);

  font-size: 0.66rem;
  line-height: 1.4;
}

.gh-message-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 7px;
}

.gh-message-label-row label {
  margin-bottom: 0;
}

#messageCharacterCount {
  color: var(--gh-contact-muted);

  font-size: 0.64rem;
  white-space: nowrap;
}


/* =========================================================
   FORM MESSAGE + SUBMIT
========================================================= */

.gh-contact-form-message {
  min-height: 20px;
  margin-bottom: 6px;

  color: var(--gh-contact-error);

  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.5;
}

.gh-contact-submit-button {
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  padding: 0 24px;
  border: 1px solid var(--gh-contact-black);
  border-radius: 2px;

  position: relative;

  background: var(--gh-contact-black);
  color: var(--gh-contact-white);

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
}

.gh-contact-submit-button:hover {
  background: var(--gh-contact-gold-dark);
  border-color: var(--gh-contact-gold-dark);
}

.gh-contact-submit-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.gh-submit-default,
.gh-submit-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gh-submit-loading {
  display: none;
}

.gh-contact-submit-button.is-loading .gh-submit-default {
  display: none;
}

.gh-contact-submit-button.is-loading .gh-submit-loading {
  display: flex;
}

.gh-contact-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--gh-contact-white);
  border-radius: 50%;

  animation: ghContactSpin 0.7s linear infinite;
}

.gh-contact-privacy {
  margin: 14px 0 0;

  color: var(--gh-contact-muted);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-size: 0.67rem;
  line-height: 1.5;
  text-align: center;
}

.gh-contact-privacy i {
  color: var(--gh-contact-gold);
}


/* =========================================================
   SUCCESS VIEW
========================================================= */

.gh-contact-success-view {
  min-height: 420px;

  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.gh-contact-view.gh-contact-success-view.is-active {
  display: flex;
}

.gh-contact-success-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;

  position: relative;
  margin-bottom: 20px;

  background: var(--gh-contact-black);
  color: var(--gh-contact-white);

  display: grid;
  place-items: center;

  font-size: 1.3rem;
}

.gh-contact-success-icon i {
  animation:
    ghContactIconPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.gh-contact-success-icon::before {
  content: "";

  position: absolute;
  inset: 0;
  border: 2px solid var(--gh-contact-gold);
  border-radius: 50%;

  animation: ghContactRingPulse 0.9s ease-out 0.15s;
}

.gh-contact-success-label {
  margin: 4px 0 8px;

  color: var(--gh-contact-gold-dark);

  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gh-contact-success-view h2 {
  margin: 0;

  font-family: var(--gh-contact-heading-font);
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.gh-contact-success-view p {
  max-width: 340px;
  margin: 12px 0 0;

  color: var(--gh-contact-muted);

  font-size: 0.86rem;
  line-height: 1.75;
}

.gh-contact-reset-button {
  min-width: 200px;
  min-height: 50px;
  margin-top: 26px;
  padding: 0 22px;
  border: 1px solid var(--gh-contact-black);

  background: transparent;
  color: var(--gh-contact-black);

  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.gh-contact-reset-button:hover {
  background: var(--gh-contact-black);
  color: var(--gh-contact-white);
}


/* =========================================================
   CONTACT DETAILS SIDEBAR
========================================================= */

.gh-contact-details-panel {
  padding: 40px 34px;
  border-radius: 10px;

  position: relative;
  isolation: isolate;

  background: var(--gh-contact-black);
  color: var(--gh-contact-white);

  overflow: hidden;
}

.gh-contact-details-panel h2 {
  margin: 0;

  font-family: var(--gh-contact-heading-font);
  font-size: clamp(1.7rem, 2.2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.gh-contact-details-line {
  width: 44px;
  height: 1px;
  margin: 14px 0 30px;

  display: block;

  background: var(--gh-contact-gold);
}

.gh-contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.gh-contact-details-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;

  transition: opacity 0.2s ease;
}

a.gh-contact-details-item:hover {
  opacity: 0.75;
}

.gh-contact-details-icon {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);
  color: var(--gh-contact-gold);

  display: grid;
  place-items: center;

  font-size: 0.95rem;
}

.gh-contact-details-item strong {
  display: block;
  margin-bottom: 4px;

  color: var(--gh-contact-white);

  font-size: 0.78rem;
  font-weight: 700;
}

.gh-contact-details-item span:not(.gh-contact-details-icon) {
  color: rgba(255, 255, 255, 0.68);

  font-size: 0.8rem;
  line-height: 1.6;
}

.gh-contact-details-note {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);

  display: flex;
  align-items: center;
  gap: 9px;

  color: rgba(255, 255, 255, 0.6);

  font-size: 0.76rem;
}

.gh-contact-details-note i {
  color: var(--gh-contact-gold);
}


/* =========================================================
   3. FAQ SECTION
========================================================= */

.gh-contact-faq-section {
  width: 100%;
  padding: 20px 5vw 80px;

  background: var(--gh-contact-white);
}

.gh-contact-faq-heading {
  margin-bottom: 34px;

  text-align: center;
}

.gh-contact-faq-heading p {
  margin: 0 0 9px;

  color: var(--gh-contact-gold-dark);

  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.gh-contact-faq-heading h2 {
  margin: 0;

  font-family: var(--gh-contact-heading-font);
  font-size: clamp(2.3rem, 3.5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.gh-contact-faq-heading span {
  width: 42px;
  height: 1px;
  margin: 16px auto 0;

  display: block;

  background: var(--gh-contact-gold);
}

.gh-faq-grid {
  width: min(100%, 1160px);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 68px;
}

.gh-faq-item {
  border-bottom: 1px solid var(--gh-contact-border);
}

.gh-faq-question {
  width: 100%;
  min-height: 64px;
  padding: 0;
  border: 0;

  background: transparent;
  color: var(--gh-contact-black);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  text-align: left;
}

.gh-faq-question span {
  font-size: 0.8rem;
  font-weight: 500;
}

.gh-faq-question i {
  color: var(--gh-contact-black);

  font-size: 0.65rem;

  transition:
    color 0.25s ease,
    transform 0.3s ease;
}

.gh-faq-question:hover i {
  color: var(--gh-contact-gold);
}

.gh-faq-question[aria-expanded="true"] i {
  color: var(--gh-contact-gold);

  transform: rotate(180deg);
}

.gh-faq-answer {
  display: grid;
  grid-template-rows: 0fr;

  transition: grid-template-rows 0.35s ease;
}

.gh-faq-item.open .gh-faq-answer {
  grid-template-rows: 1fr;
}

.gh-faq-answer > div {
  overflow: hidden;
}

.gh-faq-answer p {
  margin: 0;
  padding: 0 30px 20px 0;

  color: var(--gh-contact-muted);

  font-size: 0.76rem;
  line-height: 1.75;
}


/* =========================================================
   KEYFRAMES
========================================================= */

@keyframes ghContactViewReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ghContactSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ghContactIconPop {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }

  70% {
    transform: scale(1.15);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

@keyframes ghContactRingPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {
  .gh-contact-hero {
    padding: 70px 32px 60px;
  }

  .gh-contact-main-section {
    padding: 15px 32px 60px;
  }

  .gh-contact-main-grid {
    grid-template-columns: 1fr;
  }

  .gh-contact-faq-section {
    padding: 15px 32px 60px;
  }

  .gh-faq-grid {
    column-gap: 42px;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
  .gh-contact-hero {
    padding: 60px 20px 50px;
  }

  .gh-contact-circle-one {
    width: 220px;
    height: 220px;

    top: -130px;
    left: -100px;
  }

  .gh-contact-circle-two {
    width: 190px;
    height: 190px;

    bottom: -110px;
    right: -95px;
  }

  .gh-contact-hero-description {
    font-size: 0.85rem;
  }

  .gh-contact-main-section {
    padding: 15px 20px 50px;
  }

  .gh-contact-form-panel,
  .gh-contact-details-panel {
    padding: 30px 22px;
  }

  .gh-contact-faq-section {
    padding: 15px 20px 45px;
  }

  .gh-faq-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .gh-faq-question {
    min-height: 61px;
  }

  .gh-faq-question span {
    font-size: 0.77rem;
  }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .gh-contact-view.is-active,
  .gh-contact-spinner,
  .gh-contact-success-icon i,
  .gh-contact-success-icon::before,
  .gh-faq-answer,
  .gh-faq-question i {
    transition: none;
    animation: none;
  }
}
