/* Contact Page Styles */

/* Section */
.contact-section {
  background: #FAFAF8;
  min-height: calc(100vh - 80px);
  padding: 5rem 0;
  display: flex;
  align-items: center;
}

/* Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

/* Left Content */
.contact-content {
  padding-right: 2rem;
}

.contact-title {
  font-family: 'Recoleta', Georgia, serif;
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 500;
  color: #2A2A2A;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.contact-subtitle {
  font-size: 1.125rem;
  color: #6B6B6B;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-info__icon {
  color: #2F5A1E;
  flex-shrink: 0;
}

.contact-info__text {
  font-size: 1rem;
  color: #2A2A2A;
  text-decoration: none;
}

a.contact-info__text:hover {
  color: #2F5A1E;
}

/* Form Wrapper */
.contact-form-wrapper {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 20px 25px -5px rgba(0, 0, 0, 0.03);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Form Group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Labels */
.form-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #2A2A2A;
}

.form-label__optional {
  font-weight: 400;
  color: #9CA3AF;
}

/* Inputs */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: #2A2A2A;
  background: #FAFAF8;
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input::placeholder {
  color: #9CA3AF;
}

.form-input:hover {
  border-color: #D0D0D0;
}

.form-input:focus {
  outline: none;
  border-color: #2F5A1E;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(47, 90, 30, 0.08);
}

/* Textarea */
.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  margin-top: 0.5rem;
  position: relative;
}

.btn-submit__loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit.is-loading .btn-submit__text {
  display: none;
}

.btn-submit.is-loading .btn-submit__loading {
  display: flex;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Spinner */
.spinner {
  animation: spin 1s linear infinite;
}

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

/* Form Messages */
.form-message {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-message[hidden] {
  display: none;
}

.form-message svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.form-message--success {
  background: rgba(47, 90, 30, 0.08);
  color: #2F5A1E;
}

.form-message--error {
  background: rgba(220, 38, 38, 0.08);
  color: #DC2626;
}

/* Active nav link */
.header__nav-link--active {
  color: #2F5A1E;
}

.header__nav-link--active::after {
  width: 100%;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .contact-layout {
    gap: 3rem;
  }

  .contact-content {
    padding-right: 1rem;
  }

  .contact-form-wrapper {
    padding: 2rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .contact-section {
    padding: 3rem 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-content {
    padding-right: 0;
    text-align: center;
  }

  .contact-info {
    align-items: center;
  }

  .contact-title {
    font-size: 2rem;
  }

  .contact-subtitle {
    font-size: 1rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .contact-form-wrapper {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .form-input {
    padding: 0.75rem 0.875rem;
  }
}
