/* ================================================================
   TropicalBay Core – Booking Form CSS
================================================================ */
/* ── 스텝 인디케이터 ── */
.tb-booking-wrap { padding-top: 24px; }
.tb-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
}
.tb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}
.tb-step-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #e8eaed;
    color: #9aa0a8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.tb-step.active .tb-step-circle  { background: var(--tb-orange); color: #fff; box-shadow: 0 4px 12px rgba(245,137,31,0.4); }
.tb-step.done .tb-step-circle    { background: var(--tb-green); color: #fff; }
.tb-step-label { font-size: 0.72rem; font-weight: 600; color: #9aa0a8; white-space: nowrap; }
.tb-step.active .tb-step-label   { color: var(--tb-orange); }
.tb-step.done .tb-step-label     { color: var(--tb-green); }
.tb-step-line { flex: 1; height: 2px; background: #e8eaed; min-width: 24px; transition: background 0.2s; }
.tb-step-line.done { background: var(--tb-green); }

/* ── 패널 ── */
.tb-step-panel { display: none; animation: tb-panel-in 0.3s ease; }
.tb-step-panel.active { display: block; }
@keyframes tb-panel-in { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:none; } }
.tb-panel-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 24px; }

/* ── 프로그램 선택 ── */
.tb-program-selector { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.tb-prog-option {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--tb-surface);
    border: 2px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: 16px;
    cursor: pointer;
    transition: all var(--tb-transition);
    position: relative;
    outline: none;
}
.tb-prog-option:hover, .tb-prog-option:focus { border-color: var(--tb-orange); }
.tb-prog-option.selected { border-color: var(--tb-orange); background: #fff9f5; }
.tb-prog-option-img { width: 64px; height: 64px; border-radius: 10px; background-size: cover; background-position: center; flex-shrink: 0; }
.tb-prog-option-body { flex: 1; }
.tb-prog-option-body strong { display: block; font-weight: 700; margin-bottom: 4px; }
.tb-prog-meta  { font-size: 0.8rem; color: var(--tb-text-sub); display: block; }
.tb-prog-price { font-size: 0.85rem; color: var(--tb-orange); font-weight: 600; display: block; margin-top: 2px; }
.tb-prog-check {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--tb-border);
    color: transparent;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    transition: all var(--tb-transition);
    flex-shrink: 0;
}
.tb-prog-option.selected .tb-prog-check { background: var(--tb-orange); color: #fff; }

/* ── 날짜 입력 ── */
.tb-date-picker-wrap { margin-bottom: 24px; }
.tb-date-input { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7684' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 48px; }

/* ── 슬롯 그리드 ── */
.tb-slot-picker { margin-bottom: 28px; }
.tb-slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 400px) { .tb-slots-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── 스텝 액션 ── */
.tb-step-actions { display: flex; gap: 12px; margin-top: 32px; }
.tb-step-actions .tb-btn-primary,
.tb-step-actions .tb-btn-outline { max-width: none; }
.tb-step-actions .tb-btn-outline { flex: 0 0 auto; width: auto; min-width: 100px; }
.tb-step-actions .tb-btn-primary { flex: 1; }

/* ── 요약 바 ── */
.tb-booking-summary-bar {
    background: var(--tb-green-lt);
    border-radius: var(--tb-radius-sm);
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 0.88rem;
    color: var(--tb-green);
    font-weight: 600;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.tb-summary-item::after { content: '|'; margin-left: 12px; opacity: 0.4; }
.tb-summary-item:last-child::after { display: none; }

/* ── 인원 카운터 ── */
.tb-counter-group { display: flex; flex-direction: column; gap: 0; background: var(--tb-surface); border-radius: var(--tb-radius); box-shadow: var(--tb-shadow); overflow: hidden; margin-bottom: 20px; }
.tb-counter-row { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--tb-border); }
.tb-counter-row:last-child { border-bottom: none; }
.tb-counter-info strong { display: block; font-weight: 700; }
.tb-counter-price { font-size: 0.82rem; color: var(--tb-text-sub); display: block; margin-top: 2px; }
.tb-counter { display: flex; align-items: center; gap: 0; }
.tb-counter-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid var(--tb-border);
    background: var(--tb-surface);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--tb-transition);
    font-family: inherit;
}
.tb-counter-btn:hover { border-color: var(--tb-orange); color: var(--tb-orange); }
.tb-counter-input {
    width: 48px;
    text-align: center;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tb-text);
    background: transparent;
    -moz-appearance: textfield;
}
.tb-counter-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── 토글 (파파야 옵션) ── */
.tb-option-group { background: var(--tb-surface); border-radius: var(--tb-radius); padding: 20px; box-shadow: var(--tb-shadow); margin-bottom: 20px; }
.tb-option-toggle { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tb-option-toggle strong { display: block; font-weight: 700; margin-bottom: 4px; }
.tb-option-desc { font-size: 0.82rem; color: var(--tb-text-sub); margin: 0; }
.tb-toggle { position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0; }
.tb-toggle input { opacity: 0; width: 0; height: 0; }
.tb-toggle-slider {
    position: absolute; inset: 0;
    background: #e0e0e0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.tb-toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px; height: 22px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.tb-toggle input:checked + .tb-toggle-slider { background: var(--tb-orange); }
.tb-toggle input:checked + .tb-toggle-slider::before { transform: translateX(22px); }
.tb-papaya-qty-wrap { margin-top: 16px; display: flex; align-items: center; gap: 16px; }
.tb-papaya-price-label { font-size: 0.85rem; color: var(--tb-text-sub); }

/* ── 가격 요약 ── */
.tb-price-summary { background: var(--tb-bg); border-radius: var(--tb-radius-sm); padding: 16px 20px; margin-bottom: 20px; }
.tb-price-row { display: flex; justify-content: space-between; align-items: center; }
.tb-price-total strong { font-size: 1.2rem; color: var(--tb-orange); }

/* ── 결제 안내 ── */
.tb-info-box { background: var(--tb-green-lt); border-radius: var(--tb-radius-sm); padding: 18px; margin-bottom: 20px; }
.tb-info-box h4 { margin: 0 0 8px; font-size: 0.95rem; font-weight: 700; color: var(--tb-green); }
.tb-info-box p  { margin: 0 0 4px; font-size: 0.85rem; color: var(--tb-text-sub); }

/* ── 완료 화면 ── */
.tb-success-wrap { text-align: center; padding: 40px 20px; }
.tb-success-icon  { font-size: 4rem; margin-bottom: 16px; animation: tb-bounce 0.6s ease; }
@keyframes tb-bounce { 0%{transform:scale(0)} 60%{transform:scale(1.2)} 100%{transform:scale(1)} }
.tb-success-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 10px; }
.tb-success-desc  { color: var(--tb-text-sub); margin: 0 0 32px; }
.tb-booking-receipt {
    background: var(--tb-bg);
    border-radius: var(--tb-radius);
    padding: 24px;
    margin-bottom: 28px;
    text-align: left;
}
.tb-receipt-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--tb-border); }
.tb-receipt-row:last-child { border-bottom: none; font-weight: 700; }
.tb-success-actions { display: flex; flex-direction: column; gap: 12px; }

