/* -- contact.html - Page-specific styles -- */

:root {
  --gold: #F2B54A;
  --ink: #1D0D06;
  --cream: #FAFAF9;
}

/* -- NOISE GRAIN -- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* -- SCROLLBAR -- */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
}

::selection {
  background: rgba(242, 181, 74, 0.15);
}

/* -- TOP BAR -- */
.top-bar {
  background: var(--ink);
  border-bottom: 1px solid rgba(242, 181, 74, 0.07);
}

/* -- NAV -- */
.nav-glass {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(232, 228, 223, 0.8);
  box-shadow: 0 8px 32px rgba(29, 13, 6, 0.06);
}

/* -- SMART HEADER LOGIC -- */
header {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, padding 0.5s ease;
}

header.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

header.header-scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

header.header-scrolled nav {
  height: 4.5rem !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
}

/* -- REVEAL -- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.reveal-delay-3 {
  transition-delay: 0.36s;
}

/* -- PAGE ENTRANCE -- */
.entrance {
  opacity: 0;
  transform: translateY(40px);
  animation: entranceIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.entrance-delay-1 {
  animation-delay: 0.15s;
}

.entrance-delay-2 {
  animation-delay: 0.3s;
}

.entrance-delay-3 {
  animation-delay: 0.45s;
}

.entrance-delay-4 {
  animation-delay: 0.6s;
}

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

/* -- SPLIT LAYOUT -- */
.page-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  min-height: calc(100vh - 5rem);
}

@media (max-width: 1024px) {
  .page-split {
    grid-template-columns: 1fr;
  }
}

/* -- LEFT PANEL -- */
.left-panel {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 8rem 3rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .left-panel {
    padding-top: 10rem; /* Lowered content only in web */
  }
}

.panel-stack {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2.5rem;
}

.left-panel-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F2B54A' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.left-panel-glow {
  position: absolute;
  z-index: 0;
  bottom: -10rem;
  left: -10rem;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(242, 181, 74, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

/* -- CONTACT METHOD -- */
.contact-method {
  position: relative;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.4s;
}

.contact-method:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-method:hover {
  border-color: rgba(242, 181, 74, 0.15);
}

.contact-method .cm-label {
  font-size: 0.70rem; /* Bigger labels */
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 0.75rem;
  display: block;
}

.contact-method a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.35rem; /* Bigger on mobile */
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .contact-method a {
    font-size: 1.15rem; /* Significantly bigger on web */
  }
}

.contact-method a:hover {
  color: var(--gold);
}

.contact-method .cm-arrow {
  width: 1.5rem;
  height: 1px;
  background: rgba(242, 181, 74, 0.3);
  transition: width 0.4s, background 0.3s;
}

.contact-method a:hover .cm-arrow {
  width: 2.5rem;
  background: var(--gold);
}

/* -- PROMISE BADGE -- */
.promise-badge {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(242, 181, 74, 0.12);
  border-radius: 1rem;
  background: rgba(242, 181, 74, 0.04);
  transition: border-color 0.4s, background 0.4s;
}

.promise-badge:hover {
  border-color: rgba(242, 181, 74, 0.2);
  background: rgba(242, 181, 74, 0.07);
}

.badge-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  background: rgba(242, 181, 74, 0.1);
  border: 1px solid rgba(242, 181, 74, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

/* -- RIGHT PANEL / FORM -- */
.right-panel {
  background: var(--cream);
  padding: 8rem 3rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (min-width: 1024px) {
  .right-panel {
    min-height: 100vh;
  }
}

@media (max-width: 1024px) {
  .left-panel {
    min-height: auto;
    padding: 8.5rem 1.5rem 4rem;
  }

  .right-panel {
    min-height: auto;
    padding: 4rem 1.5rem 4rem;
  }
}

/* -- FORM FIELD -- */
.field-wrap {
  position: relative;
}

.field-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(50, 22, 10, 0.35);
  margin-bottom: 0.6rem;
}

.field-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(50, 22, 10, 0.12);
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  transition: border-color 0.4s;
  outline: none;
}

