/* Inner pages: the partner application (/ortak/) and the partner panel (/ortak/panel/). Loaded after /home.css, which brings the colours,
   the header, the footer and the buttons; this file adds the page layout, the forms and the panel pieces. */
.main { padding: 44px 0 96px; }
.page-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(700px 360px at 90% -20%, rgba(94, 132, 255, .38), transparent 60%), radial-gradient(520px 300px at 0% 120%, rgba(255, 122, 0, .2), transparent 60%), linear-gradient(160deg, var(--navy), #0f2d80 70%, #143c9e); }
.page-hero .wrap { padding: 58px 0 76px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; letter-spacing: -.03em; margin: 16px 0 14px; }
.page-hero h1 em { font-style: normal; color: var(--orange); }
.page-hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: #cfd9ff; max-width: 640px; }

/* the application page: the form on the left, why-join on the right */
.apply { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: -42px; position: relative; z-index: 2; }
.aside { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-sm); position: sticky; top: 88px; }
.aside h3 { font-size: 20px; margin-bottom: 16px; }
.aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.aside li { display: flex; gap: 14px; align-items: flex-start; }
.aside li .ico { width: 26px; height: 26px; color: var(--orange); margin-top: 2px; }
.aside li b { display: block; font-size: 16px; }
.aside li span { display: block; color: var(--muted); font-size: 14.5px; }
.aside .tip { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--bg); color: var(--muted); font-size: 14px; }

/* cards and forms */
.form { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow-sm); }
.form h2 { font-size: 26px; font-weight: 900; margin-bottom: 6px; }
.form h3 { font-size: 19px; margin-bottom: 10px; }
.form .sub { margin: 0 0 22px; font-size: 16px; }
.form + .form { margin-top: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; font-size: 15px; }
.field .hint { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 14px 15px; border: 1.5px solid var(--line); border-radius: 14px; font-size: 16px; font-family: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23, 71, 214, .14); }
textarea { min-height: 112px; resize: vertical; }
.row2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.row-inline { display: flex; gap: 10px; }
.row-inline select { flex: 1; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.chip { position: static; display: inline-flex; align-items: center; gap: 6px; background: var(--orange-soft); color: var(--navy); padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: none; }
.chip button { border: 0; background: transparent; cursor: pointer; font-size: 17px; line-height: 1; color: var(--navy); padding: 0 0 0 2px; }
.kinds { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kind { border: 2px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; background: #fff; text-align: left; font-family: inherit; font-size: 15px; color: var(--text); transition: border-color .15s, box-shadow .15s, background .15s; }
.kind:hover { border-color: #b9c8ef; }
.kind b { display: flex; align-items: center; gap: 8px; font-size: 16.5px; margin-bottom: 4px; }
.kind b .ico { width: 22px; height: 22px; color: var(--blue); }
.kind span { color: var(--muted); font-size: 14px; display: block; line-height: 1.4; }
.kind.on { border-color: var(--blue); background: #f1f5ff; box-shadow: 0 0 0 4px rgba(23, 71, 214, .1); }
.notice { padding: 14px 16px; border-radius: 14px; margin: 16px 0; font-weight: 600; }
.notice.ok { background: #e7f7ee; color: #14663a; }
.notice.err { background: #fdecec; color: #8f2424; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; font-weight: 500; }
.check input { margin-top: 3px; width: 22px; height: 22px; flex: none; accent-color: var(--blue); }
.muted { color: var(--muted); }
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; background: #eef1fb; color: var(--navy); }
.badge.green { background: #e7f7ee; color: #14663a; }
.badge.amber { background: #fff3d6; color: #8a5a00; }
.badge.red { background: #fdecec; color: #8f2424; }
.btn { background: var(--blue); color: #fff; }
.btn.light { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: wait; transform: none; }
.done { text-align: center; padding: 48px 32px; }
.done .tick { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #e7f7ee; color: #14663a; margin: 0 auto 20px; }
.done .tick .ico { width: 36px; height: 36px; stroke-width: 2.6; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
th { color: var(--muted); font-weight: 700; font-size: 13px; }

/* partner panel */
.panel { padding: 30px 0 80px; }
.auth { max-width: 480px; margin: 18px auto; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab { padding: 11px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 15px; color: var(--text); transition: background .15s, color .15s; }
.tab:hover { border-color: #b9c8ef; }
.tab.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.cols { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .grow { flex: 1; min-width: 0; }
.item b { display: block; }
.stat { display: inline-block; margin-right: 22px; padding: 12px 16px; border-radius: 16px; background: var(--bg); }
.stat b { font-size: 24px; display: block; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 13px; }
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 14px 0; }
.plan { border: 1.5px solid var(--line); border-radius: 18px; padding: 18px; background: #fff; }
.plan-price { font-size: 26px; font-weight: 900; margin: 4px 0; color: var(--navy); }
.qr { display: block; width: 240px; height: 240px; border: 1px solid var(--line); border-radius: 14px; margin: 12px 0; }
.groups { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; margin: 8px 0; }
.groups .check { padding: 7px 0; }
.wa-preview { display: block; max-width: 220px; max-height: 220px; border-radius: 12px; margin: 8px 0 14px; }
.row-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 16px; }

@media (max-width: 900px) {
  .apply { grid-template-columns: 1fr; margin-top: -30px; }
  .aside { position: static; }
}
@media (max-width: 640px) {
  .main { padding: 30px 0 80px; }
  .page-hero .wrap { padding: 40px 0 62px; }
  .form { padding: 22px 18px; border-radius: 20px; }
  .aside { padding: 22px 18px; }
  .row-inline { flex-direction: column; }
  .qr { width: 100%; max-width: 240px; height: auto; aspect-ratio: 1; }
}

/* the header of the partner panel keeps its links on a phone too (the name and the sign-out) */
.top nav.pnav { display: flex !important; gap: 4px; }
.top nav.pnav a { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand .tag { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .14); color: #dbe5ff; padding: 4px 9px; border-radius: 8px; margin-left: 2px; }
@media (max-width: 640px) { .brand .tag { display: none; } .top nav.pnav a { padding: 8px 10px; font-size: 14px; } }
