/* =====================================================
   Air Flight Show – 自動見積もりフォーム
   estimate.css  v1.0.0
   ===================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Space+Mono:wght@400;700&family=Noto+Sans+JP:wght@300;400;700&display=swap');

/* ---------- CSS 変数 ---------- */
.afe-wrap {
  --afe-sky:       #050a18;
  --afe-deep:      #080f22;
  --afe-panel:     rgba(13,26,53,0.88);
  --afe-gold:      #c9a84c;
  --afe-gold-lt:   #e8c97a;
  --afe-gold-dim:  rgba(201,168,76,0.12);
  --afe-cyan:      #4ecdc4;
  --afe-cyan-dim:  rgba(78,205,196,0.12);
  --afe-text:      #e8e4da;
  --afe-text-dim:  rgba(232,228,218,0.5);
  --afe-border:    rgba(201,168,76,0.28);
  --afe-radius:    2px;
  --afe-font-body: 'Noto Sans JP', sans-serif;
  --afe-font-disp: 'Cormorant Garamond', serif;
  --afe-font-mono: 'Space Mono', monospace;
}

/* ---------- ベース ---------- */
.afe-wrap,
.afe-wrap * {
  box-sizing: border-box;
}

.afe-wrap {
  background: var(--afe-sky);
  color: var(--afe-text);
  font-family: var(--afe-font-body);
  padding: 56px 48px 80px;
  position: relative;
  overflow: hidden;
}


/* PC：コンテンツを中央寄せで最大幅制限 */
.afe-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* タブレット */
@media (max-width: 960px) {
  .afe-wrap { padding: 48px 32px 72px; }
}

/* モバイル */
@media (max-width: 600px) {
  .afe-wrap { padding: 36px 16px 60px; }
}

