
/* CWIMIE CLUB GIFT RECEIPT — V4.1.1 UI FIX
   CSS ONLY. Does not alter V4.1 PHP/backend logic.
*/

* { box-sizing: border-box; }
html { width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: #ffad2e;
  color: #211916;
  font-family: Arial, Helvetica, sans-serif;
}

img { max-width: 100%; height: auto; }

.page-shell {
  width: 100%;
  min-height: 100vh;
  padding: 34px 20px 28px;
  overflow-x: hidden;
}

.hero {
  width: min(100%, 760px);
  margin: 0 auto 24px;
  text-align: center;
}

.brand-logo {
  display: block;
  width: 88px;
  max-height: 60px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.gift-icon {
  font-size: 54px;
  line-height: 1;
  margin: 0 auto 8px;
}

.eyebrow {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: .07em;
  margin-bottom: 8px;
}

.hero h1 {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(42px, 5.3vw, 70px);
  line-height: .9;
  letter-spacing: -.035em;
  font-weight: 950;
  overflow-wrap: normal;
  word-break: normal;
}

.hero p {
  max-width: 680px;
  margin: 18px auto 0;
  font-size: 16px;
  line-height: 1.45;
}

.receipt-card {
  display: block;
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 24px;
  background: #fff1ca;
  border: 3px solid #281b17;
  border-radius: 24px;
  box-shadow: 9px 10px 0 rgba(40, 27, 23, .13);
}

.receipt-card h2 {
  margin: 0 0 18px;
  font-size: 25px;
  line-height: 1.1;
}

.receipt-card hr {
  border: 0;
  border-top: 1px solid rgba(40,27,23,.18);
  margin: 22px 0;
}

.receipt-card label:not(.check-row) {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
}

.receipt-card label span,
.receipt-card label b {
  color: #ff3d7d;
}

.receipt-card label small {
  margin-left: 5px;
  font-size: 11px;
  font-weight: 500;
  opacity: .62;
}

.receipt-card input[type="text"],
.receipt-card input[type="tel"],
.receipt-card input[type="email"],
.receipt-card input[type="date"],
.receipt-card input:not([type]) {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin-top: 7px;
  padding: 0 14px;
  border: 2px solid #d2d0ce;
  border-radius: 12px;
  background: #fff;
  color: #211916;
  font: inherit;
  font-weight: 600;
  outline: none;
}

.receipt-card input:focus {
  border-color: #ff3d7d;
  box-shadow: 0 0 0 3px rgba(255,61,125,.12);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  width: 100%;
}

.two-col > * { min-width: 0; }

.field-help {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  opacity: .68;
}

.check-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  margin: 12px 0;
  padding: 13px 14px;
  background: #ffe5ee;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

.check-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: #ff3d7d;
}

