@charset "utf-8";

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

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

html {
  -moz-appearance: textfield;
}

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

img {
  display: block;
}

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




/* ==========================================
   Pet Portraits – Order Form Hero Panel
   Mobile-First | 600px Form Width
   ========================================== */

.pp-hero {
    max-width: 600px;
    margin: 0 auto 18px;
    padding: 0;
}

.pp-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.pp-hero-image {
    width: 100%;
}

.pp-hero-image img {
    width: 90%;              /* Mobile: ~90% width */
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 10px auto 0 auto;
}

.pp-hero-text {
    width: 100%;
    max-width: 600px;
    padding: 0 10px;         /* Align with form field padding */
    box-sizing: border-box;
}

.pp-hero-text h1 {
    margin: 0;
    font-size: 1.25rem;      /* Matches other headings */
    line-height: 1.25;
}

.pp-hero-subhead {
    margin: 6px 0 0;
    font-size: 1rem;
    line-height: 1.4;
}

.pp-hero-points {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.pp-hero-points li {
    margin: 0 0 6px;
    font-size: 0.95rem;
}

/* Desktop enhancement */
@media (min-width: 768px) {
    .pp-hero-image img {
        width: 100%;
        max-width: 550px;    /* Match uploader & form width */
    }
}





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

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #222;
  height: 60px;
  z-index: 1000;
  color: #BBB;
  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;
}

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

/* ----------------- MOBILE-ONLY PAGE TITLE ----------------- */

.mobile-only-page-title {
  display: none;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
  margin-top: 0.75rem;
}

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

.pet-image-section {
  max-width: 600px;
  margin: 1.5rem auto;
  text-align: center;
}

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

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

.upload-error {
  margin-top: 0.35rem;
  color: #c00;
  font-size: 0.9rem;
}

.upload-error:empty {
  display: none;
  margin-top: 0;
}

.upload-filename {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: #666;
}

.upload-filename:empty {
  display: none;
  margin-top: 0;
}

.upload-form {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

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

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

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

.btn-primary:hover,
.upload-form button: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: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.subheading {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.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;
}

.shipping-only {
  display: none;
}

.text-input {
  border: 1px solid #999;
  background: white;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  width: 100%;
  font-size: 1rem;
  line-height: 1.2;
}

select.text-input {
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
}

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

.choice-row {
  display: flex;
  justify-content: center;
  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-btn.disabled {
  background: #eee;
  color: #aaa;
  border-color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.7;
}

.choice-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.choice-price-line {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

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

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

/* ----------------- GARMENT STYLE ROW ----------------- */

.style-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.style-row .choice-btn {
  min-width: 0;
  width: 100%;
}

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

.size-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.25rem;
  width: 100%;
}

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

/* ----------------- OPTIONAL ITEMS ----------------- */

.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 ----------------- */

.summary-row {
  display: flex;
  gap: 0.25rem;
}

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

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

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

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

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

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

/* ----------------- PAY METHOD ----------------- */

.pay-btn {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* ----------------- CUSTOM COLOR DROPDOWN ----------------- */

.color-dropdown {
  position: relative;
  width: 100%;
}

.color-dd-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;

  border: 1px solid #999;
  border-radius: 10px;
  background: #fff;

  padding: 0.85rem 0.9rem;

  cursor: pointer;

  font-size: 1.12rem;
  line-height: 1.2;

  -webkit-text-size-adjust: 100%;
}

.color-dropdown.invalid .color-dd-trigger {
  border-color: #c00;
  box-shadow: 0 0 0 3px rgba(204,0,0,0.18);
}

.color-dd-trigger:focus {
  outline: none;
  border-color: #666;
}

.color-dd-swatch {
  width: 68px;    /* bigger/wider */
  height: 28px;
  border: 1px solid #999;
  border-radius: 8px;
  background: #fff;
  flex: 0 0 auto;
}

.color-dd-label {
  flex: 1 1 auto;
  text-align: left;
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.2;
  color: #111; /* always readable */
}

.color-dd-chev {
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 1.15rem;
}

.color-dd-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 2000;

  border: 1px solid #999;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;

  max-height: 360px;
  overflow-y: auto;

  box-shadow: 0 10px 26px rgba(0,0,0,0.14);
}

.color-option {
  width: 100%;
  border: none;
  border-bottom: 1px solid #e5e5e5;

  padding: 0.85rem 0.9rem;

  display: flex;
  align-items: center;
  gap: 0.75rem;

  cursor: pointer;
  text-align: left;

  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.15;

  background: #fff;
  color: #000 !important;

  -webkit-text-size-adjust: 100%;
}

/* Ensure child spans remain readable */
.color-dd-menu .color-option,
.color-dd-menu .color-option * {
  color: #000 !important;
}

.color-option:last-child {
  border-bottom: none;
}

.color-option-swatch {
  width: 68px;     /* bigger/wider swatch */
  height: 28px;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 8px;
  flex: 0 0 auto;
}

.color-option-name {
  font-weight: 800;
}

.color-option.placeholder {
  background: #fff;
  color: #444 !important;
}
.color-option.placeholder * {
  color: #444 !important;
}

.color-option:hover,
.color-option:focus {
  outline: none;
  background: #f5f5f5; /* subtle hover, still neutral */
}

.color-option.active {
  outline: 3px solid rgba(0,0,0,0.16);
  outline-offset: -3px;
}

/* Inline validation message */
.inline-error {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #c00;
  text-align: center;
}

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

@media (max-width: 600px) {
  .header-title {
    display: none;
  }

  .mobile-only-page-title {
    display: block;
  }

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

  .choice-title {
    font-size: 0.95rem;
  }

  .choice-detail {
    font-size: 0.8rem;
  }

  .text-input {
    font-size: 1.05rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }
}

@media (min-width: 820px) {
  .header {
    height: 70px;
  }
  main {
    padding-top: 80px;
  }
}
