/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  line-height: 1.7;
  color: #f8dcbe;
  background: linear-gradient(135deg, #1a1f22 0%, #4e3b3f 50%, #1a1f22 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Contact Page - BEM Structure */

/* Block: contact-page */
.contact-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Element: contact-page__graphic (SVG section) */
.contact-page__graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  order: 1;
}

.contact-page__graphic-image {
  width: 100%;
  max-width: 28rem;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  opacity: 0.95;
}

/* Element: contact-page__form-wrapper (Form section wrapper) */
.contact-page__form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  order: 2;
}

.contact-page__form-container {
  width: 100%;
  max-width: 32rem;
}

.contact-page__title {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: #f8dcbe;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.contact-page__description {
  font-size: 1.125rem;
  color: #d8b4a6;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-weight: 300;
  opacity: 0.9;
}

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

/* Element: contact-form__field */
.contact-form__field {
  display: flex;
  flex-direction: column;
}

/* Element: contact-form__label */
.contact-form__label {
  font-weight: 500;
  margin-bottom: 0.625rem;
  color: #f8dcbe;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Element: contact-form__input */
.contact-form__input {
  padding: 0.875rem 1rem;
  border: 1.5px solid rgba(216, 180, 166, 0.2);
  border-radius: 0.375rem;
  font-size: 1rem;
  background-color: rgba(78, 59, 63, 0.3);
  color: #f8dcbe;
  transition: all 0.3s ease;
  font-family: inherit;
}

.contact-form__input::placeholder {
  color: rgba(216, 180, 166, 0.4);
}

.contact-form__input:focus {
  outline: none;
  border-color: #d8b4a6;
  background-color: rgba(78, 59, 63, 0.5);
  box-shadow: 0 0 0 3px rgba(216, 180, 166, 0.1);
}

/* Modifier: contact-form__input--textarea */
.contact-form__input--textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* Element: contact-form__submit */
.contact-form__submit {
  background: linear-gradient(135deg, #6d2d3d 0%, #4e3b3f 100%);
  color: #f8dcbe;
  padding: 1rem 2rem;
  border: 1.5px solid rgba(216, 180, 166, 0.3);
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.contact-form__submit:hover {
  background: linear-gradient(135deg, #884f56 0%, #6d2d3d 100%);
  border-color: #d8b4a6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.contact-form__submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Desktop styles - sticky SVG, scrollable form */
@media (min-width: 769px) {
  .contact-page {
    flex-direction: row;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .contact-page__graphic {
    width: 50%;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 3rem;
    order: 1;
  }
  
  .contact-page__form-wrapper {
    width: 50%;
    padding: 3rem;
    order: 2;
  }
  
  .contact-page__title {
    font-size: 3rem;
  }
}

/* Mobile styles - vertical layout with SVG first */
@media (max-width: 768px) {
  .contact-page {
    flex-direction: column;
  }
  
  .contact-page__graphic {
    order: 1;
    padding: 2rem 1rem;
  }
  
  .contact-page__form-wrapper {
    order: 2;
    padding: 1rem;
  }
  
  .contact-page__title {
    font-size: 2rem;
  }
}
