/* Maker Mindz Live Sessions and Opportunities pages */
:root { --ink: #1f2d3a; --muted: #5b6b78; --line: #e3e8e6; --bg: #f4f7f6; --brand: #2c3e50; --green: #27ae60; --green-2: #2ecc71; --green-text: #1e8449;
  --hs: #17b6c0; --hs-text: #0e7f87; --hs-tint: #e6f8f9; --ug: #8e44ad; --ug-text: #6c3483; --ug-tint: #f4ecf7; --red: #c0392b; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
a { color: var(--green-text); }
[hidden] { display: none !important; }
button { font: inherit; }

.bar { min-height: 60px; background: var(--brand); color: #fff; display: flex; align-items: center; gap: 10px; padding: 6px 12px; position: sticky; top: 0; z-index: 30; }
.home { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; padding: 6px 10px 6px 6px; border-radius: 999px; white-space: nowrap; }
.home:hover { background: rgba(255,255,255,.1); }
.home img { height: 34px; width: auto; display: block; }
.home .accent { color: var(--green-2); }
.bar .title { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.bar .title a { color: #fff; text-decoration: none; }
.bar-btn { flex: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
.bar-btn:hover { background: rgba(255,255,255,.1); }
.bar-btn.green { background: var(--green); border-color: var(--green); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.hero { background: linear-gradient(135deg, var(--brand) 0%, #1f5f46 100%); color: #fff; }
.hero .wrap { padding-top: 32px; padding-bottom: 30px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--green-2); margin-bottom: 6px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; }
.hero p { margin: 0 0 16px; font-size: 17px; line-height: 1.5; color: #dfe9e5; max-width: 760px; }

.searchbox { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 16px; max-width: 640px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.searchbox svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 16px; padding: 8px 0; background: transparent; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip.on { background: #fff; color: var(--brand); border-color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 10px; border: 1px solid #cdd6d3; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover:not(:disabled) { border-color: var(--green); color: var(--green-text); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--green-2); color: #fff; }
.btn.danger { color: var(--red); }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 8px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 6px 20px rgba(20,40,60,.06); }
.section { margin: 28px 0; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sec-badge { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.sec-head h2 { margin: 0; font-size: 22px; }
.sec-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.hs .sec-badge { background: var(--hs-tint); } .ug .sec-badge { background: var(--ug-tint); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; color: inherit; }
.card:hover, .card:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20,40,60,.12); outline: none; }
.hs .card:hover { border-color: var(--hs); } .ug .card:hover { border-color: var(--ug); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef2f1; color: #3d4b56; }
.hs .badge.kind { background: var(--hs-tint); color: var(--hs-text); } .ug .badge.kind { background: var(--ug-tint); color: var(--ug-text); }
.card h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; }
.card .sub { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.card .desc { font-size: 14.5px; line-height: 1.5; color: #33444f; flex: 1; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .host { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; flex: none; }
.hs .avatar { background: var(--hs); } .ug .avatar { background: var(--ug); }
.card .next { font-size: 13.5px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 10px; }
.card .next b { color: var(--green-text); }
.empty { color: var(--muted); padding: 18px; text-align: center; background: #fff; border: 1px dashed #cdd6d3; border-radius: 14px; }

.modal { position: fixed; inset: 0; z-index: 100; background: rgba(20,32,44,.6); display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; }
.modal-box { position: relative; background: #fff; border-radius: 18px; width: 100%; max-width: 640px; margin: 24px 0; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.modal-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 21px; padding-right: 36px; }
.modal-body { padding: 18px 22px 22px; }
.x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f0f3f2; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.dates { display: grid; gap: 8px; margin: 10px 0; }
.date { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.date .when { flex: 1; min-width: 180px; font-weight: 600; font-size: 14.5px; }
.date .seats { font-size: 13px; color: var(--muted); }

.field { margin-bottom: 14px; }
.field label, .lbl { display: block; font-size: 13px; font-weight: 700; color: #3d4b56; margin-bottom: 5px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=tel], input[type=url], select, textarea {
  width: 100%; border: 1px solid #cdd6d3; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
textarea { min-height: 90px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; line-height: 1.4; cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--green); flex: none; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tab { padding: 10px 14px; border: 0; background: none; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; font-size: 14.5px; }
.tab.on { color: var(--ink); border-bottom-color: var(--green); }
.msg { padding: 10px 14px; border-radius: 10px; font-size: 14.5px; margin: 10px 0; line-height: 1.45; }
.msg.err { background: #fdecea; color: #922b21; border: 1px solid #f5c6c0; }
.msg.ok { background: #eafaf1; color: #1e6b41; border: 1px solid #b7e4c7; }
.msg.info { background: #eef4fb; color: #1f4e79; border: 1px solid #cfe0f3; }
.note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.ok { background: #eafaf1; color: #1e6b41; } .pill.warn { background: #fef5e7; color: #9a5b00; } .pill.bad { background: #fdecea; color: #922b21; } .pill.grey { background: #eef2f1; color: #5b6b78; }

.account { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.mysess { display: grid; gap: 10px; margin-top: 12px; }
.mysess .item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fbfcfc; }
.mysess .item .info { flex: 1; min-width: 200px; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.plan .price { font-size: 26px; font-weight: 800; margin: 4px 0; }

.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 28px 16px 36px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .home .txt { display: none; }
  .bar .title { font-size: 15px; }
  .grid { grid-template-columns: 1fr; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .modal { padding: 8px; } .modal-box { margin: 8px 0; border-radius: 14px; }
  .modal-head, .modal-body { padding-left: 16px; padding-right: 16px; }
  .panel { padding: 16px; border-radius: 14px; }
  .hero p { font-size: 15px; }
}

/* Availability grid on the application form */
.avail-wrap { overflow-x: auto; }
.avail { border-collapse: collapse; width: 100%; min-width: 300px; font-size: 14px; }
.avail th, .avail td { border: 1px solid var(--line); padding: 6px 4px; text-align: center; }
.avail thead th { font-weight: 700; font-size: 13px; line-height: 1.25; background: #f6f8f7; }
.avail thead th span { display: block; font-weight: 400; color: var(--muted, #6b7785); font-size: 11.5px; }
.avail tbody th { text-align: left; padding-left: 8px; width: 48px; background: #f6f8f7; }
.avail td label { display: flex; align-items: center; justify-content: center; min-height: 32px; cursor: pointer; }
.avail td input { width: 19px; height: 19px; accent-color: var(--green); }
.avail td:has(input:checked) { background: #eaf7ef; }
