.contact {
  padding: 6.5rem 2rem;
  max-width: 1320px;
  margin: 0 auto;
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: stretch;
}

.contact-photo {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: 420px;
}

.contact-photo-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.contact-photo-card {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 251, 243, 0.95);
  backdrop-filter: blur(6px);
  border-radius: 5px;
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.contact-photo-card i {
  font-size: 1.5rem;
  color: #5c6b45;
}

.contact-photo-card strong {
  display: block;
  font-size: 0.92rem;
}

.contact-photo-card span {
  font-size: 0.78rem;
  color: #85796a;
}

.contact-form-wrap h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin: 0.4rem 0 0.8rem;
}

.contact-form-sub {
  color: #85796a;
  margin-bottom: 1.6rem;
  max-width: 480px;
}

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.contact-chip {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #211d1a;
  background: #fffbf3;
  border: 1px solid #e4d9c5;
  border-radius: 40px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.contact-chip:hover {
  border-color: #b1563a;
}

.contact-chip.is-active {
  background: #5c6b45;
  border-color: #5c6b45;
  color: #fffbf3;
}

.contact-form {
  background: #fffbf3;
  padding: 2.2rem;
  border-radius: 6px;
  border: 1px solid #e4d9c5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem 1rem 0.5rem;
  border: 1px solid #e4d9c5;
  border-radius: 4px;
  background: #f6efe3;
  font-size: 0.94rem;
  color: #211d1a;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #5c6b45;
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 0.94rem;
  color: #85796a;
  pointer-events: none;
  transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 0.45rem;
  font-size: 0.7rem;
  color: #5c6b45;
  font-weight: 600;
}

.contact-form-success {
  display: none;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #5c6b45;
  font-weight: 600;
}

.contact-form-success.is-visible {
  display: flex;
}

@media (max-width: 980px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-photo {
    min-height: 280px;
  }
}

@media (max-width: 560px) {
  .contact {
    padding: 5rem 1.4rem;
  }
  .contact-form {
    padding: 1.7rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
