/* Volley+ Womens Volleyball
   Based on bookings.volleyplus.com.au palette
   Deep navy + sand + ocean accent
*/
:root{
  --bg:#011679;
  --card:#06236e;
  --card2:#051f64;
  --text:#eaf0ff;
  --muted:#a9b6d6;
  --accent:#2bb6ff;
  --sand:#f6a41a;
  --danger:#ff5a6a;
  --ok:#31d0a5;
  --border:rgba(255,255,255,.08);
  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --cta-gradient: linear-gradient(135deg, #f6a41a 0%, #e8932a 100%);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color:var(--text);
  line-height:1.5;
}

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px; margin:0 auto; padding:18px}

/* ========== TOPBAR ========== */
.topbar{
  position:sticky; top:0;
  background: rgba(1,22,121,.95);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--border);
  z-index:10;
}
.topbar-inner{display:flex; align-items:center; justify-content:space-between; gap:12px}

.brand{display:flex; align-items:center; gap:10px}
.brand-logo{height:42px; width:auto; display:block}
.brand-text{
  font-weight:700;
  letter-spacing:.3px;
  background: #30b6f5;
  color: #011679;
  padding: 6px 12px;
  border-radius: 8px;
  border: 2px solid #f2ab3b;
  font-size: 14px;
}
@media (max-width: 520px){
  .brand-text{display:none}
  .brand-logo{height:36px}
}

.nav{display:flex; align-items:center; gap:10px}

/* ========== HERO ========== */
.hero-section{
  padding:40px 0 20px;
  text-align:center;
}
.hero-content{
  max-width:700px;
  margin:0 auto;
}
.hero-title{
  font-size:42px;
  font-weight:900;
  line-height:1.1;
  margin:0 0 16px;
  letter-spacing:-.5px;
}
.hero-accent{
  background: linear-gradient(135deg, var(--sand), #e8932a);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.hero-sub{
  font-size:18px;
  color:var(--muted);
  margin:0 0 24px;
  max-width:560px;
  margin-left:auto;
  margin-right:auto;
}
.hero-badges{
  display:flex;
  justify-content:center;
  gap:16px;
  margin-bottom:28px;
  flex-wrap:wrap;
}
.hero-badge{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:14px;
  font-size:14px;
}
.hero-badge-icon{font-size:20px}
.hero-badge strong{display:block}
.hero-badge .muted{font-size:12px; display:block}

@media (max-width:600px){
  .hero-title{font-size:30px}
  .hero-sub{font-size:16px}
  .hero-section{padding:24px 0 10px}
}

/* ========== SECTIONS ========== */
.section{
  padding:24px 0;
}
.section-title{
  font-size:24px;
  font-weight:900;
  margin:0 0 16px;
  text-align:center;
}

/* ========== CARDS ========== */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  box-shadow: var(--shadow);
}

/* ========== COMPETITION CARDS ========== */
.comp-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
@media (max-width:700px){
  .comp-grid{grid-template-columns:1fr}
}
.comp-card h3{
  margin:8px 0 12px;
  font-size:22px;
}
.comp-day{
  display:inline-block;
  padding:4px 12px;
  border-radius:8px;
  background: rgba(246,164,26,.12);
  color:var(--sand);
  font-weight:800;
  font-size:13px;
  letter-spacing:.3px;
  text-transform:uppercase;
}
.comp-details{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.comp-detail{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:6px 0;
  border-bottom:1px solid var(--border);
  font-size:14px;
}
.comp-detail:last-child{border-bottom:none}
.comp-label{
  color:var(--muted);
  font-weight:600;
  min-width:80px;
}
.comp-price{
  font-weight:800;
  color:var(--sand);
}
.comp-price small{
  font-weight:500;
  color:var(--muted);
}
.comp-cta-label{
  font-size:14px;
  font-weight:800;
  color:var(--accent);
  margin:14px 0 6px;
  padding-top:10px;
  border-top:1px solid var(--border);
}

/* ========== BUTTONS ========== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  font-size:14px;
  transition: filter .12s ease;
}
.btn:disabled,.btn[disabled]{
  opacity:.35;
  cursor:not-allowed;
  pointer-events:none;
}
.btn:hover{filter:brightness(1.08); text-decoration:none}
.btn-primary{
  background: linear-gradient(135deg, rgba(51,180,255,.28), rgba(51,180,255,.12));
  border-color: rgba(51,180,255,.55);
}
.btn-ghost{background: transparent; border-color:transparent}
.btn-sand{
  background: rgba(246,164,26,.12);
  border-color: rgba(246,164,26,.35);
  color:var(--sand);
}
.btn-cta{
  background: var(--cta-gradient);
  color:#011679;
  border:none;
  font-weight:800;
  font-size:16px;
  padding:14px 28px;
  border-radius:14px;
  box-shadow: 0 4px 16px rgba(246,164,26,.3);
}
.btn-cta:hover{filter:brightness(1.1)}
.btn-row{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}

/* ========== REGISTRATION FLOW ========== */
.card-register{
  max-width:640px;
  margin:0 auto;
}

.step-header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}
.step-header h3{margin:0}
.btn-back{font-size:14px; padding:6px 10px}

