/* =========================================================
   MainYuk! — style.css (satu file untuk semua halaman)
   Halaman: login, index (beranda), pilih_lapangan,
            booking, booking-berhasil
   ========================================================= */

/* ---------- Variabel & reset ---------- */
:root {
  --blue: #1265C0;
  --blue-dark: #0d4f99;
  --navy: #1E3A5A;
  --navy-dark: #16304c;
  --grey: #575757;
  --chip: #D9D9D9;
  --soft: #D5E3F5;
  --star: #E3C51C;
  --line: #E3E8EF;
  --bg: #E9EEF5;
  --hint: #DCF23C;
  --hint-hover: #c0d425;
  --radius: 20px;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: #000;
  background: #ffff;
  overflow-x: hidden;
}

/* ---------- Card utama (pembungkus semua halaman) ---------- */
.site-card {
  width: 100%;
  max-width: 1040px;
  margin: 28px auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 10px 40px rgba(30, 58, 90, .15);
  overflow: hidden;
}

/* Navigasi dan hero dapat melebar hingga kedua sisi viewport. */
.site-card--full-chrome {
  margin-bottom: 0;
  overflow: visible;
}
.site-card--full-chrome .navbar,
.site-card--full-chrome .hero {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0px 14px 28px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.navbar .logo { position: static; flex: none; }
.navbar .logo img { width: auto; height: 50px; aspect-ratio: 3 / 2; border-radius: 25px; object-fit: cover; }
.menu { display: flex; gap: 28px; }
.menu a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  transition: color .15s;
}
.menu a:hover, .menu a.active { color: var(--blue); }
.auth { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.login-link { font-family: var(--font-head); font-weight: 500; font-size: 16px; color: var(--blue); }
.register {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  background: var(--blue);
  border-radius: 14px;
  padding: 6px 18px;
  transition: background .15s;
}
.register:hover { background: var(--blue-dark); }

/* ---------- Tombol umum ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn--outline { background: #fff; color: #000; border: 2px solid var(--grey); }
.btn--outline:hover { background: #f3f5f8; }
.btn--block { width: 100%; }
.btn svg { width: 24px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 36px;
  background: var(--navy);
  color: #fff;
}
.footer img { width: 120px; height: 120px; border-radius: 100px; object-fit: contain; flex: none; }
.footer p { font-weight: 700; font-size: clamp(20px, 3vw, 30px); line-height: 1.25; }

/* =========================================================
   LOGIN
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
}

.login-container {
    display: flex;
    width: 100%;
    min-height: 1024px;
}

.left-section {
    position: relative;
    width: 60.83%;
    min-height: 1024px;

    background-image: url("../images/img-1.jpeg");
    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(87, 87, 87, 0.6);
    backdrop-filter: blur(2px);
}

.left-section h1 {
    position: relative;
    z-index: 1;

    font-family: 'Poppins', sans-serif;
    font-size: 100px;
    font-weight: 800;
    line-height: 1.6;

    text-align: center;
    color: #FFFFFF;
}

.right-section {
    position: relative;
    width: 39.17%;
    min-height: 1024px;

    display: flex;
    justify-content: center;
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
}

.logo img {
    width: 129px;
    height: 77px;
    border-radius: 50px;
}

.login-content {
    width: 392px;
    margin-top: 200px;
}

.login-content h2 {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    color: #000000;
}

.subtitle {
    margin-top: 5px;
    margin-bottom: 65px;

    font-size: 20px;
    font-weight: 500;
    text-align: center;
    color: #575757;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;

    font-size: 24px;
    font-weight: 500;
    color: #000000;
}

.form-group input {
    width: 100%;
    height: 47px;

    padding: 0 18px;

    border: 1px solid #575757;
    border-radius: 12px;

    font-family: 'Inter', sans-serif;
    font-size: 15px;
    outline: none;
}

.form-group input:focus {
    border-color: #1265C0;
}

.form-group input::placeholder {
    color: #575757;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 12px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);

    background: none;
    border: none;
    cursor: pointer;

    color: #575757;
    font-size: 18px;
}

.forgot-password {
    text-align: right;
    margin-top: -18px;
    margin-bottom: 55px;
}

.forgot-password a {
    color: #575757;
    font-size: 15px;
    text-decoration: none;
}

.login-button {
    width: 100%;
    height: 59px;

    background-color: #1265C0;
    border: none;
    border-radius: 12px;

    color: #FFFFFF;
    font-size: 24px;
    font-weight: 700;

    cursor: pointer;
}

.login-button:hover {
    background-color: #0d4f99;
}

.divider {
    display: flex;
    align-items: center;
    gap: 20px;

    margin: 30px 0;
}

.divider span {
    flex: 1;
    height: 1px;
    background-color: #000000;
}

.divider p {
    font-size: 15px;
    color: #575757;
}

.google-button {
    width: 100%;
    height: 59px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background-color: #FFFFFF;
    border: 1px solid #000000;
    border-radius: 12px;

    font-size: 18px;
    font-weight: 700;

    cursor: pointer;
}

.google-button img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

@media (max-width: 900px) {

    .login-container {
        min-height: 100vh;
    }

    .left-section {
        display: none;
    }

    .right-section {
        width: 100%;
        min-height: 100vh;
        padding: 20px;
    }

    .login-content {
        width: 100%;
        max-width: 392px;
        margin-top: 180px;
    }

    .login-content h2 {
        font-size: 36px;
    }

    .logo {
        right: 20px;
    }

    .image_login {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .overlay h1 {
        font-size: larger;
    }
}



/* =========================================================
   BERANDA (index)
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 500px;
  padding: 48px 36px;
  background: #444;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(27, 35, 45, .62);
}
.hero-text { position: relative; z-index: 2; max-width: 520px; color: #fff; }
.hero-text h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 6vw, 56px); line-height: 1.25; margin-bottom: 14px; margin-left: 120px;}
.hero-text h1 .beda { color: var(--hint); }
.hero-text p { font-size: clamp(15px, 2vw, 18px); line-height: 1.55; margin-left: 120px}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; object-fit: cover; }
.hero-btn { position: absolute; z-index: 3; right: 36px; bottom: 32px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; margin-right: 50px}
.btn-book { background: var(--hint); color: black; font-size: 20px; font-weight: 600; padding: 12px 40px; border-radius: 40px; transition: background .15s; }
.btn-book:hover { background: var(--hint-hover); }
.btn-pesanan { font-size: 15px; font-weight: 600; color: #fff; }
.btn-pesanan:hover { text-decoration: underline; }

.section-title {
  padding: 32px 36px 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 36px);
  color: var(--navy);
}

.sport { margin: 20px 36px 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(30, 58, 90, .06); }
.sport:last-of-type { margin-bottom: 36px; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: #d9d9d9; }
.sport-title { margin-top: 18px; font-family: var(--font-head); font-weight: 800; font-size: clamp(24px, 3.5vw, 30px); color: var(--navy); }
.sport-desc { margin: 6px 0 16px; font-size: 15px; line-height: 1.55; }
.btn-find { display: flex; align-items: center; justify-content: center; gap: 12px; width: min(220px, 100%); height: 48px; margin-left: auto; background: var(--navy); color: #fff; border-radius: 14px; font-size: 16px; font-weight: 600; transition: .2s; }
.btn-find:hover { background: var(--navy-dark); transform: translateY(-2px); }
.arrow { position: relative; width: 20px; height: 3px; background: #fff; flex: none; }
.arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 9px; height: 9px; border-top: 3px solid #fff; border-right: 3px solid #fff; transform: rotate(45deg); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.stats strong { display: block; font-size: clamp(16px, 2.4vw, 22px); font-weight: 700; color: var(--navy); }
.stats span { display: block; font-size: 14px; color: var(--grey); }

/* =========================================================
   PILIH LAPANGAN
   ========================================================= */
.page-body { padding: 0 36px 36px; }
.title { padding-top: 32px; font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 5vw, 42px); line-height: 1.25; color: var(--navy); }
.subtitle { margin-top: 6px; font-size: clamp(15px, 2.2vw, 18px); color: var(--grey); }

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  margin-top: 22px;
  padding: 0 16px;
  border: 1px solid var(--grey);
  border-radius: 16px;
  color: var(--grey);
  cursor: text;
}
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 101, 192, .2); }
.search__icon { width: 24px; height: 24px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: #000; }
.search input::placeholder { color: var(--grey); opacity: 1; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip { height: 40px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--chip); font-size: 15px; cursor: pointer; transition: background .15s, color .15s; }
.chip:hover { background: #c4c4c4; }
.chip.is-active { background: var(--navy); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 26px; }
.court { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 4px 16px rgba(30, 58, 90, .08); transition: transform .15s, box-shadow .15s; }
.court:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(30, 58, 90, .15); }
.court__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #cfd8e3; }
.court__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.court__name { font-size: 18px; font-weight: 600; color: var(--navy); }
.court__meta { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.court__meta svg { width: 18px; height: 18px; flex: none; }
.court__meta .star { fill: var(--star); }
.court__meta .pin { fill: none; stroke: currentColor; stroke-width: 2; }
.court__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.court__price { font-size: 16px; font-weight: 600; color: var(--navy); }
.court__footer .btn { min-height: 40px; padding: 0 22px; font-size: 15px; }
.empty { display: none; margin-top: 26px; text-align: center; color: var(--grey); }

/* =========================================================
   FORM BOOKING
   ========================================================= */
.back { display: inline-flex; margin-top: 24px; padding: 6px; }
.back svg { width: 30px; height: 28px; }
.back + .title { padding-top: 4px; }

.court-summary { display: flex; gap: 16px; align-items: center; margin-top: 22px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 4px 16px rgba(30, 58, 90, .06); }
.court-summary .foto { flex: none; width: 150px; aspect-ratio: 16 / 10; border-radius: 12px; background: #cfd8e3; overflow: hidden; }
.court-summary .foto img { width: 100%; height: 100%; object-fit: cover; }
.court-summary .nama { font-size: 20px; font-weight: 600; color: var(--navy); }
.court-summary .meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; }
.court-summary .meta svg { width: 18px; height: 18px; flex: none; }
.court-summary .meta .star { fill: var(--star); }
.court-summary .meta .pin { fill: none; stroke: currentColor; stroke-width: 2; }

.booking-form { margin-top: 22px; }
.field-group { margin-bottom: 18px; }
.field-group > label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.field { position: relative; }
.field > svg.ico { position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); fill: none; stroke: #000; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.field input, .field select {
  width: 100%;
  height: 50px;
  padding: 0 40px 0 46px;
  border: 1px solid var(--grey);
  border-radius: 14px;
  background: #fff;
  font-size: 16px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 101, 192, .2); }
