/* =====================================================================
   COMPLETE CSS for the coupon page  (Webform > Settings > Assets > CSS)
   Use this ONE file. Remove webform-coupon.css, coupon-result.css,
   coupon-messages.css and coupon-webform.css.

   Sections:
     1. Basics and category colours
     2. Category cards
     3. Category 3 address form
     4. Message card (already claimed, not registered, errors, thank you, loading)
     5. Coupon card with Copy
     6. Short yellow message line
     7. Small screens
   ===================================================================== */


/* ---------- 1. Basics and category colours ---------- */

/* The JavaScript uses this to show / hide blocks */
.coupon-hidden { display: none !important; }
.coupon_code_campaign_form p.not_valid {
    font-size: 1rem;
    color: red;
}
.bigsize sup {
    top: -1.2em;
    font-size: 38%;
}
.coupon-app {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 0 24px;
}

span.bigsize {
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    margin: 5% 0% 0% 0;
    display: block;
    font-size: 3.5rem;
    color: #000;
}

/* Change the category colours here */
.coupon-app .coupon-cat-1 { --c: #3f7d2c; }
.coupon-app .coupon-cat-2 { --c: #a07428; }
.coupon-app .coupon-cat-3 { --c: #3d1f5c; }

/* Line above the cards: "Select a category to get your coupon" */
.coupon-block-cards > p:first-child {
  margin: 0 0 20px;
  font-size: 18px;
  text-align: center;
}
.independent_retailer{
  color: #000;
    font-weight: 900;
    font-size: 2.2rem;
    margin: 0;
}

/* ---------- 2. Category cards ---------- */

.coupon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.coupon-block h1{
text-align: center;
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 5%;
}
.coupon-card {
    flex: 1 1 301px;
    max-width: 306px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 28px 24px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-top: 8px solid var(--c);
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .10);
}

.coupon-card h3 {
  margin: 14px 0 8px;
  font-size: 22px;
  color: var(--c);
}

.coupon-card p {
  flex: 1;                       /* pushes the button to the bottom of every card */
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

/* Shield with the category number: 3D look with shadow */
.coupon-shield {
  position: relative;
  isolation: isolate;               /* keeps the two layers below inside this element */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 93px;
  height: 70px;
  padding-bottom: 6px;
  box-sizing: border-box;
  color: #fff;
  font: 700 32px Georgia, serif;
  text-shadow: 0 2px 2px rgba(0, 0, 0, .45), 0 -1px 0 rgba(255, 255, 255, .25);
  /* drop-shadow follows the shield shape; box-shadow would be cut off by clip-path */
  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .35)) drop-shadow(0 1px 1px rgba(0, 0, 0, .3));
  transition: transform .2s, filter .2s;
}

.coupon-shield::before,
.coupon-shield::after {
  content: "";
  position: absolute;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
}

/* Outer rim: light on the top-left, dark on the bottom-right */
.coupon-shield::before {
  z-index: -2;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .35)), var(--c);
}

/* Inner face, lit from the opposite side so the rim looks raised */
.coupon-shield::after {
  z-index: -1;
  top: 5px;
  right: 5px;
  bottom: 7px;
  left: 5px;
  background: linear-gradient(315deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, .25)), var(--c);
}

/* Shield lifts a little when the card is hovered */
.coupon-card:hover .coupon-shield {
  transform: translateY(-3px);
  filter: drop-shadow(0 10px 7px rgba(0, 0, 0, .3)) drop-shadow(0 1px 1px rgba(0, 0, 0, .3));
}
.coupon_code_campaign_form p{
font-size: 1.4rem;
}
/* "Get coupon" / "Select Category 3": slanted (parallelogram) button.
   The slanted outline is the ::before layer, so the text itself stays straight. */
a.coupon-btn, a.coupon-submit {
    --btn-line: #4a7a35;
    --btn-text: #fff;
    position: relative;
    isolation: isolate;
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    /* min-width: 190px; */
    padding: 12px 20px;
    background: transparent;
    /* border: 0; */
    color: var(--btn-text);
    font: 400 14px / 1.2 "Roboto Slab", Georgia, serif;
    letter-spacing: .02em;
    /* text-align: center; */
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s;
}