/* Registration type selector */
.reg-type-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:16px;
}
@media (max-width:600px){
  .reg-type-grid{grid-template-columns:1fr}
}
.reg-type-btn{
  text-align:left;
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  color:var(--text);
  border-radius:16px;
  padding:18px;
  cursor:pointer;
  transition: all .15s ease;
}
.reg-type-btn:hover{
  border-color: rgba(51,180,255,.45);
  background: rgba(51,180,255,.06);
}
.reg-type-icon{font-size:28px; display:block; margin-bottom:8px}
.reg-type-btn strong{font-size:16px; display:block; margin-bottom:6px}
.reg-type-sub{font-size:13px; color:var(--muted); line-height:1.4}

/* ========== FORMS ========== */
.form label{display:block; margin:10px 0; font-size:14px; font-weight:600}
.form input,.form select,.form textarea{
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
  font-size:14px;
  font-family:inherit;
  margin-top:4px;
}
.form input:focus,.form select:focus,.form textarea:focus{border-color: rgba(51,180,255,.65)}
.form select{
  appearance:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a9b6d6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  padding-right:36px;
  cursor:pointer;
}
.form select option{
  background:#1a1a2e;
  color:var(--text);
}
.form-inline{display:flex; gap:12px}
.form-inline label{flex:1; margin:0}
.form-inline input{flex:1}
@media (max-width:700px){
  .form-inline{flex-direction:column}
}
.form-textarea{
  resize:vertical;
  min-height:60px;
}

/* ========== TEAM BUTTONS ========== */
.team-btns{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.team-btn{
  padding:10px 16px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  transition: all .12s ease;
}
.team-btn:hover{filter:brightness(1.1)}
.team-btn.selected{
  border-color: rgba(246,211,138,.65);
  background: rgba(246,211,138,.10);
  color: var(--sand);
}

/* ========== ALERTS ========== */
.alert{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  margin:12px 0;
  font-size:14px;
}
.alert-error{border-color: rgba(255,90,106,.55); background: rgba(255,90,106,.08); color:#ff8a96}
.alert-info{border-color: rgba(51,180,255,.55); background: rgba(51,180,255,.08)}
.alert-success{border-color: rgba(49,208,165,.55); background: rgba(49,208,165,.08); color:#31d0a5}

/* ========== DIVIDER & NOTE ========== */
.divider{height:1px; background:var(--border); margin:14px 0}
.note{
  padding:12px 14px;
  border-radius:14px;
  border:1px dashed rgba(246,211,138,.35);
  background: rgba(246,211,138,.06);
  color: rgba(246,211,138,.95);
  margin-top:10px;
  font-size:14px;
  line-height:1.5;
}
.muted{color:var(--muted)}
.small{font-size:13px}

/* ========== PAY CARD ========== */
.pay-card{
  background: linear-gradient(135deg, rgba(232, 189, 109, .08) 0%, rgba(232, 189, 109, .02) 100%);
  border:1px solid rgba(232, 189, 109, .2);
}
.pay-breakdown{display:flex; flex-direction:column; gap:8px}
.pay-row{display:flex; justify-content:space-between; padding:8px 0}
.pay-amount{font-size:22px; font-weight:900; color:var(--sand)}

/* ========== SQUARE CARD FORM ========== */
.square-card{
  background:#fff;
  border-radius:12px;
  padding:4px 8px;
  border:1px solid rgba(0,0,0,.08);
  overflow:hidden;
}
.square-card iframe{
  display:block;
  max-height:50px;
}

/* ========== LOGOUT LINK ========== */
.logout-link{
  font-size:13px;
  color:var(--danger);
  text-decoration:underline;
  margin-left:4px;
}
.logout-link:hover{
  color:#ff8a96;
}

/* ========== SUCCESS ========== */
.success-icon{
  width:80px;
  height:80px;
  border-radius:50%;
  background: rgba(49, 208, 165, .15);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 16px;
  color:#31d0a5;
}

/* ========== FAQ ========== */
.faq-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  max-width:700px;
  margin:0 auto;
}
.faq-item{padding:16px 18px}
.faq-item strong{font-size:15px; display:block; margin-bottom:6px}
.faq-item p{margin:0; font-size:14px; line-height:1.5}

/* ========== FOOTER ========== */
.footer{
  border-top:1px solid var(--border);
  margin-top:30px;
  padding:14px 0 24px;
  color:var(--muted);
  font-size:13px;
}
.footer-inner{display:flex; justify-content:space-between; gap:12px}
@media (max-width: 700px){
  .footer-inner{flex-direction:column}
}

/* ========== LOADING SPINNER ========== */
.spinner{
  display:inline-block;
  width:18px;
  height:18px;
  border:2px solid rgba(255,255,255,.2);
  border-top-color: var(--accent);
  border-radius:50%;
  animation: spin .7s linear infinite;
  vertical-align:middle;
  margin-right:6px;
}
@keyframes spin{to{transform:rotate(360deg)}}

/* ========== NAME CHECK RESULT ========== */
#nameCheckResult{
  font-size:14px;
  font-weight:700;
  margin-top:6px;
}
.name-ok{color:var(--ok)}
.name-taken{color:var(--danger)}
