@charset "utf-8";

/* ----------------- GLOBAL RESET / BASE ----------------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
}

html {
  -moz-appearance: textfield;
}

body,
html {
  width: 100%;
  background: #F5F5F5;
  font-size: 16px;
  color: #444;
}

img {
  display: block;
}

a {
  text-decoration: none;
  color: blue;
}

/* ----------------- HEADER ----------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #222;
  height: 60px;
  z-index: 1000;
  padding: 0 1rem;

  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
}

.logo img {
  width: 100px;
}

.header-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.header-title p {
  color: #EEE;
  font-size: 1rem;
  font-weight: 600;
}

/* Hide header title on mobile (NEW) */
.header-title {
  display: none;
}

/* Push content down below fixed header */
main {
  padding-top: 70px;
}

/* ----------------- HERO PANEL (NEW) ----------------- */

.hero {
  max-width: 600px;
  margin: 1rem auto 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.hero-img {
  width: 90%;
  max-width: 550px;       /* match uploader width on desktop */
  margin: 10px auto 0 auto;
  border-radius: 15px;
  border: 1px solid #000;
  overflow: hidden;
}

.hero-copy {
  margin-top: 0.9rem;
}

.hero h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #222;
  line-height: 1.2;
}

.hero-sub {
  margin-top: 0.6rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: #444;
}

.hero-bullets {
  list-style: none;
  margin: 0.75rem auto 0 auto;
  padding: 0;
  max-width: 520px;
  text-align: left;
}

.hero-bullets li {
  font-size: 0.98rem;
  font-weight: 600;
  color: #444;
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.hero-bullets li:before {
  content: "•";
  position: absolute;
  left: 0.2rem;
  top: 0.2rem;
  color: #444;
  font-weight: 900;
}

/* ----------------- MOBILE-ONLY PAGE TITLE (NEW) ----------------- */

.mobile-page-title {
  max-width: 600px;
  margin: 1rem auto 0 auto;
  padding: 0 1rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #222;
}

/* Hide on desktop (we’ll flip this in the desktop media query) */
.mobile-page-title {
  display: block;
}

/* ----------------- UPLOAD BLOCK ----------------- */

.pet-image-section {
  max-width: 600px;
  margin: 1rem auto;            /* slightly tighter top spacing */
  text-align: center;
  padding: 0 1rem;
}

.image-wrapper {
  display: inline-block;
  max-width: 600px;
  width: 90%;
  border: 1px solid #000;
  border-radius: 15px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: auto;
}

.upload-error {
  margin-top: 0.5rem;
  min-height: 1.2em;
  color: #c00;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Filename display */
.upload-filename {
  margin-top: 0.25rem;
  min-height: 1.2em;
  font-size: 0.9rem;
  color: #666;
}

/* Move the Choose Photo / Upload button closer to image (NEW) */
.upload-form {
  margin-top: 0.4rem;           /* was larger; tighter now */
  display: flex;
  flex-direction: column;
  gap: 0.55rem;                 /* reduce vertical gaps */
  align-items: center;
}

.file-label {
  display: inline-block;
  cursor: pointer;
}

/* ----------------- BUTTONS ----------------- */

.btn-primary,
.upload-form button,
.file-label .btn-primary {
  background: #444;
  color: #DDD;
  border: none;
  padding: 0.6rem 1.75rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary:hover,
.upload-form button:hover,
.file-label .btn-primary:hover {
  background: #333;
  color: #FFF;
}

/* ----------------- FORM LAYOUT ----------------- */

.order-form-section {
  max-width: 600px;
  margin: 1rem auto 3rem auto;
  padding: 0 1rem 2rem 1rem;
}

.form-block {
  margin-top: 1.5rem;
}

.section-heading {
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #222;
}

.subheading {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #444;
}

.pay-help-text {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #444;
  min-height: 1.2em;
}

.field-group {
  margin-top: 0.75rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.text-input {
  border: 1px solid #999;
  background: white;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  width: 100%;
  font-size: 1rem;
}

/* ----------------- CHOICE BUTTONS ----------------- */

.choice-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.choice-btn {
  border: 1px solid #999;
  border-radius: 10px;
  background: #fff;
  padding: 0.6rem 0.75rem;
  min-width: 120px;
  cursor: pointer;
  text-align: center;
}

.choice-btn.selected {
  background: #fff9cc;
  border-color: #ccb200;
}

.choice-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.pay-btn {
  font-size: 1.15rem;
  font-weight: 800;
}

.choice-price {
  font-size: 1rem;
  font-weight: 700;
}

.choice-detail {
  font-size: 0.9rem;
  font-weight: 600;
}

.style-row {
  display: flex !important;
  justify-content: center !important;
}

/* 5 columns ALWAYS (kept as-is from your working file) */
.size-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.25rem;
  width: 100%;
}

.size-row .choice-btn {
  min-width: 0;
  padding: 0.45rem 0.25rem;
}

/* ----------------- OPTIONAL TOP ----------------- */

.top-size-block.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.checkbox-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.checkbox-row input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  transform: scale(2);
  transform-origin: center;
  margin-right: 0.75rem;
}

/* ----------------- SUMMARY BOXES ----------------- */

.summary-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0.25rem;
}

.summary-box {
  border: 1px solid #999;
  border-radius: 10px;
  padding: 0.5rem 0.25rem;
  flex: 1 1 25%;
  min-width: 0;
  text-align: center;
}

.summary-label {
  font-size: 0.9rem;
  font-weight: 700;
}

.summary-value {
  font-size: 1rem;
  font-weight: 800;
}

/* ----------------- FOOTER ----------------- */

.footer {
  background: #222;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.footer,
.footer * {
  color: #BBB !important;
}

/* ----------------- RESPONSIVE TWEAKS ----------------- */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.25rem;
  }

  .hero-sub {
    font-size: 1rem;
  }
}

@media (min-width: 820px) {
  /* show header title on desktop; hide mobile page title */
  .header-title {
    display: block;
  }
  .mobile-page-title {
    display: none;
  }

  .header {
    height: 70px;
  }
  main {
    padding-top: 80px;
  }

  .hero h1 {
    font-size: 1.25rem;
  }
}