a.coupon-btn::before, a.coupon-submit::before {
content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    box-sizing: border-box;
    background: #fff;
    /* border: 1px solid var(--btn-line); */
    /* transform: skewX(-30deg); */
    transition: background .2s, box-shadow .2s;
    background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .35)), var(--c);
    box-shadow: 0 6px 10px rgba(0, 0, 0, .45), 0 -1px 0 rgba(255, 255, 255, .25);
    border-radius: 25px;
}

a.coupon-btn:hover,
a.coupon-btn:focus,
a.coupon-submit:hover,
a.coupon-submit:focus {
  color: #fff;
}

a.coupon-btn:hover::before,
a.coupon-btn:focus::before,
a.coupon-submit:hover::before,
a.coupon-submit:focus::before {
  background: var(--btn-line);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .2);
}

a.coupon-btn:focus-visible,
a.coupon-submit:focus-visible {
  outline: none;
}

a.coupon-btn:focus-visible::before,
a.coupon-submit:focus-visible::before {
  outline: 3px solid rgba(74, 122, 53, .35);
  outline-offset: 3px;
}

/* Category with no coupons left (the API said false) */
a.coupon-btn.is-disabled {
  opacity: .4;
  pointer-events: none;
  cursor: not-allowed;
}

/* ---------- 3. Category 3 address form ---------- */

.coupon-cat3 {
  --c: #3d1f5c;
  max-width: 520px;
  margin: 0 auto;
  padding: 26px 24px 22px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-top: 8px solid var(--c);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .10);
}

.coupon-cat3 > p:first-child,
.coupon-cat3 .webform-element-markup > p:first-child {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--c);
}

.coupon-cat3 .form-item {
  margin: 0 0 16px;
}

.coupon-cat3 label {
    display: block;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 1.4rem;
}

/* red star on required fields */
.coupon-cat3 label.form-required::after,
.coupon-cat3 .js-form-required.form-required::after {
  content: " *";
  color: #b3261e;
}

.coupon-cat3 input[type="text"],
.coupon-cat3 textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #999;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

.coupon-cat3 textarea {
  resize: vertical;
  min-height: 100px;
}

.coupon-cat3 input[type="text"]:focus,
.coupon-cat3 textarea:focus {
  outline: 3px solid rgba(61, 31, 92, .25);
  border-color: var(--c);
}

/* Submit button of the Webform */
.coupon-cat3 .form-actions {
  margin: 4px 0 0;
}

.coupon-cat3 .form-actions input[type="submit"],
.coupon-cat3 .webform-button--submit {
  padding: 11px 32px;
  background: var(--c);
  color: #fff;
  border: 2px solid var(--c);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.coupon-cat3 .form-actions input[type="submit"]:hover,
.coupon-cat3 .form-actions input[type="submit"]:focus,
.coupon-cat3 .webform-button--submit:hover,
.coupon-cat3 .webform-button--submit:focus {
  background: #fff;
  color: var(--c);
}

.coupon-cat3 .form-actions input[type="submit"]:disabled {
  opacity: .5;
  cursor: wait;
}

a.coupon-back {
  display: inline-block;
  margin-top: 12px;
  color: var(--c);
  font-weight: 700;
  text-decoration: underline;
}


/* ---------- 4. Message card ---------- */

.coupon-notice {
  --n: #2f6fa8;
  --n-bg: #eef5fb;
  position: relative;
  max-width: 460px;
  margin: 40px auto 24px;
  padding: 46px 28px 26px;
  background: var(--n-bg);
  border: 1px solid var(--n);
  border-top: 8px solid var(--n);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .10);
}

