/* =========================================================
   JAFFEST'26 VENDORS PAGE
   This file contains styles used only by vendors.html.
   The main website colours and typography come from style.css.
========================================================= */

/* Respect the HTML hidden attribute even when a component has its own display style. */
[hidden] {
  display: none !important;
}

/* ---------- Page introduction ---------- */
.vendor-hero {
  color: #ffffff;
  background: #075c20;
}

.vendor-hero-inner {
  max-width: 1240px;
  min-height: 470px;
  margin: 0 auto;
  padding: 70px 30px 55px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.vendor-hero-copy .section-kicker {
  color: #f8d76a;
}

.vendor-hero h1 {
  margin: 18px 0 22px;
  font: 900 clamp(58px, 7vw, 88px)/0.94 var(--font-head);
  letter-spacing: -3px;
}

.vendor-hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.vendor-hero-copy p {
  max-width: 500px;
  margin: 0 0 27px;
  color: #e0eee1;
  font-size: 15px;
  line-height: 1.8;
}

.vendor-hero-art {
  min-height: 330px;
  position: relative;
  display: grid;
  place-items: center;
}

.vendor-hero-circle {
  width: 280px;
  height: 280px;
  border: 12px solid #ffffff;
  border-radius: 50%;
  background: var(--gold);
  color: #17351c;
  display: grid;
  place-content: center;
  text-align: center;
  font: 900 35px/0.95 var(--font-head);
  transform: rotate(8deg);
  box-shadow: 0 20px 50px #001b0d44;
}

.vendor-hero-circle span {
  color: #08702a;
}

.vendor-hero-star {
  position: absolute;
  top: 5px;
  right: 7%;
  color: #f7d76c;
  font-size: 90px;
}

.vendor-hero-caption {
  position: absolute;
  bottom: 8px;
  right: 5%;
  color: #f7d76c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.vendor-hero-ribbon {
  min-height: 48px;
  padding: 12px 20px;
  background: var(--gold);
  color: #172017;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 4vw, 50px);
  font: 900 10px var(--font-head);
  letter-spacing: 1.5px;
}

/* ---------- Application section ---------- */
.vendor-section {
  background: #f7f5ed;
}

.vendor-section-heading {
  max-width: 1180px;
  margin: 0 auto 32px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}

.vendor-section-heading h2 {
  margin: 12px 0 0;
  color: #18241a;
  font: 900 clamp(40px, 5vw, 58px)/1 var(--font-head);
  letter-spacing: -2px;
}

.vendor-section-heading h2 em {
  color: #07813a;
  font-style: normal;
}

.vendor-section-heading > p {
  max-width: 350px;
  color: #697168;
  font-size: 13px;
  line-height: 1.7;
}

.required-mark,
.form-field label span,
.form-field legend span {
  color: #c33b24;
}

.vendor-form-card {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 48px);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 15px 50px #1720170d;
}

.form-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 25px;
}

.form-step {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf4e8;
  color: #075c20;
  font: 900 13px var(--font-head);
}

.form-section-heading h3 {
  margin: 0 0 5px;
  color: #18241a;
  font: 800 23px var(--font-head);
}

