/* MOBILE FIXES STYLESHEET 
   Load this after the main stylesheet to override desktop styles */

/* Mobile-specific styles that take precedence */
@media only screen and (max-width: 480px) {
  /* Global mobile styles */
  body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 1rem !important;
    overflow-x: hidden !important;
  }

  h1 {
    font-size: 1.8rem !important;
    text-align: center !important;
  }

  .question-holder {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1rem !important;
  }

  .back-arrow {
    left: 0rem !important;
  }
  
  /* Input field fixes for mobile */
  input.goal-option {
    height: 50px !important;
    line-height: 50px !important;
    padding: 0 1rem !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
    width: 100% !important;
  }

  textarea.goal-option {
    padding: 1rem !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
    width: 100% !important;
  }
  
  /* Weight input specific styling (step 23) for mobile */
  div[id="23"] input.goal-option {
    width: 120px !important;
    text-align: center !important;
  }
  
  /* Contact form specific styling (step 39) for mobile */
  div[id="39"] input.goal-option {
    max-width: 100% !important;
    margin-bottom: 1rem !important;
  }
  
  /* SPECIES SELECTION - Screen 5 - VERTICAL STACKING */
  div[id="5"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  div[id="5"] .goal-container {
    /* Force vertical layout */
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 176px !important; /* Sized to fit the 172px button + margins */
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
    overflow-x: visible !important;
  }

  div[id="5"] .goal-option {
    /* Make buttons match desktop but vertical orientation */
    flex: 0 0 auto !important;
    width: 172px !important;
    min-width: 172px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    padding-bottom: 0.6rem !important;
    min-height: 190px !important;
    margin: 0 auto 10px auto !important;
    border-radius: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    border: 2px solid #000000 !important;
    box-sizing: border-box !important;
  }

  div[id="5"] .goal-option img {
    /* Match desktop image styling exactly */
    width: 168px !important;
    height: 168px !important;
    margin-bottom: 0.2rem !important;
    object-fit: contain !important;
  }

  div[id="5"] .goal-option p {
    /* Match desktop text styling exactly */
    margin-top: 0.1rem !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    text-align: center !important;
  }

  /* CAT BODY CONDITION - Screen 21 - VERTICAL STACKING */
  div[id="21"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  div[id="21"] .goal-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-gap: 15px !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  div[id="21"] .goal-option {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto 10px auto !important;
    padding: 5px !important;
  }

  div[id="21"] .goal-option img {
    width: 100% !important;
    height: auto !important;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
  }

  div[id="21"] .goal-option p {
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* DOG BODY CONDITION - Screen 22 - VERTICAL STACKING */
  div[id="22"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  div[id="22"] .goal-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-gap: 15px !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  div[id="22"] .goal-option {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto 10px auto !important;
    padding: 5px !important;
  }

  div[id="22"] .goal-option img {
    width: 100% !important;
    height: auto !important;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
  }

  div[id="22"] .goal-option p {
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
} 