:root{
  --bg:#f5f1e8;
  --surface:#fcfaf5;
  --card:#f9f6ef;
  --line:#ddd6c8;
  --text:#173b34;
  --muted:#6f786f;
  --primary:#0f5a46;
  --primary-strong:#0b4435;
  --primary-soft:#edf5f0;
  --shadow:0 14px 32px rgba(0,40,27,.06);
  --radius-xl:30px;
  --radius-lg:24px;
  --radius-md:18px;
  --radius-sm:14px;
  --max:1280px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

.top-auth-area{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width:220px;
}

.auth-status-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:10px 14px;
  border:1px solid rgba(23,59,52,.12);
  border-radius:16px;
  background:#fffdf8;
}

.auth-status-user{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.auth-status-user strong{
  font-size:14px;
  color:#173b34;
  line-height:1.2;
}

.auth-status-user span{
  font-size:12px;
  color:#70807a;
  line-height:1.2;
}

.auth-status-actions,
.auth-mini-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.mini-link-btn{
  height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid #d7ddd8;
  background:#fff;
  color:#173b34;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.mini-link-btn.primary{
  background:#11664f;
  color:#fff;
  border-color:#11664f;
}

.top-auth-area button.mini-link-btn{
  appearance:none;
}

@media (max-width: 900px){
  .site-header{
    flex-wrap:wrap;
  }

  .top-auth-area{
    width:100%;
    justify-content:flex-start;
  }

  .auth-status-box{
    flex-direction:column;
    align-items:flex-start;
  }

  .auth-status-actions,
  .auth-mini-actions{
    width:100%;
  }
}

body{
  margin:0;
  font-family:'Pretendard', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
select,
textarea{
  font:inherit;
}

.container{
  width:min(calc(100% - 32px), var(--max));
  margin:0 auto;
}

/* header */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(245,241,232,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(23,59,52,.08);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.brand-mark{
  width:44px;
  height:44px;
  border-radius:999px;
  background:linear-gradient(135deg,#79a55c,#0f5a46);
  flex:0 0 auto;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.2;
}

.brand-text strong{
  font-size:18px;
  font-weight:800;
}

.brand-text span{
  font-size:13px;
  color:var(--muted);
  margin-top:3px;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}

.nav-links a{
  font-size:15px;
  font-weight:700;
  color:var(--text);
  opacity:.92;
}

.nav-links a:hover,
.nav-links a.active{
  color:var(--primary);
}

/* page */
.page{
  padding:28px 0 56px;
}

/* hero */
.hero-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
  padding:26px 28px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:24px;
  margin-bottom:20px;
}

.hero-copy h1{
  margin:0 0 8px;
  font-size:clamp(2.1rem, 4vw, 3rem);
  line-height:1.08;
  letter-spacing:-.03em;
}

.hero-copy p{
  margin:0;
  color:var(--muted);
  font-size:16px;
}

.price-card{
  background:#f3ede0;
  border:1px solid rgba(23,59,52,.08);
  border-radius:24px;
  padding:22px 24px;
}

.price-card h3{
  margin:0 0 12px;
  font-size:20px;
  line-height:1.3;
}

.price-card ul{
  margin:0;
  padding-left:20px;
}

.price-card li + li{
  margin-top:6px;
}

/* cards */
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
  padding:30px 26px;
}

.card h2{
  margin:0 0 24px;
  font-size:22px;
  line-height:1.2;
  letter-spacing:-.02em;
}

.card + .card{
  margin-top:20px;
}

/* form */
.form-grid,
.section-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px 16px;
  align-items:start;
}

.full{
  grid-column:1 / -1;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}

.field-label{
  display:block;
  font-size:14px;
  font-weight:800;
  line-height:1.4;
}

.field-help{
  display:block;
  min-height:20px;
  font-size:13px;
  line-height:1.45;
  color:var(--muted);
  margin-top:6px;
}

.input,
.form-grid input:not([type="radio"]):not([type="checkbox"]),
.form-grid select,
.form-grid textarea,
.section-grid input:not([type="radio"]):not([type="checkbox"]),
.section-grid select,
.section-grid textarea{
  width:100%;
  min-height:56px;
  padding:0 16px;
  border-radius:16px;
  border:1px solid rgba(23,59,52,.14);
  background:#fff;
  color:var(--text);
  font-size:16px;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease;
  appearance:none;
}

.form-grid textarea,
.section-grid textarea{
  min-height:96px;
  padding:14px 16px;
  resize:vertical;
}

.form-grid input:not([type="radio"]):not([type="checkbox"])::placeholder,
.form-grid textarea::placeholder,
.section-grid input:not([type="radio"]):not([type="checkbox"])::placeholder,
.section-grid textarea::placeholder{
  color:#8d958f;
}

.form-grid input:not([type="radio"]):not([type="checkbox"]):focus,
.form-grid select:focus,
.form-grid textarea:focus,
.section-grid input:not([type="radio"]):not([type="checkbox"]):focus,
.section-grid select:focus,
.section-grid textarea:focus{
  border-color:#4b8e69;
  box-shadow:0 0 0 4px rgba(75,142,105,.10);
}

/* booking type */
.booking-type-group{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.booking-type-options{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}

.booking-type-card{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  min-height:72px;
  padding:0 18px;
  border:1.5px solid rgba(23,59,52,.16);
  border-radius:20px;
  background:#fff;
  cursor:pointer;
  transition:border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.booking-type-card:hover{
  border-color:#6da57e;
}

.booking-type-card input[type="radio"]{
  width:22px;
  height:22px;
  margin:0;
  flex:0 0 auto;
  accent-color:#1b8fca;
}

.booking-type-card span{
  display:block;
  font-size:16px;
  font-weight:800;
  line-height:1.3;
}

.booking-type-card.active,
.booking-type-card:has(input[type="radio"]:checked){
  border-color:#438460;
  background:var(--primary-soft);
  box-shadow:0 0 0 3px rgba(67,132,96,.08) inset;
}

/* dynamic */
.dynamic-section.is-hidden{
  display:none;
}

/* terms */
.checkline{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:24px;
  margin-top:2px;
}

.checkline input[type="checkbox"]{
  width:18px;
  height:18px;
  margin:0;
  flex:0 0 auto;
  accent-color:#1b8fca;
}

.checkline span{
  display:inline-block;
  font-size:14px;
  font-weight:700;
  line-height:1.5;
  color:var(--text);
}

/* summary */
.summary-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:22px 20px;
  background:#fff;
  border:1px solid rgba(23,59,52,.08);
  border-radius:20px;
}

.summary-box strong{
  display:block;
  font-size:15px;
  margin-bottom:8px;
}

#quotedAmount{
  font-size:28px;
  font-weight:800;
  line-height:1.1;
  letter-spacing:-.03em;
}

/* buttons */
.button-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 22px;
  border-radius:999px;
  border:1px solid transparent;
  background:#fff;
  color:var(--text);
  font-size:16px;
  font-weight:800;
  cursor:pointer;
  transition:transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  background:var(--primary);
  color:#fff;
}