.form-section-heading p {
  margin: 0;
  color: #7b837b;
  font-size: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label,
.form-field legend {
  color: #263229;
  font-size: 12px;
  font-weight: 800;
}

.form-field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.form-field select,
.form-field textarea,
.status-search input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #dce2da;
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: #1b251d;
  font: 13px "DM Sans", sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field textarea {
  min-height: 105px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.status-search input:focus {
  border-color: #07813a;
  box-shadow: 0 0 0 3px #07813a18;
}

.form-divider {
  height: 1px;
  margin: 38px 0;
  background: #e9ede7;
}

/* ---------- Package cards ---------- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.package-option {
  position: relative;
  min-width: 0;
}

.package-option > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.package-option > label,
.package-contact-card {
  height: 100%;
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 2px solid #e1e6df;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.package-option > label:hover {
  transform: translateY(-3px);
  border-color: #a8c9a7;
}

.package-option > input:checked + label {
  border-color: #07813a;
  background: #f2faf0;
  box-shadow: 0 0 0 3px #07813a12;
}

.package-option > input:focus-visible + label {
  outline: 3px solid #f5bd25;
  outline-offset: 3px;
}

.package-label {
  color: #07813a;
  font: 900 9px var(--font-head);
  letter-spacing: 1.7px;
}

.package-option h4,
.package-contact-card h4 {
  margin: 15px 0 8px;
  color: #1c281f;
  font: 800 22px var(--font-head);
}

.package-price {
  color: #07813a;
  font: 900 28px var(--font-head);
}

.package-option p,
.package-contact-card p {
  margin: 12px 0 18px;
  color: #667067;
  font-size: 12px;
  line-height: 1.7;
}

.package-select {
  margin-top: auto;
  color: #075c20;
  font-size: 11px;
  font-weight: 800;
}

.package-option > input:checked + label .package-select::after {
  content: " ✓";
}

.package-contact-card {
  border-color: #f0d88d;
  background: #fffaf0;
  cursor: default;
}

.package-contact-card a {
  margin-top: auto;
  color: #075c20;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
}

.model-count-field {
  margin-top: 22px;
}

.model-count-field small,
.file-upload small {
  color: #788078;
  font-size: 11px;
  line-height: 1.6;
}

.package-summary {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 4px solid #07813a;
  border-radius: 5px;
  background: #f0f8ed;
  display: grid;
  gap: 5px;
}

.package-summary > span {
  color: #647263;
  font: 800 9px var(--font-head);
  letter-spacing: 1.4px;
}

.package-summary strong {
  color: #1b281d;
  font-size: 13px;
}

.package-summary b {
  color: #07813a;
  font: 900 22px var(--font-head);
}

/* ---------- Utility choices ---------- */
.utility-grid {
  margin-top: 25px;
}

.utility-grid fieldset {
  min-height: 90px;
  padding: 14px;
  border: 1px solid #e2e7df;
  border-radius: 6px;
}

.utility-grid legend {
  padding: 0 5px;
}

.utility-grid legend small {
  color: #7b837b;
  font-size: 10px;
  font-weight: 500;
}

.choice-label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  margin: 9px 16px 0 0;
  color: #536055;
  font-size: 12px;
  font-weight: 500;
}

/* ---------- Food details and uploads ---------- */
.food-details {
  margin-top: 30px;
  padding: 25px;
  border-left: 4px solid var(--gold);
  border-radius: 7px;
  background: #fff9ec;
}

.file-upload {
  min-height: 145px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  border: 1px dashed #b9c7b7;
  border-radius: 7px;
  background: #fbfdf9;
}

.file-upload > i {
  color: #07813a;
  font-size: 25px;
}

.file-upload input[type="file"] {
  max-width: 100%;
  color: #5f6a60;
  font-size: 11px;
}

.file-upload-horizontal {
  min-height: 100px;
}

/* ---------- Agreement and submit button ---------- */
.vendor-agreement {
  padding: 20px;
  border: 1px solid #e6ebe4;
  border-radius: 7px;
  background: #f8faf6;
}

.vendor-agreement label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #566157;
  font-size: 12px;
  line-height: 1.8;
}

.vendor-agreement input {
  margin-top: 4px;
  flex: 0 0 auto;
  accent-color: #07813a;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: #07813a;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.submit-application {
  width: 100%;
  min-height: 54px;
  margin-top: 25px;
  justify-content: center;
}

.submit-application:disabled,
.check-btn:disabled,
.pay-now-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Application status and payment ---------- */
.application-status {
  margin-top: 55px;
  padding-top: 40px;
  border-top: 1px solid #e9ede7;
}

.status-search {
  padding: 22px;
  border: 1px solid #e5eae2;
  border-radius: 8px;
  background: #fafcf8;
}

.status-search > label {
  display: block;
  margin-bottom: 8px;
  color: #263229;
  font-size: 12px;
  font-weight: 800;
}

.status-search-row {
  display: flex;
  gap: 12px;
}

.status-search-row input {
  flex: 1;
  min-width: 0;
}

.status-search-row .button {
  flex: 0 0 auto;
}

.application-result {
  margin-top: 18px;
}

.application-card {
  padding: 22px;
  border: 1px solid #e4e9e2;
  border-radius: 8px;
  background: #fff;
}

.application-card h4 {
  margin: 12px 0;
  color: #1d2a20;
  font: 800 20px var(--font-head);
}

.application-card p {
  margin: 8px 0;
  color: #59645a;
  font-size: 12px;
}

.status-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}

