/* crtravel.php - 試算頁 */
.calc-box {
    background: #f5f7fa;
    border: 1px solid #dde3ea;
    border-radius: 6px;
    padding: 24px 28px 20px;
    margin: 16px 0 24px;
    position: relative;
}
.calc-tabs {
    text-align: center;
    margin-bottom: 20px;
}
.calc-tab-btn {
    display: inline-block;
    width: 140px;
    padding: 9px 0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #1a3a6b;
    background: #fff;
    color: #1a3a6b;
    text-align: center;
}
.calc-tab-btn.active {
    background: #1a3a6b;
    color: #fff;
}
.calc-tab-btn:first-child { border-right: none; border-radius: 4px 0 0 4px; }
.calc-tab-btn:last-child  { border-left: none;  border-radius: 0 4px 4px 0; }
.calc-tab-pane { display: none; }
.calc-tab-pane.active { display: block; }
.calc-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
}
.calc-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}
.calc-group.grow { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 200px; }
.calc-group.fixed-date { min-width: 220px; }
.calc-label {
    font-size: 13px;
    color: #1a6baa;
    font-weight: bold;
    margin-bottom: 4px;
}
.calc-select {
    background: #e8f3fb;
    border: 1px solid #b8d6ec;
    border-radius: 4px;
    padding: 7px 30px 7px 10px;
    font-size: 15px;
    color: #333;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    width: 100%;
}
.calc-people-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.calc-people-group { min-width: 160px; }
.calc-people-group .calc-select { padding: 11px 30px 11px 10px; font-size: 16px; }
.calc-cabin-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 14px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.calc-cabin-row .grow { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 180px; }
.cabin-intro-btn {
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #888;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    color: #333;
    white-space: nowrap;
}
.cabin-intro-btn:hover { background: #eee; }
.calc-actions {
    text-align: center;
    margin-top: 8px;
    position: relative;
}
.calc-submit-btn {
    background: #1a8fa0;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}
.calc-submit-btn:hover { background: #157080; }
.copy-link-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.copy-link-btn .copied { color: #e07000; }

/* Step2 */
.step2-wrap { margin: 0 0 24px; }
.step2-conditions {
    background: #f5f7fa;
    border-left: 4px solid #1a3a6b;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #444;
    line-height: 1.8;
}
.step2-conditions .cond-title { font-weight: bold; color: #1a3a6b; margin-bottom: 4px; }
.step2-conditions a { color: #1a8fa0; }
.plan-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}
.plan-card-header {
    background: #f5a623;
    color: #fff;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: bold;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.plan-cheapest-badge {
    background: #fff;
    color: #f5a623;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
}
.plan-card-body { padding: 16px; }
.plan-name { font-size: 17px; font-weight: bold; color: #333; margin-bottom: 6px; }
.plan-price { font-size: 26px; font-weight: bold; color: #f5a623; margin-bottom: 4px; }
.plan-price-note { font-size: 13px; color: #666; margin-bottom: 10px; }
.plan-discount-btn {
    display: inline-block;
    padding: 3px 12px;
    font-size: 13px;
    border: 1px solid #aaa;
    border-radius: 3px;
    background: #fff;
    color: #333;
    cursor: pointer;
    margin-bottom: 10px;
}
.plan-breakdown { border-top: 1px solid #eee; padding-top: 10px; margin-top: 10px; }
.plan-breakdown-title { font-weight: bold; color: #1a3a6b; margin-bottom: 8px; font-size: 14px; }
.breakdown-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
}
.breakdown-port { color: #555; }
.cond-plan-count { color: #1a8fa0; font-size: 13px; }
.plan-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    margin-top: 12px;
}
.plan-rooms-label { font-size: 14px; color: #333; }
.plan-rooms-select { padding: 4px 8px; font-size: 14px; }
.plan-order-btn {
    background: #f5a623;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 24px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}
.plan-order-btn:hover { background: #d4891a; }

/* 艙房規格 table */
.cabin-spec-wrap { margin: 24px 0; }
.cabin-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.cabin-spec-table th {
    background: #1a3a6b;
    color: #fff;
    padding: 8px 10px;
    text-align: center;
    white-space: nowrap;
}
.cabin-spec-table td {
    padding: 7px 10px;
    border: 1px solid #ddd;
    text-align: center;
}
.cabin-spec-table tr:nth-child(even) td { background: #f5f7fa; }

/* 注意事項 */
.notes-container { margin: 24px 0; }
.notes-item { margin-bottom: 20px; }
.notes-title {
    font-size: 15px;
    font-weight: bold;
    color: #1a3a6b;
    border-left: 4px solid #1a3a6b;
    padding-left: 10px;
    margin-bottom: 8px;
}
.notes-text { font-size: 14px; color: #444; line-height: 1.8; padding-left: 4px; }

@media (max-width: 767px) {
    .calc-row { gap: 8px; }
    .calc-group.grow { min-width: 100%; }
    .calc-group.fixed-date { min-width: 100%; }
    .calc-people-group { min-width: 120px; }
    .calc-people-group .calc-select { padding: 9px 30px 9px 10px; }
    .cabin-spec-table { font-size: 12px; }
    .cabin-spec-table th, .cabin-spec-table td { padding: 5px 6px; }
}
