:root {
  --primary: #095f70;
  --primary-dark: #074b57;
  --secondary: #66664d;
  --bg: #095f70;
  --panel: #ffffff;
  --border: #d7dadd;
  --text: #2f2f2f;
  --muted: #6a6866;
  --danger: #b00020;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding: 20px 0;
  background: var(--panel);
  color: var(--primary);
  font-family: "Open Sans", Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.small-text {
  font-size: 12px;
  color: var(--text);
}

.page-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo {
  padding: 18px 0;
  background: var(--primary);
}

.header-logo img {
  height: 28px;
  max-width: 100%;
}

.page-title-row {
  background: var(--secondary);
  height: 80px;
}

.page-title {
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 32px;
  letter-spacing: 4px;
  color: #ffffff;
}

.page-subtitle {
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 1px;
  margin-top: 6px;
}

.content-pad {
  padding: 18px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  width: 100%;
}

.panel-pad {
  padding: 14px;
}

.section-title {
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--secondary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  margin: 0 0 12px 0;
}

.note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4em;
}

.error-banner {
  background: #fff0f3;
  border: 1px solid #f1b0bb;
  color: var(--danger);
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 8px;
}

.success-banner {
  background: #eef7f8;
  border: 1px solid #b8d9dd;
  color: var(--primary);
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 8px;
}

.req {
  color: #b00020;
  font-weight: 800;
  margin-left: 2px;
}

.txtboxstyle1[readonly] {
  background: #f3f3f3;
  cursor: not-allowed;
}

.txtboxstyle1 {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 14px;
  color: var(--text);
  outline: none;
  text-transform: uppercase;
  appearance: none;
  -webkit-appearance: none;
}

select.txtboxstyle1 {
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

textarea.txtboxstyle1 {
  min-height: 96px;
  resize: vertical;
}

.txtboxstyle1:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(9, 95, 112, 0.12);
}

.no-upper {
  text-transform: none;
}

.formbtn {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  background: var(--secondary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  margin: 3px;
  min-height: 42px;
}

.formbtn:hover {
  filter: brightness(0.95);
}

.cartbtn {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.8px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  min-height: 46px;
}

.cartbtn:hover {
  background: var(--primary-dark);
}

.formbtn:disabled,
.cartbtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.page-footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 14px 0 4px 0;
}

.top-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
  flex-wrap: wrap;
}