.status-pending { background: #fff2cc; color: #7f6000; }
.status-approved { background: #d9ead3; color: #137333; }
.status-rejected { background: #f4cccc; color: #a61c00; }
.payment-paid { color: #137333; font-weight: 800; }
.payment-unpaid { color: #a15c00; font-weight: 800; }

.status-notice {
  margin-top: 15px;
  padding: 14px;
  border-radius: 6px;
  background: #fff9ec;
  color: #65501b;
  font-size: 12px;
  line-height: 1.7;
}

.status-success {
  margin-top: 15px;
  padding: 14px;
  border-radius: 6px;
  background: #effbea;
  color: #176900;
  font-size: 12px;
  line-height: 1.7;
}

.status-error,
.form-message.error {
  padding: 14px;
  border-radius: 6px;
  background: #fff0f0;
  color: #a00000;
  font-size: 12px;
  line-height: 1.7;
}

.form-message {
  display: none;
  margin-bottom: 20px;
}

.form-message.success {
  display: block;
  background: #effbea;
  color: #176900;
}

.form-message.error {
  display: block;
}

.pay-now-button {
  width: 100%;
  margin-top: 16px;
  justify-content: center;
}

/* ---------- Vendor rules pop-up ---------- */
.rules-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  padding: 20px;
  display: none;
  overflow-y: auto;
  background: #07150dcc;
}

.rules-modal.is-open {
  display: block;
}

.rules-modal-content {
  position: relative;
  max-width: 760px;
  max-height: 88vh;
  margin: 35px auto;
  padding: 35px;
  overflow-y: auto;
  border-radius: 10px;
  background: #fffdf8;
  box-shadow: 0 20px 70px #0005;
}

.rules-modal-content h2 {
  margin: 12px 45px 25px 0;
  color: #075c20;
  font: 900 30px/1.05 var(--font-head);
}

.rules-content h3 {
  margin: 22px 0 7px;
  color: #1e2b20;
  font: 800 16px var(--font-head);
}

.rules-content p {
  margin: 0;
  color: #5d675e;
  font-size: 13px;
  line-height: 1.8;
}

.rules-close {
  position: absolute;
  top: 12px;
  right: 15px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #526052;
  font-size: 32px;
  cursor: pointer;
}

.rules-done {
  width: 100%;
  margin-top: 25px;
  justify-content: center;
}

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .vendor-hero-inner {
    grid-template-columns: 1fr 0.8fr;
  }

  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .vendor-hero-inner {
    grid-template-columns: 1fr;
    padding: 60px 22px 35px;
    gap: 10px;
  }

  .vendor-hero h1 {
    font-size: clamp(56px, 13vw, 78px);
  }

  .vendor-hero-art {
    min-height: 260px;
  }

  .vendor-hero-circle {
    width: 220px;
    height: 220px;
    font-size: 29px;
  }

  .vendor-hero-star {
    top: 0;
    right: 10%;
    font-size: 65px;
  }

  .vendor-hero-caption {
    bottom: 0;
    right: 8%;
    font-size: 8px;
  }

  .vendor-hero-ribbon {
    gap: 10px;
    font-size: 8px;
    letter-spacing: 0.7px;
  }

  .vendor-section-heading {
    display: block;
  }

  .vendor-section-heading > p {
    margin-top: 15px;
  }

  .vendor-form-card {
    padding: 24px 18px;
  }

  .form-grid,
  .package-grid {
    grid-template-columns: 1fr;
  }

  .form-field-full {
    grid-column: auto;
  }

  .package-option > label,
  .package-contact-card {
    min-height: 225px;
  }

  .status-search-row {
    flex-direction: column;
  }

  .status-search-row .button {
    width: 100%;
    justify-content: center;
  }

  .rules-modal {
    padding: 10px;
  }

  .rules-modal-content {
    margin: 15px auto;
    padding: 25px 20px;
    max-height: 92vh;
  }
}

@media (max-width: 420px) {
  .vendor-hero-ribbon {
    flex-wrap: wrap;
  }

  .form-section-heading h3 {
    font-size: 20px;
  }

  .utility-grid fieldset {
    min-height: 80px;
  }
}

/* ---------- Successful submission message ---------- */
.application-success {
  max-width: 620px;
  margin: 0 auto;
  padding: 35px 15px;
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5f5e2;
  color: #07813a;
  font-size: 27px;
}

.application-success h2 {
  margin: 0 0 10px;
  color: #075c20;
  font: 900 30px var(--font-head);
}

.application-success p {
  color: #657066;
  font-size: 13px;
  line-height: 1.8;
}

.application-success > span {
  display: block;
  margin-top: 25px;
  color: #657066;
  font: 800 10px var(--font-head);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.application-id {
  display: inline-block;
  margin: 10px 0;
  padding: 12px 18px;
  border: 1px dashed #07813a;
  border-radius: 6px;
  background: #f2faf0;
  color: #075c20;
  font: 900 22px var(--font-head);
}
