/* =========================
   CONTACT PAGE STYLES
   Premium, editorial, inviting
   ========================= */

/* =========================
   CONTACT HERO OVERRIDE
   Use project-15.jpg for this page
   ========================= */
.contact-hero {
  background-image: url('../images/project-15.jpg');
}

/* =========================
   MAIN CONTACT SECTION
   Centered editorial layout
   ========================= */
.contact-main {
  padding: 56px 0 80px;
  background: var(--background);
}

/* =========================
   CENTERED HEADER
   ========================= */
.contact-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-label {
  display: block;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.contact-heading {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1.15;
  margin-bottom: 24px;
}

.contact-heading .accent {
  color: var(--accent);
}

.contact-intro {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted-foreground);
}

/* =========================
   ARCHITECTURAL FRAME WRAPPER
   ========================= */
.contact-form-frame {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

/* =========================
   PREMIUM FORM CONTAINER
   ========================= */
.contact-form-container {
  position: relative;
  background: rgba(255, 255, 255, 0.72);
  padding: 56px 48px 64px;
  box-shadow: 0 8px 60px rgba(74, 72, 66, 0.06), 0 2px 20px rgba(74, 72, 66, 0.03);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.15s;
}

.contact-form-container.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Architectural corner accent - top-left */
.contact-form-container::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  width: 72px;
  height: 72px;
  border-top: 2px solid rgba(199, 103, 52, 0.7);
  border-left: 2px solid rgba(199, 103, 52, 0.7);
  pointer-events: none;
}

/* Architectural corner accent - bottom-right */
.contact-form-container::after {
  content: '';
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 72px;
  height: 72px;
  border-bottom: 2px solid rgba(199, 103, 52, 0.7);
  border-right: 2px solid rgba(199, 103, 52, 0.7);
  pointer-events: none;
}

/* =========================
   FORM LAYOUT
   ========================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

/* =========================
   FORM FIELDS
   ========================= */
.contact-field {
  position: relative;
}

.contact-field-half {
  max-width: 400px;
}

.contact-label-field {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--foreground);
  margin-bottom: 12px;
}

.contact-optional {
  font-weight: 300;
  color: var(--muted-foreground);
  font-style: italic;
}

.contact-input,
.contact-textarea,
.contact-select {
  width: 100%;
  padding: 14px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  color: var(--foreground);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(187, 187, 187, 0.5);
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.contact-input:focus,
.contact-textarea:focus,
.contact-select:focus {
  border-bottom-color: var(--accent);
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: rgba(74, 72, 66, 0.4);
  font-weight: 300;
}

.contact-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
}

.contact-select {
  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='%234a4842' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 24px;
}

/* Animated underline on focus */
.contact-input-line {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.contact-input:focus ~ .contact-input-line,
.contact-textarea:focus ~ .contact-input-line,
.contact-select:focus ~ .contact-input-line {
  width: 100%;
}

/* =========================
   SUBMIT BUTTON
   ========================= */
.contact-form-submit {
  margin-top: 16px;
  padding-top: 24px;
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 18px 40px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--background);
  background: var(--accent);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
}

.contact-submit-btn:hover {
  background: var(--foreground);
}

.contact-submit-arrow {
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s ease;
}

.contact-submit-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.contact-submit-btn:hover .contact-submit-arrow {
  width: 36px;
}

/* =========================
   TABLET (min-width: 768px)
   ========================= */
@media (min-width: 768px) {
  .contact-main {
    padding: 72px 0 100px;
  }
  
  .contact-header {
    margin-bottom: 72px;
  }
  
  .contact-heading {
    font-size: 44px;
  }
  
  .contact-intro {
    font-size: 17px;
  }
  
  .contact-form-container {
    padding: 64px 56px 72px;
  }
  
  .contact-form-container::before {
    top: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
  }
  
  .contact-form-container::after {
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
  }
  
  .contact-form {
    gap: 40px;
  }
  
  .contact-form-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .contact-label-field {
    font-size: 13px;
    margin-bottom: 14px;
  }
  
  .contact-input,
  .contact-textarea,
  .contact-select {
    font-size: 16px;
    padding: 16px 0;
  }
}

/* =========================
   DESKTOP (min-width: 1024px)
   ========================= */
@media (min-width: 1024px) {
  .contact-main {
    padding: 88px 0 120px;
  }
  
  .contact-header {
    max-width: 700px;
    margin-bottom: 80px;
  }
  
  .contact-label {
    margin-bottom: 28px;
  }
  
  .contact-heading {
    font-size: 52px;
    margin-bottom: 28px;
  }
  
  .contact-intro {
    font-size: 18px;
  }
  
  .contact-form-container {
    padding: 72px 72px 80px;
  }
  
  .contact-form-container::before {
    top: 24px;
    left: 24px;
    width: 96px;
    height: 96px;
  }
  
  .contact-form-container::after {
    bottom: 24px;
    right: 24px;
    width: 96px;
    height: 96px;
  }
  
  .contact-form {
    gap: 44px;
  }
  
  .contact-form-row {
    gap: 56px;
  }
  
  .contact-textarea {
    min-height: 160px;
  }
  
  .contact-submit-btn {
    padding: 20px 48px;
    font-size: 14px;
  }
}

/* =========================
   XL DESKTOP (min-width: 1280px)
   ========================= */
@media (min-width: 1280px) {
  .contact-main {
    padding: 100px 0 140px;
  }
  
  .contact-header {
    margin-bottom: 88px;
  }
  
  .contact-heading {
    font-size: 58px;
  }
  
  .contact-form-frame {
    max-width: 1040px;
  }
  
  .contact-form-container {
    padding: 80px 88px 96px;
  }
  
  .contact-form-container::before {
    top: 28px;
    left: 28px;
    width: 110px;
    height: 110px;
  }
  
  .contact-form-container::after {
    bottom: 28px;
    right: 28px;
    width: 110px;
    height: 110px;
  }
}

/* =========================
   2XL DESKTOP (min-width: 1536px)
   ========================= */
@media (min-width: 1536px) {
  .contact-heading {
    font-size: 64px;
  }
  
  .contact-form-frame {
    max-width: 1120px;
  }
  
  .contact-form-container::before {
    width: 120px;
    height: 120px;
  }
  
  .contact-form-container::after {
    width: 120px;
    height: 120px;
  }
}

/* =========================
   MOBILE (max-width: 480px)
   ========================= */
@media (max-width: 480px) {
  .contact-main {
    padding: 40px 0 64px;
  }
  
  .contact-header {
    margin-bottom: 48px;
  }
  
  .contact-heading {
    font-size: 30px;
  }
  
  .contact-intro {
    font-size: 15px;
  }
  
  .contact-form-container {
    padding: 40px 24px 48px;
  }
  
  .contact-form-container::before {
    top: 12px;
    left: 12px;
    width: 48px;
    height: 48px;
  }
  
  .contact-form-container::after {
    bottom: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
  }
  
  .contact-form {
    gap: 32px;
  }
  
  .contact-submit-btn {
    width: 100%;
    justify-content: center;
  }
}