/* 星背景 */
.afe-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 8%  12%, rgba(255,255,255,.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 22% 38%, rgba(255,255,255,.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 38% 8%, rgba(255,255,255,.65) 0%, transparent 100%),
    radial-gradient(1px 1px at 52% 58%, rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 68% 22%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 72%, rgba(255,255,255,.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 42%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 14% 78%, rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 33% 62%, rgba(255,255,255,.45) 0%, transparent 100%),
    radial-gradient(1px 1px at 58% 82%, rgba(255,255,255,.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 46% 28%, rgba(201,168,76,.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 72% 52%, rgba(201,168,76,.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 18% 18%, rgba(78,205,196,.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 83% 8%,  rgba(78,205,196,.25) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.afe-wrap > * { position: relative; z-index: 1; }

/* ---------- セクション ---------- */
.afe-section { margin-bottom: 24px; }

.afe-step-title {
  font-family: var(--afe-font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--afe-gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.afe-step-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--afe-border), transparent);
}
.afe-num {
  width: 22px;
  height: 22px;
  border: 1px solid var(--afe-gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
}

/* ---------- プランカード ---------- */
.afe-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) { .afe-plan-grid { grid-template-columns: 1fr; } }

.afe-plan-card {
  background: var(--afe-panel);
  border: 1px solid var(--afe-border);
  border-radius: var(--afe-radius);
  padding: 26px 22px;
  cursor: pointer;
  transition: border-color .3s, transform .3s, box-shadow .3s, background .3s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  outline: none;
}
.afe-plan-card:hover {
  border-color: var(--afe-gold);
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(0,0,0,.45);
}
.afe-plan-card.selected {
  border-color: var(--afe-gold);
  background: rgba(201,168,76,.09);
  box-shadow: 0 0 32px rgba(201,168,76,.1), inset 0 0 20px rgba(201,168,76,.04);
}
.afe-plan-card.selected .afe-check-mark { opacity: 1; }

.afe-check-mark {
  opacity: 0;
  position: absolute;
  top: 13px;
  right: 13px;
  width: 24px;
  height: 24px;
  background: var(--afe-gold);
  color: var(--afe-sky);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: opacity .25s;
}
.afe-plan-tag  { font-family: var(--afe-font-mono); font-size: 8px; letter-spacing: 2px; color: var(--afe-cyan); margin-bottom: 7px; }
.afe-plan-name { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.afe-plan-area { font-size: 11px; color: var(--afe-text-dim); margin-bottom: 16px; }
.afe-plan-price { font-family: var(--afe-font-disp); font-size: 34px; font-weight: 600; color: var(--afe-gold-lt); line-height: 1; }
.afe-plan-price span { font-size: 12px; color: var(--afe-text-dim); font-family: var(--afe-font-body); font-weight: 300; }
.afe-plan-desc { margin-top: 10px; font-size: 11px; color: var(--afe-text-dim); line-height: 1.65; }

/* ---------- ステッパー ---------- */
.afe-stepper-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--afe-panel);
  border: 1px solid var(--afe-border);
  border-radius: var(--afe-radius);
  padding: 20px 28px;
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}
.afe-stepper-info { flex: 1; min-width: 140px; }
.afe-stepper-label { font-size: 13px; font-weight: 400; margin-bottom: 3px; }
.afe-stepper-sub   { font-size: 11px; color: var(--afe-text-dim); }
.afe-stepper-right { display: flex; align-items: center; gap: 14px; }

.afe-badge {
  font-family: var(--afe-font-mono);
  font-size: 10px;
  color: var(--afe-cyan);
  min-width: 80px;
  text-align: right;
}

.afe-counter {
  display: flex;
  align-items: center;
  border: 1px solid var(--afe-border);
}
.afe-cnt-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--afe-gold);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  font-family: var(--afe-font-mono);
  line-height: 1;
}
.afe-cnt-btn:hover:not(:disabled) { background: var(--afe-gold-dim); }
.afe-cnt-btn:disabled { color: rgba(201,168,76,.2); cursor: not-allowed; }
.afe-cnt-val {
  min-width: 50px;
  text-align: center;
  font-family: var(--afe-font-mono);
  font-size: 20px;
  color: var(--afe-text);
  border-left: 1px solid var(--afe-border);
  border-right: 1px solid var(--afe-border);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 映像オプション ---------- */
.afe-option-list { display: flex; flex-direction: column; gap: 10px; }

.afe-opt-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--afe-panel);
  border: 1px solid var(--afe-border);
  border-radius: var(--afe-radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color .25s, background .25s;
  backdrop-filter: blur(12px);
  outline: none;
}
.afe-opt-row:hover { border-color: var(--afe-gold); }
.afe-opt-row.selected {
  border-color: var(--afe-gold);
  background: var(--afe-gold-dim);
}

.afe-opt-check {
  width: 20px;
  height: 20px;
  border: 1px solid var(--afe-border);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  border-radius: 2px;
}
.afe-opt-row.selected .afe-opt-check {
  border-color: var(--afe-gold);
  background: var(--afe-gold);
}
.afe-opt-row.selected .afe-opt-check::after {
  content: '✓';
  color: var(--afe-sky);
  font-size: 12px;
  font-weight: 700;
}

.afe-opt-body { flex: 1; }
.afe-opt-name { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.afe-opt-desc { font-size: 11px; color: var(--afe-text-dim); line-height: 1.55; }
.afe-opt-price {
  font-family: var(--afe-font-disp);
  font-size: 20px;
  color: var(--afe-gold-lt);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

/* ---------- 特殊エリア ---------- */
.afe-ask-row {
  background: var(--afe-panel);
  border: 1px solid var(--afe-border);
  border-radius: var(--afe-radius);
  padding: 18px 22px;
  backdrop-filter: blur(12px);
}
.afe-ask-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  outline: none;
}
.afe-ask-box {
  width: 20px;
  height: 20px;
  border: 1px solid var(--afe-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  border-radius: 2px;
}
.afe-ask-box.checked { border-color: var(--afe-cyan); background: var(--afe-cyan-dim); }
.afe-ask-box.checked::after { content: '✓'; color: var(--afe-cyan); font-size: 12px; }

.afe-ask-note {
  display: none;
  margin-top: 12px;
  font-size: 11px;
  color: var(--afe-cyan);
  background: var(--afe-cyan-dim);
  border: 1px solid rgba(78,205,196,.2);
  border-radius: var(--afe-radius);
  padding: 12px 16px;
  line-height: 1.7;
}
.afe-ask-note.show { display: block; }

/* ---------- 見積もり結果 ---------- */
.afe-result {
  background: rgba(6,12,28,.97);
  border: 1px solid var(--afe-gold);
  border-radius: var(--afe-radius);
  padding: 32px 40px;
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0,0,0,.65), inset 0 1px 0 rgba(201,168,76,.12);
  margin-top: 40px;
  position: relative;
}
.afe-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 6px;
}
.afe-result-title {
  font-family: var(--afe-font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--afe-gold);
  text-transform: uppercase;
}
.afe-result-badge { font-size: 11px; color: var(--afe-text-dim); }

.afe-no-plan {
  text-align: center;
  color: var(--afe-text-dim);
  font-size: 13px;
  padding: 8px 0;
}

.afe-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--afe-border);
}
.afe-bline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  gap: 8px;
}
.afe-bline .afe-blabel { color: var(--afe-text-dim); }
.afe-bline .afe-bamount { font-family: var(--afe-font-mono); font-size: 11px; }
.afe-bline .afe-bnote  { font-size: 11px; color: var(--afe-cyan); font-style: italic; }

.afe-total-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.afe-total-label {
  font-family: var(--afe-font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--afe-gold);
}
.afe-total-label small {
  display: block;
  font-size: 9px;
  color: var(--afe-text-dim);
  letter-spacing: 1px;
  margin-top: 4px;
  font-family: var(--afe-font-body);
}
.afe-total-price {
  font-family: var(--afe-font-disp);
  font-size: 50px;
  font-weight: 600;
  color: var(--afe-gold-lt);
  line-height: 1;
}
.afe-tax {
  font-family: var(--afe-font-body);
  font-size: 11px;
  color: var(--afe-text-dim);
  font-weight: 300;
}