.field.has-chev::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid #000; border-bottom: 2.5px solid #000; transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.total { margin: 24px 0 18px; padding: 18px 22px; border-radius: var(--radius); background: var(--soft); color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.total h2 { font-size: 20px; font-weight: 800; }
.total p { font-size: 24px; font-weight: 700; }

/* =========================================================
   BOOKING BERHASIL
   ========================================================= */
.success { text-align: center; }
.success .sukses { width: clamp(110px, 22vw, 150px); height: auto; margin: 6px auto 0; }
.success h1 { margin-top: 20px; font-weight: 800; font-size: clamp(28px, 5vw, 42px); letter-spacing: -1px; }
.success .sub { margin-top: 6px; font-size: clamp(15px, 2.2vw, 18px); color: var(--grey); }
.detail { margin: 26px auto 24px; max-width: 560px; padding: 8px 26px; border-radius: 26px; background: var(--soft); color: var(--navy); text-align: left; }
.detail .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(30, 58, 90, .15); }
.detail .row:last-child { border-bottom: 0; }
.detail .k { font-family: 'Plus Jakarta Sans', var(--font-body); font-weight: 800; font-size: 16px; }
.detail .v { font-size: 16px; text-align: right; }
.success .btn { max-width: 420px; margin: 0 auto; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 860px) {
  .login-card { grid-template-columns: 1fr; min-height: 0; }
  .login-left { min-height: 160px; }
  .login-left h1 br { display: none; }
  .login-left h1 { font-size: 34px; }
  .login-right { padding: 20px 24px 32px; }

  .hero { padding: 40px 24px 130px; min-height: 380px; }
  .hero-img { opacity: .3; right: 0; }
  .hero-btn { left: 24px; right: 24px; align-items: center; bottom: 28px; }
  .section-title { padding: 28px 24px 4px; }
  .sport { margin: 18px 24px 0; }
  .page-body { padding: 0 24px 28px; }
}