.coupon-notice-info    { --n: #2f6fa8; --n-bg: #eef5fb; }   /* already claimed */
.coupon-notice-error   { --n: #b3261e; --n-bg: #fdf0ef; }   /* not registered, invalid link, errors */
.coupon-notice-success { --n: #2e7d32; --n-bg: #eef7ee; }   /* category 3 thank you */
.coupon-notice-loading { --n: #777;    --n-bg: #f7f7f7; }   /* loading */

/* Round icon on the top edge */
.coupon-notice-icon {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--n);
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}

.coupon-notice-icon::before {
  content: "i";
  color: #fff;
  font: 700 30px/1 Georgia, serif;
}

.coupon-notice-error .coupon-notice-icon::before   { content: "\2715"; font-family: Arial, sans-serif; }
.coupon-notice-success .coupon-notice-icon::before { content: "\2713"; font-family: Arial, sans-serif; }

/* Spinner for "Loading..." */
.coupon-notice-loading .coupon-notice-icon::before {
  content: "";
  width: 26px;
  height: 26px;
  border: 4px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: coupon-spin .8s linear infinite;
}

@keyframes coupon-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .coupon-notice-loading .coupon-notice-icon::before { animation-duration: 3s; }
}

.coupon-notice-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  color: var(--n);
}
.coupon-notice-title:empty { display: none; }

.coupon-notice-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.coupon-notice-loading .coupon-notice-text {
  font-size: 17px;
  color: #555;
}


/* ---------- 5. Coupon card with Copy ---------- */

.coupon-result {
  --c: #3f7d2c;
  position: relative;
  max-width: 460px;
  margin: 40px auto 24px;
  padding: 52px 28px 28px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-top: 8px solid var(--c);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

.coupon-result-badge {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c);
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
  color: #fff;
  font: 700 30px/1 Arial, sans-serif;
}

.coupon-result-title {
  margin: 0 0 14px;
  font-size: 15px;
  letter-spacing: .12em;
  color: #666;
}

.coupon-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 14px 20px;
  background: #faf8f3;
  border: 2px dashed var(--c);
  border-radius: 10px;
}

.coupon-result .coupon-code {
  flex: 1;
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c);
  text-align: left;
  word-break: break-all;
  user-select: all;              /* one click selects the whole code */
}

a.coupon-copy {
  flex: none;
  display: inline-block;
  padding: 10px 22px;
  background: var(--c);
  color: #fff;
  border: 2px solid var(--c);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}

a.coupon-copy:hover,
a.coupon-copy:focus {
  background: #fff;
  color: var(--c);
}


/* ---------- 6. Short yellow message line ---------- */
/* Under the cards ("Coupon not available...") and under the address form */

.coupon-flash {
  max-width: 560px;
  margin: 16px auto 0;
  padding: 12px 16px 12px 18px;
  background: #fff8e6;
  border: 1px solid #f0d58a;
  border-left: 6px solid #e0a100;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.45;
  color: #5a4300;
}

.coupon-flash:empty { display: none; }

.form_body_cate3{
text-align: center;
}
.form_body_cate3 h1{
text-align: center;
margin: 0;
font-size: 2.5rem;
font-weight: 900;
}

.form_body_cate3 h1, .form_body_cate3 h2, .form_body_cate3 h3, .form_body_cate3 h4
{margin: 0;}

/* Consent checkbox on the category 3 form */
.coupon-cat3 .js-form-type-checkbox,
.coupon-cat3 .form-type-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
}

.coupon-cat3 .js-form-type-checkbox input[type="checkbox"],
.coupon-cat3 .form-type-checkbox input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--c);
}

.coupon-cat3 .js-form-type-checkbox label,
.coupon-cat3 .form-type-checkbox label {
  display: inline;
  margin: 0;
  font-weight: 400;
  line-height: 1.45;
}

.coupon-cat3 .webform-type-checkbox input, .coupon-cat3 .webform-type-checkbox label {
    width: auto;
    max-width: none;
    display: inline;
    padding: 0 5px;
}
div#edit-cat3-footer {
    text-align: center;
}
/* "Valid until 2027-12-31" under the coupon code */
.coupon-valid {
  margin: 14px 0 0;
  font-size: 16px;
  text-align: center;
  color: #444;
}

.coupon-valid-date {
  color: var(--c);
  font-weight: 700;
}
/* ---------- 7. Small screens ---------- */

@media (max-width: 600px) {
  .coupon-card { flex-basis: 100%; max-width: none;margin:0 5% }
span.bigsize {
    text-align: center;
    font-weight: 700;
    margin: 5% 0% 0% 0;
    display: block;
    font-size: 2.5rem;
    color: #000;
}
  .coupon-cat3 { padding: 22px 16px 18px; }

  .coupon-notice,
  .coupon-result { margin: 40px 12px 24px; padding-left: 18px; padding-right: 18px; }

  .coupon-notice-title { font-size: 20px; }

  .coupon-code-box { flex-direction: column; padding: 16px; }
  .coupon-result .coupon-code { font-size: 24px; text-align: center; }
  a.coupon-copy { width: 100%; box-sizing: border-box; text-align: center; }
}