/* 버튼 비활성화 */
.tb-btn-primary:disabled,
.tb-btn-primary[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── ========================================== ── */
/* ── 신규 페이지 및 단체 예약 (어린이집) 스타일 ── */
/* ── ========================================== ── */

/* 1. 단체 예약 경고 배너 */
.tb-group-warning-banner {
    background: #fff5f5;
    border: 2px solid #ff8080;
    border-radius: var(--tb-radius);
    padding: 20px 24px;
    margin-bottom: 30px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(255, 128, 128, 0.15);
    animation: tb-pulse 2s infinite alternate;
}
@keyframes tb-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.01); }
}
.tb-warning-icon {
    font-size: 1.8rem;
    line-height: 1;
}
.tb-warning-content strong {
    display: block;
    font-size: 1.05rem;
    color: #e60000;
    margin-bottom: 6px;
}
.tb-warning-content p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--tb-text-sub);
    line-height: 1.4;
}

/* 2. 단체 예약 프로그램 그리드 */
.tb-group-program-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 10px;
}
.tb-group-prog-card {
    background: #fff;
    border: 2px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: 20px;
    cursor: pointer;
    transition: all var(--tb-transition);
    position: relative;
    box-shadow: var(--tb-shadow-sm);
}
.tb-group-prog-card:hover {
    border-color: var(--tb-green);
    transform: translateY(-3px);
    box-shadow: var(--tb-shadow);
}
.tb-group-prog-card.selected {
    border-color: var(--tb-green);
    background: #f0f7f3;
}
.tb-group-prog-card.selected::after {
    content: '✓';
    position: absolute;
    top: 16px; right: 16px;
    width: 24px; height: 24px;
    background: var(--tb-green);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
}
.tb-group-prog-card strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--tb-text);
}
.tb-group-prog-desc {
    font-size: 0.85rem;
    color: var(--tb-text-sub);
    margin: 0 0 16px;
    line-height: 1.5;
}
.tb-group-prog-prices {
    display: flex;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 600;
}
.tb-group-prog-prices strong {
    display: inline;
    color: var(--tb-green);
}