/* HP */
@media (max-width: 640px) {
  .site-card { margin: 0; border-radius: 0; box-shadow: none; }
  body { background: #fff; }
  .login-page { padding: 0; }

  .navbar { flex-wrap: wrap; gap: 10px 14px; padding: 12px 16px; }
  .menu { order: 3; width: 100%; gap: 20px; overflow-x: auto; padding-bottom: 2px; }
  .menu a { font-size: 15px; white-space: nowrap; }
  .navbar .logo img { height: 42px; border-radius: 21px; }
  .login-link, .register { font-size: 15px; }
  .register { padding: 5px 14px; }

  .hero { padding: 32px 16px 120px; min-height: 340px; }
  .hero-btn { left: 16px; right: 16px; }
  .btn-book { padding: 11px 32px; font-size: 18px; }
  .section-title { padding: 24px 16px 4px; }
  .sport { margin: 16px 16px 0; padding: 14px; }
  .sport:last-of-type { margin-bottom: 24px; }
  .photos { grid-template-columns: 1fr; gap: 10px; }
  .btn-find { width: 100%; }
  .stats { gap: 6px; }
  .stats span { font-size: 12px; }

  .footer { flex-direction: column; text-align: center; gap: 14px; padding: 24px 16px; }
  .footer img { width: 96px; height: 96px; }

  .page-body { padding: 0 16px 24px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .chip { height: 36px; padding: 0 16px; font-size: 14px; }

  .court-summary { flex-direction: column; align-items: stretch; }
  .court-summary .foto { width: 100%; }

  .total { flex-direction: column; align-items: flex-start; gap: 4px; }
  .detail { padding: 4px 18px; }
  .detail .row { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 0; }
  .detail .v { text-align: left; }

  .login-right { padding: 20px 16px 28px; }
  .login-content h2 { font-size: 28px; }
}
