/* 
 * styles.css
 * ヨーロッパ鉄道専門店 予約フォーム用スタイルシート
 */

/* 共通 */
h1 {
    margin-bottom: 24px;
    padding: 16px;
    background-color: #6d5400;
    border-color: #876800;
    border-radius: 6px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

h2 {
    margin-bottom: 20px;
    padding: 5px 10px;
    border-bottom: 3px solid #ccc;
    font-size: 20px;
}

/* ヘッダー */
.header {
    margin-bottom: 20px;
}

.header ol {
    margin: 20px 0;
}

.header ol li {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 700;
}

.note {
    padding: 20px;
    background-color: #f5f4d9;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.note ul {
    padding-left: 20px;
}

.note li {
    margin-bottom: 6px;
}

.note em {
    font-style: normal;
    font-weight: 700;
    color: #c00;
}

.note a {
    font-weight: 700;
}

.list-table {
    display: block;
    margin: 10px 0;
    padding: 20px;
    border: 1px solid #999;
    border-radius: 6px;
}

.list-table li {
    list-style: none;
    padding: 0 10px 10px 10px;
    border-bottom: 1px dotted #999;
    line-height: 1.5;
}

.list-table li:last-child {
    border-bottom: none;
}

/* メイン */
.main {
    margin: 40px 0;
}

/* フォーム */
form .required {
    margin-left: 6px;
    padding: 3px 6px;
    background-color: #c00;
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
}

fieldset {
    padding: 20px;
    border: 1px solid #999;
    border-radius: 6px;
}

fieldset legend {
    float: none;
    display: inline-block;
    width: auto;
    margin: 0 20px;
    padding: 0 10px;
    border: 0;
    font-size: 18px;
}

form .form-group-radio {
    padding: .375rem 0;
}

form .zip .input-group {
    width: inherit;
}

form .zip .input-group input {
    border-top-right-radius: .375rem !important;
    border-bottom-right-radius: .375rem !important;
}

/* 郵便番号入力ボタン用のスタイル */
.input-group .address-lookup-btn {
    border-radius: .375rem !important;
    white-space: nowrap;
}

/* 郵便番号入力グループのエラー時のスタイル調整 */
.input-group .invalid-feedback {
    position: absolute;
    bottom: -25px;
    left: 10px;
    width: 100%;
}

/* 郵便番号入力フィールドがエラー時のみ下マージンを追加 */
.input-group .is-invalid ~ .invalid-feedback {
    display: block;
}

/* 郵便番号入力グループの下マージンを調整 */
.zip .input-group {
    margin-bottom: 0;
}

/* エラー時のみinput-groupに余白を追加 */
.zip .input-group:has(.is-invalid) {
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    form .train_bookings .col-lg-4,
    form .train_bookings .col-lg-2 {
       margin-bottom: .5rem;
    }
}

@media (max-width: 768px) {
    form .passengers .col-md-3 {
        margin-bottom: .5rem;
    }
}

.additional-info p em {
    font-style: normal;
    font-weight: 700;
    color: #c00;
}

/* 送信中画面 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.overlay-content {
    text-align: center;
}
