/* Journey Form Page Component Styles
 * Used for both index.html and marketing-embed.html
 * Contains all styling for the shared journey form component
 */

/* Base container styles */
.journey-layout-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0;
}

/* Standard page layout (non-iframe) */
.journey-layout-container:not(.in-iframe) {
  min-height: 80vh;
  padding-top: 2rem;
  padding-bottom: 2rem;
  align-items: center;
}

/* Iframe layout - desktop */
.journey-layout-container.in-iframe {
  min-height: 600px;
  padding: 2rem 0;
  align-items: center;
}

/* Iframe layout - mobile */
@media (max-width: 767px) {
  .journey-layout-container.in-iframe {
    height: auto;
    min-height: unset;
    padding-top: 1rem;
    padding-bottom: 1rem;
    align-items: flex-start;
  }
}

/* Content row - holds the two columns */
.journey-content-row {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  gap: 1.5rem;
}

/* Desktop layout */
@media (min-width: 768px) {
  .journey-content-row {
    flex-direction: row;
    align-items: center; /* Changed from flex-start to center */
    gap: 2rem;
  }
}

/* Mobile layout in iframe - more compact */
@media (max-width: 767px) {
  .in-iframe .journey-content-row {
    padding: 0.5rem;
    gap: 1rem;
  }
}

/* Column layout (both description and form) */
.journey-column {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Desktop column width */
@media (min-width: 768px) {
  .journey-column {
    width: 50%;
    justify-content: center; /* Changed from flex-start to center */
  }
}

/* Content boxes (navy background containers) */
.journey-content-box {
  background-color: var(--colors-brand-navy);
  width: 100%;
  border-radius: 40px;
}

/* Padding is responsive based on viewport */
@media (min-width: 768px) {
  .journey-content-box {
    padding: 2.5rem;
  }
}

@media (max-width: 767px) {
  .journey-content-box {
    padding: 1.5rem;
    max-width: 450px;
  }
  
  /* More compact in iframe mobile */
  .in-iframe .journey-content-box {
    padding: 2rem;
  }
}

/* Form container needs consistent ID for scripts */
#formContainer {
  margin: 0;
}

/* Mobile iframe compact spacing */
@media (max-width: 767px) {
  .in-iframe #formContainer {
    margin-top: 0.5rem;
  }
}

/* Form elements will use Tailwind classes directly in the HTML */