.notice {
  width: 100%;
  margin: 15px 0;
  padding: 13px 14px;
  background: #fff9e9;
  border: 1px solid rgba(40,27,23,.22);
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.receipt-card button {
  display: block;
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  border: 2px solid #281b17;
  border-radius: 12px;
  background: #ff3d7d;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 4px 5px 0 #281b17;
}

.receipt-card button:hover { transform: translateY(-1px); }
.receipt-card button:active {
  transform: translate(3px, 4px);
  box-shadow: 1px 1px 0 #281b17;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

footer {
  width: min(100%, 680px);
  margin: 18px auto 0;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

/* ADMIN */
.admin-wrap {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: 32px 20px;
}

.admin-card {
  width: 100%;
  padding: 24px;
  background: #fff1ca;
  border: 3px solid #281b17;
  border-radius: 22px;
  box-shadow: 8px 9px 0 rgba(40,27,23,.13);
}

.admin-card h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
}

.admin-card form label {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 800;
}

.admin-card input[type="text"],
.admin-card input[type="password"],
.admin-card input[type="search"],
.admin-card input:not([type]) {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 7px;
  padding: 0 13px;
  border: 2px solid #d2d0ce;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

.admin-card button,
.admin-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 2px solid #281b17;
  border-radius: 9px;
  background: #ff3d7d;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.admin-table-wrap {
  width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid rgba(40,27,23,.18);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th,
.admin-table td {
  padding: 10px 11px;
  border-bottom: 1px solid #eee;
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  position: sticky;
  top: 0;
  background: #fff1ca;
  font-weight: 900;
}

@media (max-width: 720px) {
  .page-shell { padding: 24px 14px 24px; }
  .brand-logo { width: 76px; margin-bottom: 16px; }
  .gift-icon { font-size: 46px; }
  .eyebrow { font-size: 12px; }
  .hero { margin-bottom: 20px; }
  .hero h1 {
    font-size: clamp(38px, 12.5vw, 54px);
    line-height: .92;
  }
  .hero p {
    margin-top: 14px;
    font-size: 14px;
  }
  .receipt-card {
    padding: 20px 16px;
    border-width: 2px;
    border-radius: 19px;
    box-shadow: 5px 6px 0 rgba(40,27,23,.13);
  }
  .receipt-card h2 { font-size: 22px; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .receipt-card input[type="text"],
  .receipt-card input[type="tel"],
  .receipt-card input[type="email"],
  .receipt-card input[type="date"],
  .receipt-card input:not([type]) {
    height: 47px;
    font-size: 16px; /* avoids iOS zoom */
  }
  .check-row { padding: 12px; }
  .admin-wrap { padding: 18px 12px; }
  .admin-card { padding: 18px 14px; border-width: 2px; }
  .admin-actions { flex-direction: column; }
  .admin-actions a { width: 100%; }
}

@media (max-width: 380px) {
  .page-shell { padding-left: 10px; padding-right: 10px; }
  .hero h1 { font-size: 36px; }
  .receipt-card { padding: 17px 13px; }
}
/* CWIMIE CLUB V4.1.4 — SUCCESS PAGE UI FIX
   Additive stylesheet. Customer form/admin/backend business logic unchanged.
*/

.success-body {
    margin: 0;
    min-width: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: #ffad2e;
    color: #211916;
    font-family: Arial, Helvetica, sans-serif;
}

.success-shell {
    width: 100%;
    min-height: 100vh;
    padding: 30px 20px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.success-logo {
    display: block;
    width: 88px;
    max-width: 24vw;
    height: auto;
    max-height: 62px;
    object-fit: contain;
    margin: 0 auto 28px;
}

.success-hero {
    width: min(100%, 760px);
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    font-size: 54px;
    line-height: 1;
    margin-bottom: 8px;
}

.success-eyebrow {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .08em;
}

.success-hero h1 {
    margin: 0;
    font-size: clamp(44px, 5.3vw, 68px);
    line-height: .96;
    letter-spacing: -.035em;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.success-hero p {
    max-width: 650px;
    margin: 15px auto 0;
    font-size: 16px;
    line-height: 1.45;
}

.success-receipt {
    width: min(100%, 680px);
    margin: 26px auto 0;
    padding: 8px 22px;
    background: #fff1ca;
    border: 3px solid #281b17;
    border-radius: 24px;
    box-shadow: 9px 10px 0 rgba(40, 27, 23, .13);
    box-sizing: border-box;
}

.receipt-row {
    padding: 17px 0;
    border-bottom: 1px dashed rgba(40, 27, 23, .22);
}

.receipt-row-last {
    border-bottom: 0;
}

.receipt-label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .08em;
    opacity: .62;
}

.receipt-row strong {
    display: block;
    font-size: 17px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.success-done {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 300px);
    min-height: 56px;
    margin: 28px auto 0;
    padding: 0 18px;
    border: 3px solid #281b17;
    border-radius: 14px;
    background: #ff3d7d;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 6px 7px 0 #281b17;
    box-sizing: border-box;
}

.success-done:hover {
    transform: translateY(-1px);
}

.success-done:active {
    transform: translate(4px, 5px);
    box-shadow: 2px 2px 0 #281b17;
}

.success-foot {
    margin: 22px auto 0;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 720px) {
    .success-shell {
        padding: 24px 14px;
    }

    .success-logo {
        width: 76px;
        margin-bottom: 24px;
    }

    .success-icon {
        font-size: 47px;
    }

    .success-eyebrow {
        font-size: 12px;
    }

    .success-hero h1 {
        font-size: clamp(38px, 12vw, 52px);
    }

    .success-hero p {
        font-size: 14px;
    }

    .success-receipt {
        margin-top: 22px;
        padding: 5px 17px;
        border-width: 2px;
        border-radius: 19px;
        box-shadow: 5px 6px 0 rgba(40, 27, 23, .13);
    }

    .receipt-row {
        padding: 15px 0;
    }

    .receipt-row strong {
        font-size: 16px;
    }

    .success-done {
        min-height: 52px;
        margin-top: 24px;
        border-width: 2px;
        box-shadow: 4px 5px 0 #281b17;
    }
}

@media (max-width: 380px) {
    .success-shell {
        padding-left: 10px;
        padding-right: 10px;
    }

    .success-hero h1 {
        font-size: 36px;
    }
}