/* 부모참여 카드 스타일 */
.tb-parent-participation-card {
    border-style: dashed;
    background: #fafafa;
}
.tb-parent-participation-card:hover {
    border-color: var(--tb-orange);
}
.tb-parent-participation-card strong {
    color: var(--tb-text-sub);
}
.tb-parent-badge {
    display: inline-block;
    background: var(--tb-orange);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 10px;
}

/* 3. 부모참여 전화 예약 안내 상자 */
.tb-parent-inquiry-box {
    background: #fff9f5;
    border: 2px solid var(--tb-orange);
    border-radius: var(--tb-radius);
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 4px 15px rgba(245,137,31,0.1);
}
.tb-inquiry-box-inner h4 {
    margin: 0 0 12px;
    color: var(--tb-orange);
    font-size: 1.1rem;
    font-weight: 800;
}
.tb-inquiry-box-inner p {
    margin: 0 0 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--tb-text-sub);
}
.tb-inquiry-phone {
    font-size: 1.4rem !important;
    font-weight: 800;
    color: var(--tb-text) !important;
    margin: 16px 0 !important;
}
.tb-inquiry-phone a {
    color: var(--tb-orange);
    text-decoration: underline;
}
.tb-inquiry-sub {
    font-size: 0.85rem !important;
    color: #7f7f7f !important;
    background: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 4px solid var(--tb-orange);
    display: inline-block;
}

/* 4. 단체 견적 계산기 */
.tb-group-estimate-calculator {
    background: #f7f9fa;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: 24px;
    margin-top: 30px;
    box-shadow: var(--tb-shadow-sm);
}
.tb-group-estimate-calculator h3 {
    margin: 0 0 18px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--tb-green);
    border-bottom: 2px solid var(--tb-green-lt);
    padding-bottom: 10px;
}
.tb-estimate-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tb-estimate-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    color: var(--tb-text-sub);
}
.tb-estimate-divider {
    height: 1px;
    background: var(--tb-border);
    margin: 6px 0;
}
.tb-estimate-total {
    font-size: 1.15rem;
    color: var(--tb-text);
}
.tb-estimate-total strong:last-child {
    color: var(--tb-green);
    font-size: 1.3rem;
}