.field-input::placeholder,
.field-textarea::placeholder {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(50, 22, 10, 0.4);
}

.field-input:focus {
  border-bottom-color: transparent;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: #1D0D06 !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

.field-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(to right, #F2B54A, #D49620);
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
  pointer-events: none;
}

.field-input:focus~.field-underline,
.dropdown-toggle:focus~.field-underline {
  width: 100%;
}

.field-input.error,
.field-textarea.error,
.dropdown-toggle.error {
  border: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}

.field-input.error~.field-underline,
.field-textarea.error~.field-underline,
.dropdown-toggle.error~.field-underline {
  width: 100%;
  background: #C45C3A;
  height: 1.5px !important;
  animation: shake 0.4s ease;
  z-index: 10;
  position: relative;
  border-radius: 0;
  box-shadow: none;
}

/* Custom Dropdown (Replaces Select) */
.dropdown-toggle {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(50, 22, 10, 0.12);
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  transition: border-color 0.4s;
  outline: none;
}

.dropdown-toggle.placeholder-state {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(50, 22, 10, 0.4);
}

.dropdown-toggle:focus {
  border-bottom-color: transparent;
}

/* Textarea */
.field-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(50, 22, 10, 0.12);
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  resize: none;
  outline: none;
  transition: border-color 0.4s;
}

.field-textarea:focus {
  border-bottom-color: transparent;
}

/* -- SUBMIT BTN -- */
.btn-submit {
  width: 100%;
  padding: 1.2rem 2rem;
  background: var(--ink);
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit:hover::before {
  transform: scaleX(1);
}

.btn-submit:hover {
  color: var(--ink);
  box-shadow: 0 0 40px rgba(242, 181, 74, 0.25);
}

.btn-submit span,
.btn-submit svg {
  position: relative;
  z-index: 1;
}

.btn-submit:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-arrow {
  transition: transform 0.3s;
}

/* -- SUCCESS STATE -- */
.success-overlay {
  position: absolute;
  inset: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 2rem 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.checkmark-circle {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 1px solid rgba(242, 181, 74, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(242, 181, 74, 0.15);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(242, 181, 74, 0);
  }
}

/* -- ORNAMENT -- */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(242, 181, 74, 0.2), transparent);
}

/* -- SECTION LABEL -- */
.section-label {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

/* -- GOLD DIVIDER -- */
.gold-divider {
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
}

/* -- FOOTER -- */
.footer-link {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
  transition: color 0.3s;
  display: inline-block;
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-link:hover::after {
  width: 100%;
}

/* -- STEP INDICATOR -- */
.step-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(50, 22, 10, 0.12);
  transition: background 0.4s, transform 0.4s;
}

.step-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* -- FLOATING LABEL ANIMATION -- */
.float-label-wrap {
  position: relative;
}

.float-label {
  position: absolute;
  top: 0.75rem;
  left: 0;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(50, 22, 10, 0.25);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.float-input:focus~.float-label,
.float-input:not(:placeholder-shown)~.float-label {
  top: -1rem;
  font-size: 0.55rem;
  color: var(--gold);
}

/* -- MOBILE MENU -- */
#mobileMenu {
  background: var(--ink);
}

/* -- DECORATIVE CORNER -- */
.corner-mark {
  position: absolute;
  width: 3rem;
  height: 3rem;
  border-color: rgba(242, 181, 74, 0.12);
}

.corner-mark-tl {
  top: 2rem;
  left: 2rem;
  border-top: 1px solid;
  border-left: 1px solid;
}

.corner-mark-tr {
  top: 2rem;
  right: 2rem;
  border-top: 1px solid;
  border-right: 1px solid;
}

.corner-mark-bl {
  bottom: 2rem;
  left: 2rem;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.corner-mark-br {
  bottom: 2rem;
  right: 2rem;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

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

/* -- ANIMATIONS -- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}
