/* ============================================================
   booking.css — cruise_booking 系全ページ共通スタイル
   対象: cruise_booking, step2〜step6
   ============================================================ */

/* ── ページ基本 ── */
body {
    background-color: #f8f9fa;
}

.booking-page-wrapper {
    padding: 40px 0 80px;
}

/* ── Progress Bar ── */
.booking-steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    padding: 30px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.booking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 120px;
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
}

.step-circle .inner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #94a3b8;
}

/* Active step */
.booking-step.active .step-circle {
    background-color: rgba(var(--primary-color1-opc), 0.15);
}
.booking-step.active .step-circle .inner-dot {
    background-color: var(--primary-color1);
    width: 14px;
    height: 14px;
}

/* Completed step */
.booking-step.completed .step-circle {
    background-color: #10b981;
}
.booking-step.completed .step-circle .fa-check {
    color: white;
    font-size: 14px;
}
.booking-step.completed .step-circle .inner-dot {
    display: none;
}

.step-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.step-title {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

.booking-step.active .step-label,
.booking-step.active .step-title,
.booking-step.completed .step-label,
.booking-step.completed .step-title {
    color: var(--primary-color1);
}

.step-divider {
    flex: 0 1 80px;
    height: 2px;
    background-color: #e2e8f0;
    margin: 0 -20px;
    position: relative;
    top: -18px;
    z-index: 1;
}

/* ── ページタイトル・説明 ── */
.booking-title {
    font-family: var(--font-poppins);
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 20px;
}

.booking-description,
.booking-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 500;
}

/* ── サイドバー ── */
.sidebar-sticky {
    position: sticky;
    top: 130px;
}

.info-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.info-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--title-color);
    margin: 0;
}

.info-card-icon {
    font-size: 16px;
    color: var(--title-color);
    transition: transform 0.3s ease;
}

.info-card-content {
    margin-top: 25px;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    max-height: 1000px;
    opacity: 1;
    overflow: hidden;
}

.info-card.collapsed .info-card-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.info-card.collapsed .info-card-icon {
    transform: rotate(-90deg);
}

.info-card-summary {
    display: none;
    background: var(--white-color);
    padding: 15px 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.info-card.collapsed .info-card-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-card.collapsed .info-card-summary.text-only {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--title-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── 価格見積もりボックス ── */
.price-estimate-box {
    border-radius: 8px;
    margin-bottom: 20px;
}

.price-estimate-inner {
    background: var(--white-color);
    padding: 25px;
    border-radius: 4px;
}

.estimate-passenger-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 20px;
}

.estimate-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 8px;
}

.estimate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.estimate-item {
    font-size: 14px;
    color: var(--title-color);
    font-weight: 600;
    max-width: 65%;
    line-height: 1.4;
}

.estimate-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--title-color);
}

.estimate-price span,
.price-total-value span {
    font-size: 12px;
    font-weight: 600;
    margin-right: 4px;
}

.estimate-divider {
    border: none;
    border-top: 1px dashed #cbd5e1;
    margin: 5px 0;
}

.price-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white-color);
    padding: 20px;
    border-radius: 8px;
}

.price-total-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--title-color);
}

.price-total-value {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

/* ── 予約詳細リスト（サイドバー内） ── */
.reservation-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: contain;
    background: #f8fafc;
}

.reservation-cruise-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color1);
    line-height: 1.5;
    margin-bottom: 20px;
}

.reservation-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reservation-details-list li {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.reservation-details-list li i {
    margin-top: 8px;
    color: var(--primary-color1);
    width: 14px;
    text-align: center;
}

.reservation-details-list li a {
    color: var(--primary-color1);
    text-decoration: none;
}

.reservation-details-list li a:hover {
    text-decoration: underline;
}

/* ── 次へ進むボタン（2スパン構造） ── */
.next-btn-wrap {
    margin-top: 40px;
}

/* ── レスポンシブ ── */
@media (max-width: 991px) {
    .booking-steps-container {
        flex-wrap: wrap;
        padding: 20px 10px;
        gap: 15px;
        position: relative;
    }

    .booking-step {
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .step-circle {
        margin-bottom: 0;
        width: 24px;
        height: 24px;
    }

    .step-label,
    .step-title {
        display: none;
    }

    .step-divider {
        display: none;
    }

    .mobile-step-title {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 14px;
        font-weight: 700;
        color: var(--primary-color1);
        margin-top: 10px;
        order: 99;
    }

    .sidebar-sticky {
        position: relative;
        top: 0;
        margin-top: 40px;
    }
}

@media (min-width: 992px) {
    .mobile-step-title {
        display: none;
    }
}