/* 5. 묘목 판매 마켓 스타일 */
.tb-sapling-hero, .tb-status-hero, .tb-franchise-hero {
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    border-radius: 24px;
    margin-bottom: 40px;
    color: #fff;
    text-align: center;
}
.tb-sapling-hero-content h1, .tb-status-hero-content h1, .tb-franchise-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 12px 0 20px;
}
.tb-sapling-hero-content p, .tb-status-hero-content p, .tb-franchise-hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}
.tb-sapling-badge, .tb-status-badge, .tb-franchise-badge {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tb-sapling-guide, .tb-sapling-catalog, .tb-franchise-benefits {
    padding: 60px 0;
}
.tb-guide-grid, .tb-catalog-grid, .tb-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.tb-guide-card, .tb-benefit-card {
    background: #f7f9fa;
    border-radius: var(--tb-radius);
    padding: 30px;
    transition: all var(--tb-transition);
}
.tb-guide-card:hover, .tb-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--tb-shadow);
}
.tb-guide-icon, .tb-benefit-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.tb-guide-card h4, .tb-benefit-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 12px;
}
.tb-guide-card p, .tb-benefit-card p {
    font-size: 0.9rem;
    color: var(--tb-text-sub);
    line-height: 1.6;
    margin: 0;
}

/* 묘목 카탈로그 카드 */
.tb-catalog-card {
    background: #fff;
    border-radius: var(--tb-radius);
    overflow: hidden;
    border: 1px solid var(--tb-border);
    box-shadow: var(--tb-shadow-sm);
    transition: all var(--tb-transition);
}
.tb-catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tb-shadow);
    border-color: var(--tb-green-lt);
}
.tb-catalog-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.tb-catalog-tag {
    position: absolute;
    top: 16px; left: 16px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
}
.tag-best { background: var(--tb-orange); }
.tag-new { background: var(--tb-green); }
.tb-catalog-body {
    padding: 24px;
}
.tb-catalog-body h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 10px;
}
.tb-catalog-excerpt {
    font-size: 0.88rem;
    color: var(--tb-text-sub);
    line-height: 1.5;
    margin: 0 0 18px;
}
.tb-catalog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #8c8c8c;
    border-top: 1px solid var(--tb-border);
    border-bottom: 1px solid var(--tb-border);
    padding: 12px 0;
    margin-bottom: 18px;
}
.tb-catalog-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--tb-orange);
    margin-bottom: 20px;
}

/* 6. 온실 실시간 현황 스타일 */
.tb-status-indicators {
    margin-bottom: 50px;
}
.tb-status-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 768px) { .tb-status-cards { grid-template-columns: 1fr; } }
.tb-status-card {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--tb-shadow-sm);
}
.tb-status-card .tb-gh-value.status-ok { color: var(--tb-green); font-weight: bold; }
.tb-status-card .tb-gh-value.status-warn { color: var(--tb-orange); font-weight: bold; }
.tb-status-card .tb-gh-value.status-bad { color: #d9534f; font-weight: bold; }

.tb-status-details {
    padding: 40px 0;
}
.tb-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 768px) { .tb-status-grid { grid-template-columns: 1fr; } }
.tb-status-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--tb-shadow);
}
.tb-status-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 20px;
}
.tb-status-text p {
    font-size: 0.95rem;
    color: var(--tb-text-sub);
    line-height: 1.7;
    margin: 0;
}
.tb-status-list {
    margin: 20px 0 0;
    padding-left: 20px;
    line-height: 1.8;
    font-size: 0.9rem;
    color: var(--tb-text-sub);
}

/* 가맹 문의 스타일 */
.tb-franchise-call-card {
    background: linear-gradient(135deg, #1A6B3C, #0F4B27);
    color: #fff;
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: var(--tb-shadow);
}
.tb-franchise-call-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 12px;
}
.tb-franchise-phone {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 20px 0;
}
.tb-franchise-phone a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 8px;
}
.tb-franchise-desc {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

