/* ============================================================
   CONTACT PAGE STYLES
   ============================================================ */

#contact-main {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-height);
}

/* ---- LEFT ---- */
.contact-left {
  background: var(--light-bg);
  border-right: 1px solid #D8D5CE;
  display: flex;
  align-items: center;
  padding: 80px 64px;
}

.contact-left-inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-headline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-headline span {
  font-family: var(--font-brand);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.06em;
  line-height: 1.05;
  display: block;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid #D8D5CE;
}

.contact-detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
}

.detail-value {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
  transition: color 0.2s ease;
}

a.detail-value:hover {
  color: var(--ember);
}

.contact-blade-img {
  overflow: hidden;
  height: 200px;
}

.contact-blade-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.6);
  transition: filter 0.4s ease, transform 0.6s var(--ease-blade);
}

.contact-blade-img:hover img {
  filter: brightness(0.8);
  transform: scale(1.03);
}

/* ---- RIGHT ---- */
.contact-right {
  background: #F5F0E6;
  display: flex;
  align-items: center;
  padding: 80px 64px;
}

.contact-right-inner {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

/* ---- FORM ---- */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-field {
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 10px;
}

input,
textarea,
select {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  padding: 0 0 12px;
  caret-color: var(--ember);
}

select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B7B87' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

select option {
  background: var(--light-surface);
  color: var(--text-dark);
}

textarea {
  resize: none;
  line-height: 1.6;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dark-dim);
}

.field-line {
  height: 1px;
  background: #C8C4BC;
  position: relative;
  overflow: hidden;
}

.field-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--ember);
  transition: left 0.4s var(--ease-blade);
}

.form-field:focus-within .field-line::after {
  left: 0;
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--text-dark);
  border: 2px solid var(--text-dark);
  color: var(--light-bg);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.form-submit:hover {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--text-dark);
}

.submit-arrow {
  display: flex;
  align-items: center;
  transition: transform 0.3s var(--ease-blade);
}

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

/* Validation */
input.invalid,
textarea.invalid,
select.invalid {
  color: #e05555;
}

input.invalid + .field-line::after,
textarea.invalid + .field-line::after,
select.invalid + .field-line::after {
  background: #e05555;
  left: 0;
}

/* ---- SUCCESS STATE ---- */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 60px 0;
}

.form-success[aria-hidden="false"] {
  display: flex;
}

.success-icon {
  opacity: 0;
  transform: scale(0.7);
  animation: success-pop 0.5s var(--ease-blade) forwards;
}

@keyframes success-pop {
  to { opacity: 1; transform: scale(1); }
}

.success-headline {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.04em;
}

.success-sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-dim);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  #contact-main {
    grid-template-columns: 1fr;
  }

  .contact-left {
    border-right: none;
    border-bottom: 1px solid #D8D5CE;
    padding: 80px 24px 48px;
  }

  .contact-right {
    padding: 48px 24px 80px;
  }

  .contact-left-inner,
  .contact-right-inner {
    max-width: 100%;
  }

  .contact-blade-img {
    display: none;
  }

  .contact-headline span {
    font-size: clamp(36px, 8vw, 56px);
  }
}