.btn-primary:hover{
  background:var(--primary-strong);
}

.btn-secondary{
  border-color:rgba(23,59,52,.12);
  background:#fff;
}

.btn-secondary:hover{
  border-color:#9ab7a5;
}

/* policy links */
.policy-box{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid rgba(23,59,52,.08);
}

.policy-box strong{
  display:block;
  margin-bottom:10px;
  font-size:16px;
}

.policy-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px 14px;
}

.policy-links a{
  color:var(--primary);
  font-weight:800;
}

/* log */
.log-box{
  margin:0;
  min-height:160px;
  padding:18px;
  border-radius:18px;
  background:linear-gradient(135deg,#0f231d,#024333);
  color:#f5f7f6;
  overflow:auto;
  white-space:pre-wrap;
  font-size:14px;
  line-height:1.7;
}

/* responsive */
@media (max-width: 980px){
  .hero-card{
    grid-template-columns:1fr;
  }
}

@media (max-width: 820px){
  .form-grid,
  .section-grid,
  .booking-type-options{
    grid-template-columns:1fr;
  }
}

@media (max-width: 720px){
  .container{
    width:min(calc(100% - 20px), var(--max));
  }

  .nav{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .hero-card,
  .card{
    padding:20px 18px;
    border-radius:22px;
  }

  .summary-box,
  .button-row{
    flex-direction:column;
    align-items:stretch;
  }

  .button-row .btn,
  .summary-box .btn{
    width:100%;
  }

  #quotedAmount{
    font-size:24px;
  }
}
.button-row-end{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.button-row-end .btn{
  min-width:160px;
}

@media (max-width: 720px){
  .button-row-end{
    justify-content:stretch;
  }

  .button-row-end .btn{
    width:100%;
    min-width:0;
  }
}

.btn:disabled{
  opacity:.58;
  cursor:not-allowed;
  transform:none !important;
  box-shadow:none;
}

/* final confirmation modal */
.confirm-modal{
  position:fixed;
  inset:0;
  z-index:2000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.confirm-modal.show{
  display:flex;
}
.confirm-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.48);
}
.confirm-modal-card{
  position:relative;
  width:min(1040px, 100%);
  max-height:92vh;
  overflow:auto;
  background:#fff;
  border-radius:26px;
  padding:30px;
  box-shadow:0 30px 90px rgba(0,0,0,.22);
}
.confirm-modal-header{
  display:flex;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.confirm-modal-header h2{
  margin:0 0 8px;
  font-size:28px;
  color:var(--text);
}
.confirm-modal-header p{
  margin:0;
  color:var(--muted);
}
.confirm-modal-x{
  border:0;
  background:#edf3ee;
  border-radius:999px;
  width:42px;
  height:42px;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  color:var(--text);
}
.confirm-summary table{
  width:100%;
  border-collapse:collapse;
  margin:12px 0 20px;
}
.confirm-summary th,
.confirm-summary td{
  border:1px solid rgba(23,59,52,.12);
  padding:13px 15px;
  text-align:left;
  vertical-align:top;
}
.confirm-summary th{
  width:240px;
  background:#f5f8f5;
  font-weight:900;
}
.confirm-notice{
  white-space:pre-wrap;
  line-height:1.75;
  padding:20px 22px;
  border:1px solid rgba(23,59,52,.12);
  border-radius:20px;
  background:#fbfdfb;
  color:#32423a;
  max-height:320px;
  overflow:auto;
}
.confirm-checkline{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:12px;
  align-items:start;
  margin:22px 0 8px;
  font-size:18px;
  line-height:1.55;
}
.confirm-checkline input{
  margin-top:7px;
  width:18px;
  height:18px;
}
.confirm-error{
  color:#ba3434;
  font-weight:800;
  margin:8px 0 0;
}
.confirm-actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:22px;
}
@media (max-width:720px){
  .confirm-modal-card{padding:22px 18px;border-radius:22px;}
  .confirm-modal-header h2{font-size:23px;}
  .confirm-summary th{width:120px;}
  .confirm-actions{flex-direction:column;}
  .confirm-actions .btn{width:100%;}
}


/* v30 refund policy display */
.refund-consent-card {
  margin: 18px 0 6px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(23,59,52,.13);
  background: linear-gradient(135deg, rgba(236,244,235,.9), rgba(255,252,244,.86));
}
.refund-consent-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--primary);
}
.refund-consent-card p {
  margin: 10px 0 0;
  color: rgba(23,59,52,.72);
  line-height: 1.65;
}
.refund-summary-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}
.refund-summary-list li {
  padding: 12px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(23,59,52,.08);
  font-size: 13px;
  line-height: 1.35;
  color: #173b34;
}
.refund-summary-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--primary);
}
.refund-policy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--primary);
  font-weight: 900;
}
@media (max-width: 900px) {
  .refund-summary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .refund-summary-list {
    grid-template-columns: 1fr;
  }
}
