/* ==========================================================================
   REWARDS JOIN  (/join  -> join.php)  and campaign page (/info -> info.php)
   Same page-section / divider / bordered box as the site's other form pages.
   ========================================================================== */
.join-page {
  position: relative;
  padding: 100px 20px;
  background: url("/images/boatshedbremerton-backgrond2.jpg") center center / cover no-repeat;
}
.join-page::before { content: ""; position: absolute; inset: 0; background: var(--c-white); opacity: .95; pointer-events: none; }
.join-page > .inner { position: relative; z-index: 1; }
@media (min-width: 1401px) { .join-page { background-attachment: fixed; } }
@media (max-width: 1024px) { .join-page { padding: 50px 20px; } }
@media (max-width: 767px)  { .join-page { padding: 50px 10px; } }

.join-page .divider { display: flex; align-items: center; width: 100%; }
.join-page .divider::before, .join-page .divider::after { content: ""; display: block; flex-grow: 1; border-top: 1px solid var(--c-primary); }
.join-page .divider h1 { flex-shrink: 0; margin: 0 10px; font-size: 3.5em; line-height: 1; max-width: 95%; }

.join-box {
  display: flex; flex-direction: row; gap: 40px; width: 100%;
  margin-top: -48px; padding: 75px 40px 50px;
  border: 1px solid var(--c-primary); border-top: 0;
}
@media (max-width: 1024px) { .join-box { flex-direction: column; padding: 50px 20px; gap: 30px; } }
@media (max-width: 767px)  { .join-box { padding: 50px 10px; } }

/* Left: the program */
.join-perks { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.join-perks h2 { font-size: 2.6em; line-height: 1; color: var(--c-secondary); margin: 0; }
.join-perks .headline { font-family: var(--f-ui); font-weight: 600; font-size: 1.25em; color: var(--c-primary); margin: 0; }
.join-perks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.join-perks li { position: relative; padding-left: 28px; font-family: var(--f-ui); font-weight: 500; color: var(--c-slate); line-height: 1.4; }
.join-perks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 10px; height: 10px; background: var(--c-gold); transform: rotate(45deg); }
.join-perks .rewards-table { display: grid; grid-template-columns: 1fr auto; gap: 0; border: 1px solid #2B45603a; background: #fff; }
.join-perks .rewards-table div { padding: 10px 14px; border-bottom: 1px solid #2B45601f; font-family: var(--f-ui); color: var(--c-slate); }
.join-perks .rewards-table div:nth-child(even) { text-align: right; font-weight: 700; color: var(--c-secondary); }
.join-perks .rewards-table div:nth-last-child(-n+2) { border-bottom: 0; }
.join-perks .photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; margin-top: 6px; }

/* Right: the card with two tabs */
.join-card { flex: 1 1 0; min-width: 0; align-self: flex-start; width: 100%; background: #fff; border: 1px solid #2B45603a; box-shadow: 0 6px 24px rgba(43,69,96,.12); padding: 24px; }
@media (max-width: 767px) { .join-card { padding: 18px 14px; } }

.join-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--c-secondary); margin-bottom: 22px; }
.join-tabs button {
  margin: 0; min-height: 44px; padding: 0 10px; border: 0; border-radius: 0;
  background: #fff; color: var(--c-secondary);
  font-family: var(--f-display); font-size: 24px; letter-spacing: 1px; line-height: 1; cursor: pointer;
}
.join-tabs button + button { border-left: 1px solid var(--c-secondary); }
.join-tabs button[aria-selected="true"] { background: var(--c-secondary); color: #fff; }
.join-tabs button:hover { background: var(--c-slate); color: #fff; }

.join-form { display: flex; flex-direction: column; gap: 14px; }
.join-form[hidden] { display: none; }
.join-form h2 { font-size: 2em; color: var(--c-secondary); margin: 0; }
.join-form .f { display: flex; flex-direction: column; gap: 5px; }
.join-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .join-form .row2 { grid-template-columns: 1fr; } }
.join-form .lbl { font-family: var(--f-ui); font-weight: 600; font-size: 14px; color: var(--c-slate); }
.join-form .lbl small { font-weight: 400; opacity: .8; }
.join-form input[type="text"], .join-form input[type="tel"], .join-form input[type="email"], .join-form input:not([type]) {
  width: 100%; min-height: 44px; padding: 6px 14px;
  border: 1px solid #2B45609E; border-radius: 0; background: #fff; color: #2B4560;
  font-family: var(--f-text); font-size: 16px; line-height: 1.4; -webkit-appearance: none; appearance: none;
}
.join-form input:focus { outline: 0; border-color: var(--c-secondary); box-shadow: 0 0 0 2px rgba(0,59,149,.15); }
.join-form ::placeholder { color: #2B4560; opacity: .5; }
.join-form .hint { margin: -4px 0 0; font-family: var(--f-ui); font-size: 13px; color: #2B4560D9; }

.join-form .consent { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: #f5f7fa; border: 1px solid #2B45601f; font-family: var(--f-ui); font-size: 13px; line-height: 1.45; color: #2B4560; cursor: pointer; }
.join-form .consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--c-secondary); }
.join-form .consent a { color: var(--c-secondary); text-decoration: underline; }

.join-form button[type="submit"] { width: 100%; min-height: 50px; margin: 4px 0 0; }
.join-form .fine { margin: 0; text-align: center; font-family: var(--f-ui); font-size: 13px; color: #2B4560D9; }

/* Campaign page (/info): Splango's content inside the site */
.info-page .info-box { margin-top: -48px; padding: 75px 40px 50px; border: 1px solid var(--c-primary); border-top: 0; }
@media (max-width: 1024px) { .info-page .info-box { padding: 50px 20px; } }
@media (max-width: 767px)  { .info-page .info-box { padding: 50px 10px; } }