.top-link-btn {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.top-link-btn:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.top-link-btn.secondary {
  background: var(--secondary);
}

.top-link-btn.secondary:hover {
  filter: brightness(0.95);
}

.item-preview-table {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
}

.address-validation-wrap {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}

.address-validation-recommended {
  background: #eef7f8;
  border: 1px solid #b8d9dd;
  border-radius: 6px;
  padding: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.modal-content {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.helper-choices {
  gap: 10px;
}

.helper-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.helper-bubble {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.helper-bubble:hover,
.helper-bubble:focus {
  background: var(--accent, #095f70);
  color: #fff;
  outline: none;
}

.helper-tooltip {
  position: relative;
  z-index: 50;
  max-width: 370px;
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  font-size: 0.9rem;
  line-height: 1.35;
  display: none;
}

.helper-tooltip.show {
  display: block;
}

.help-bubble {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: var(--panel);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 5px;
}

table {
  border-collapse: collapse;
  margin-top: 0.75rem;
  color: #095f70;
  width: 100%;
}

th,
td {
  border: 1px solid #ccc;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  vertical-align: top;
  box-sizing: border-box;
}

th {
  background: #095f70;
  color: #ffffff;
}

.terms-box {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
}

.terms-copy {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

.terms-copy ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.terms-copy li {
  margin-bottom: 8px;
}

.terms-agree {
  display: block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--text);
}

.terms-agree input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: middle;
}

.recaptcha-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

.submit-progress-wrap {
  margin-top: 14px;
}

.submit-progress-text {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.submit-progress-track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: #dfe7ea;
  overflow: hidden;
  border: 1px solid #cfd8dc;
}

.submit-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--primary);
  transition: width 0.25s ease;
}

/* Desktop helper: prevent overflow from nested form tables */
.panel table,
.content-pad table {
  table-layout: fixed;
}

/* Tablet */
@media (max-width: 940px) {
  body {
    padding: 10px;
  }

  .page-wrap {
    width: 100% !important;
    border-radius: 6px;
  }

  .content-pad {
    padding: 12px;
  }

  .panel-pad {
    padding: 12px;
  }

  .page-title-row {
    height: auto;
  }

  .page-title {
    font-size: 24px;
    letter-spacing: 2px;
    line-height: 1.2;
    padding: 10px 0;
  }

  .page-subtitle {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .terms-copy {
    font-size: 14px;
  }

  .txtboxstyle1 {
    min-height: 44px;
    font-size: 16px;
  }

  .formbtn,
  .cartbtn {
    min-height: 44px;
    font-size: 13px;
  }

  .modal {
    padding: 20px 10px;
  }

  .modal-content {
    max-width: 100%;
  }

  /* Stack table-based form layouts */
  .content-pad > table,
  .panel > tbody > tr > td > table,
  .panel-pad > table,
  .panel-pad table,
  .page-wrap table[width="100%"] {
    width: 100% !important;
  }

  .panel-pad > table > tbody > tr,
  .panel-pad table > tbody > tr {
    display: block;
    width: 100%;
  }

  .panel-pad > table > tbody > tr > td,
  .panel-pad table > tbody > tr > td {
    display: block;
    width: 100% !important;
    max-width: 100%;
    border: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* City/State/Zip row */
  .panel-pad table table > tbody > tr {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .panel-pad table table > tbody > tr > td {
    display: block;
    flex: 1 1 100%;
    width: 100% !important;
    padding: 0 !important;
  }
}

/* Phones */
@media (max-width: 640px) {
  body {
    padding: 8px;
  }

  .content-pad {
    padding: 10px;
  }

  .panel-pad {
    padding: 10px;
  }

  .header-logo {
    padding: 14px 10px;
  }

  .header-logo img {
    height: 22px;
  }

  .page-title {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .page-subtitle {
    font-size: 10px;
    margin-top: 4px;
  }

  .section-title {
    font-size: 14px;
    padding-bottom: 6px;
    margin-bottom: 10px;
  }

  .note,
  .small-text,
  .page-footer {
    font-size: 11px;
  }

  .txtboxstyle1 {
    min-height: 46px;
    font-size: 16px;
    padding: 10px 12px;
  }

  .formbtn,
  .cartbtn,
  .top-link-btn {
    width: 100%;
    display: block;
    box-sizing: border-box;
    text-align: center;
    margin: 6px 0;
  }

  .top-links {
    flex-direction: column;
    align-items: stretch;
  }

  .terms-box {
    padding: 10px;
  }

  .terms-copy {
    font-size: 13px;
    line-height: 1.45;
  }

  .terms-copy ul {
    margin-left: 16px;
  }

  .recaptcha-wrap {
    justify-content: flex-start;
  }

  th,
  td {
    font-size: 0.78rem;
    padding: 0.35rem 0.4rem;
  }

  /* Make city / state / zip full-width on phones */
  .panel-pad table table > tbody > tr {
    display: block;
  }

  .panel-pad table table > tbody > tr > td {
    width: 100% !important;
    display: block;
    padding: 0 0 8px 0 !important;
  }
}

.public-header-inner {
  position: relative;

  display: grid;
  grid-template-columns: 1fr auto 1fr;

  align-items: center;

  width: 100%;
  min-height: 64px;

  padding: 0 18px;

  box-sizing: border-box;
}

.public-header-spacer {
  grid-column: 1;
}

.public-header-logo-link {
  grid-column: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  line-height: 0;
}

.public-header-language {
  grid-column: 3;

  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.public-language-picker {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  margin: 0;

  color: #ffffff;

  font-family:
    "Open Sans",
    Arial,
    sans-serif;

  font-size: 12px;
  font-weight: 700;
}

.public-language-icon {
  font-size: 17px;
  line-height: 1;
}

.public-language-select {
  appearance: none;
  -webkit-appearance: none;

  min-width: 118px;

  padding:
    7px
    30px
    7px
    10px;

  border:
    1px solid
    rgba(255, 255, 255, 0.55);

  border-radius: 6px;

  background-color:
    rgba(255, 255, 255, 0.10);

  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      #ffffff 50%
    ),
    linear-gradient(
      135deg,
      #ffffff 50%,
      transparent 50%
    );

  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 9px) 50%;

  background-size:
    5px 5px,
    5px 5px;

  background-repeat: no-repeat;

  color: #ffffff;

  font-family:
    "Open Sans",
    Arial,
    sans-serif;

  font-size: 12px;
  font-weight: 700;

  cursor: pointer;

  outline: none;
}

.public-language-select option {
  color: #2f2f2f;
  background: #ffffff;
}

.public-language-select:hover,
.public-language-select:focus {
  border-color: #ffffff;

  background-color:
    rgba(255, 255, 255, 0.18);
}

@media (max-width: 640px) {

  .public-header-inner {
    grid-template-columns:
      1fr
      auto;

    min-height: 64px;

    padding:
      10px
      12px;
  }

  .public-header-spacer {
    display: none;
  }

  .public-header-logo-link {
    grid-column: 1;

    justify-self: start;
  }

  .public-header-language {
    grid-column: 2;
  }

  .public-language-select {
    min-width: 105px;

    font-size: 11px;
  }
}