.afe-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.afe-btn-reset {
  padding: 14px 18px;
  border: 1px solid var(--afe-border);
  background: transparent;
  color: var(--afe-text-dim);
  font-family: var(--afe-font-body);
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
  border-radius: var(--afe-radius);
  white-space: nowrap;
}
.afe-btn-reset:hover { border-color: var(--afe-gold); color: var(--afe-gold); }

.afe-btn-cta {
  flex: 1;
  background: linear-gradient(135deg, var(--afe-gold), var(--afe-gold-lt));
  color: var(--afe-sky);
  border: none;
  padding: 14px 24px;
  font-family: var(--afe-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .3s;
  border-radius: var(--afe-radius);
  min-width: 200px;
}
.afe-btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(201,168,76,.3);
}

/* ---------- オーバーレイ・モーダル ---------- */
.afe-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4,8,20,.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}
.afe-overlay.open { display: flex; }

.afe-modal {
  background: var(--afe-deep);
  border: 1px solid var(--afe-gold);
  border-radius: var(--afe-radius);
  padding: 38px;
  max-width: 640px;
  width: 100%;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,.7);
  max-height: 90vh;
  overflow-y: auto;
  animation: afeFadeUp .3s ease;
}
@keyframes afeFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.afe-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--afe-text-dim);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.afe-modal-close:hover { color: var(--afe-text); }

.afe-modal-title {
  font-family: var(--afe-font-disp);
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 6px;
  color: var(--afe-text);
}
.afe-modal-sub {
  font-size: 12px;
  color: var(--afe-text-dim);
  margin-bottom: 22px;
  line-height: 1.7;
}

.afe-summary-box {
  background: var(--afe-gold-dim);
  border: 1px solid var(--afe-border);
  border-radius: var(--afe-radius);
  padding: 16px 20px;
  margin-bottom: 22px;
}
.afe-summary-total {
  font-family: var(--afe-font-disp);
  font-size: 26px;
  color: var(--afe-gold-lt);
  margin-bottom: 6px;
}
.afe-summary-detail { font-size: 11px; color: var(--afe-text-dim); line-height: 1.8; }

.afe-form-error {
  background: rgba(220,50,50,.15);
  border: 1px solid rgba(220,50,50,.4);
  color: #f88;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: var(--afe-radius);
  margin-bottom: 16px;
}

.afe-frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 480px) { .afe-frow { grid-template-columns: 1fr; } }

.afe-fgroup { margin-bottom: 14px; }

.afe-flabel {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--afe-text-dim);
  margin-bottom: 6px;
}
.afe-req { color: var(--afe-gold); }

.afe-finput,
.afe-ftextarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--afe-border);
  border-radius: 1px;
  padding: 11px 15px;
  color: var(--afe-text);
  font-family: var(--afe-font-body);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.afe-finput:focus,
.afe-ftextarea:focus { border-color: var(--afe-gold); }
.afe-ftextarea { min-height: 80px; resize: vertical; }

.afe-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--afe-gold), var(--afe-gold-lt));
  color: var(--afe-sky);
  border: none;
  padding: 16px;
  font-family: var(--afe-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 1px;
  transition: all .3s;
  margin-top: 6px;
}
.afe-submit-btn:hover { box-shadow: 0 6px 24px rgba(201,168,76,.3); }
.afe-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---- 確認画面 ---- */
.afe-confirm-header { margin-bottom: 20px; }

.afe-confirm-badge {
  font-family: var(--afe-font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--afe-cyan);
  border: 1px solid rgba(78,205,196,.35);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 1px;
  margin-bottom: 12px;
}

.afe-confirm-table {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--afe-border);
  border-radius: var(--afe-radius);
  overflow: hidden;
  margin-bottom: 22px;
}

.afe-confirm-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  border-bottom: 1px solid rgba(201,168,76,.12);
}
.afe-confirm-row:last-child { border-bottom: none; }

.afe-confirm-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--afe-text-dim);
  padding: 13px 16px;
  background: rgba(201,168,76,.05);
  display: flex;
  align-items: flex-start;
  border-right: 1px solid rgba(201,168,76,.12);
}

.afe-confirm-value {
  font-size: 13px;
  color: var(--afe-text);
  padding: 13px 16px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.afe-confirm-value.is-estimate {
  color: var(--afe-gold-lt);
  font-family: var(--afe-font-disp);
  font-size: 18px;
}

.afe-confirm-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.afe-submit-btn--confirm {
  flex: 1;
  min-width: 160px;
  margin-top: 0;
}

/* 送信完了 */
#afe-sent-screen {
  text-align: center;
  padding: 20px 0;
}
.afe-sent-icon  { font-size: 44px; color: var(--afe-gold); margin-bottom: 16px; }
.afe-sent-title { font-family: var(--afe-font-disp); font-size: 28px; font-weight: 300; color: var(--afe-gold-lt); margin-bottom: 10px; }
.afe-sent-sub   { font-size: 13px; color: var(--afe-text-dim); line-height: 1.7; margin-bottom: 24px; }
.afe-sent-close {
  display: inline-block;
  padding: 12px 32px;
}
