/* --- HAPPY PUPPY MASTER APPLY CSS --- */
/* Container for the two-column layout */
.apply-main-grid {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on small screens */
    gap: 25px;       /* Space between columns */
    align-items: flex-start;
}

/* Individual Columns */
.apply-column {
    flex: 1;
    min-width: 350px; /* If the screen is smaller than 350px, it stacks */
}

/* Fieldset Styling */
fieldset {
    border: 2px solid #f0c605 !important;
    border-radius: 15px !important;
    margin-bottom: 25px !important;
    padding: 20px !important;
    background-color: #fff;
}

legend {
    font-weight: bold;
    color: #940012;
    padding: 0 10px;
    font-family: "Merriweather", serif;
    font-size: 1.1rem;
}

/* Row and Group styling for inputs */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
#apply-section {
  padding: 100px 15%;
  background-color: #fdfdfd;
}

.section-data-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05);
}

/* THE FABULOUS FRAMES */
fieldset {
  border: 2px solid #f0c605 !important; /* Gold Standard Border */
  padding: 35px !important;
  border-radius: 20px !important;
  margin-bottom: 40px !important;
  background-color: #ffffff;
}

/* HOSTING SECTION HIGHLIGHT */
fieldset[style*="background-color: #fffcf0"],
fieldset:nth-of-type(6) {
  background-color: #fffcf0 !important; /* Creamy Hosting background */
  border-color: #940012 !important; /* Red border for Hosting */
}

legend {
  color: #940012;
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0 15px;
  text-transform: capitalize;
}

/* INPUTS & TEXTAREAS */
label {
  display: block;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  margin-top: 20px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
input[type="file"] {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background-color: #fafafa;
  transition: all 0.3s ease;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #f0c605;
  box-shadow: 0 0 0 4px rgba(241, 196, 15, 0.1);
  background-color: #ffffff;
}

/* CHECKBOX GRIDS (TWO COLUMNS) */
.global-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 25px;
  margin-top: 15px;
}

.global-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.global-checkbox-item label {
  font-weight: 400;
  color: #444;
  font-size: 15px;
  margin: 0;
  cursor: pointer;
}

.global-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #940012;
}

/* FORM BUTTON */
.form-button {
  background-color: #940012;
  color: white;
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 4px solid #f0c605;
  margin-top: 30px;
}

.form-button:hover {
  background-color: #7a000f;
  transform: translateY(-2px);
}
/* --- FIXING THE CHECKBOX ALIGNMENT --- */
.global-checkbox-grid label {
  display: flex !important;
  align-items: center !important;
  flex-direction: row-reverse !important; /* Puts box on the left, text on right */
  justify-content: flex-end !important;
  gap: 12px;
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}

.global-checkbox-grid input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
/* --- FIXING STUBBORN VERIFICATION BOXES --- */
#sitterApplicationForm fieldset:last-of-type label {
  display: flex !important;
  flex-direction: row !important; /* Forces box and text onto one line */
  align-items: center !important;
  gap: 15px;
  margin-top: 10px;
  font-weight: 600;
  cursor: pointer;
}

#sitterApplicationForm fieldset:last-of-type input[type="checkbox"] {
  margin: 0;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
/* --- THE GOLD STANDARD MAP & PINNING --- */

.map-dead-backup {
  background: #fffcf0; /* Creamy background to match hosting */
  padding: 25px;
  border-radius: 20px;
  border: 2px dashed #f0c605;
  margin-top: 15px;
  transition: all 0.3s ease;
}

#masterMap {
  height: 350px !important;
  width: 100% !important;
  display: block !important;
  border: 6px solid #f0c605 !important;
  border-radius: 25px !important;
  background-color: #eee; /* This helps you see it load */
}

/* THE PIN BUTTON */
#findOnMapBtn {
  background-color: #940012;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-bottom: 3px solid #f0c605;
  transition: all 0.2s ease;
}

#findOnMapBtn:hover {
  background-color: #7a000f;
  transform: scale(1.02);
}

#findOnMapBtn:active {
  transform: translateY(2px);
  border-bottom: 1px solid #f0c605;
}

/* MAP STUBBORN TEXT */
.map-dead-backup .form-help-text {
  color: #940012;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  /* 1. Fixes the selector mismatch and removes the thick outer margins */
  .section-form,
  #apply-section {
    padding: 15px 8px !important;
  }
  
  /* 2. Shrinks the white container wrapper so it fills the screen width */
  .section-data-wrapper {
    padding: 15px !important;
    border-radius: 15px !important;
    box-shadow: none !important;
  }

  /* 3. Reduces the thick border padding inside the gold boxes */
  fieldset {
    padding: 18px 12px !important;
    margin-bottom: 20px !important;
    border-radius: 12px !important;
  }

  /* 4. Forces First Name, Nickname, and other side-by-side fields to stack neatly on top of each other */
  .form-row {
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* 5. Ensures checkboxes display in a clean single column */
  .global-checkbox-grid {
    grid-template-columns: 1fr !important;
  }

  /* 6. Fixes map height and pin button layout on small screens */
  #masterMap {
    height: 280px !important;
  }

  .hp-map-container button,
  div[style*="display: flex; gap: 10px; margin-top: 10px"] {
    flex-direction: column;
    width: 100%;
  }

  .form-button-small {
    width: 100%;
    text-align: center;
  }
}

