/* =============================================================================
   予約ページ専用スタイル
   ============================================================================= */

/* 予約セクション */
.booking-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f1f8e9, #e8f5e8);
    min-height: 100vh;
}

/* 予約コンテナ */
.booking-container {
    max-width: 800px;
    margin: 0 auto;
}

.booking-form {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

/* フィールドセット */
.booking-form fieldset {
    border: none;
    margin: 0 0 2.5rem;
    padding: 0;
}

.booking-form fieldset:last-of-type {
    margin-bottom: 2rem;
}

.booking-form legend {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary, #2d5a3d);
    margin-bottom: 1.5rem;
    padding: 0;
    width: 100%;
    border-bottom: 2px solid var(--color-border, #e0e0e0);
    padding-bottom: 0.5rem;
}

.booking-form .field,
.booking-form .form-row,
.booking-notes {
    scroll-margin-top: calc(var(--header-height, 80px) + 16px);
}

/* フォーム行レイアウト */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1rem;
}

/* 特殊荷物セクション：PC横並び・SP縦並び */
.special-items-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
}

/* 注意事項セクション */
.booking-notes {
    margin-bottom: 1.5rem;
    scroll-margin-top: 100px;
}

.booking-notes legend {
    font-size: var(--text-base, 1rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.notes-list {
    margin: 0.25rem 0 0 1.25rem;
    padding: 0;
    list-style: disc outside;
}

.notes-list li {
    font-size: var(--text-sm, 0.875rem);
    line-height: 1.5;
    color: var(--color-gray-700, #616161);
    margin-bottom: 0.25rem;
}

/* 同意チェックUI */
.form-consent {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--color-bg-light, #fafafa);
    border: 1px solid var(--color-gray-300, #e0e0e0);
    border-radius: var(--radius-md, 8px);
}

.form-consent .checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0;
}

.form-consent .checkbox-field input[type="checkbox"] {
    width: auto;
    height: auto;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.form-consent .checkbox-field span {
    cursor: pointer;
}

.form-consent .field-hint {
    margin: 0.25rem 0 0 2em;
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-gray-600, #757575);
}

.form-consent a {
    color: var(--color-primary-600, #4caf50);
    text-decoration: underline;
}

.form-consent a:hover {
    color: var(--color-primary-700, #388e3c);
}

@media (min-width: 769px) {
    .special-items-wrapper {
        grid-template-columns: 35% 1fr;
        align-items: start;
    }
}

.special-items-wrapper .field {
    margin: 0;
}

.special-items-wrapper .checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.special-items-wrapper .checkbox-field input[type="checkbox"] {
    width: auto;
    height: auto;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.special-items-wrapper .checkbox-field label {
    margin: 0;
    cursor: pointer;
    font-weight: 600;
}

.special-items-wrapper .field-hint {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.special-items-wrapper #special-item-details-field label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .special-items-wrapper .field-hint br {
        display: none;
    }
}

/* フォームアクション */
.form-actions {
    margin-top: 2rem;
    text-align: center;
}

/* 料金表示カード */
.price-summary-card {
  background: #fff;
  border: 1px solid var(--color-gray-300, #e0e0e0);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  padding: 24px 20px;
  margin-top: 1rem;
  text-align: center;
}

.price-summary-card .price-summary-title {
  color: var(--primary-dark, #2d5a3d);
  font-size: 1.15rem;
  margin: 0 0 .25rem;
}

.price-summary-card .pricing-price {
  margin: .5rem 0 .25rem;
}

.price-summary-card .price-amount {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-color, #4caf50);
}

.price-summary-card .price-currency {
  font-size: 1rem;
  margin-left: 4px;
  color: var(--primary-dark, #2d5a3d);
}

.price-summary-card .pricing-unit {
  color: var(--color-gray-700, #616161);
  font-size: .95rem;
}

/* 成功・エラーメッセージのスタイル調整 */
.booking-summary {
    margin: 1rem 0;
}

.tracking-number {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--color-primary, #2d5a3d);
    font-size: 1.1rem;
    background: rgba(76, 175, 80, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.success-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .booking-section {
        padding: 80px 0 60px;
    }
    
    .booking-form {
        padding: 1.5rem;
        margin: 0 1rem 2rem;
        border-radius: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .booking-form legend {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .booking-notes legend {
        font-size: 0.95rem;
    }
    
    .form-consent .field-hint {
        margin-left: 1.5em;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .success-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .booking-form {
        margin: 0 0.5rem 1rem;
        padding: 1rem;
    }
    
    .booking-form fieldset {
        margin-bottom: 2rem;
    }
    
    .booking-form legend {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .booking-notes legend {
        font-size: 0.9rem;
    }
    
    .form-consent .field-hint {
        margin-left: 1em;
    }
}
