@charset "UTF-8";
/* 背景（/forms/{slug} と同じ） */
body.rmd_det {
    background-color: #e8e8e8;
    background-image: url("/images/mypage/order_form_bg.png");
    background-size: contain;
    background-repeat: repeat;
}

/* ラッパー：flex縦積み */
body.rmd_det div#wrapper {
    min-height: 100vh;
    flex-direction: column;
}

/* コンテンツ：縦横中央 */
body.rmd_det #contents {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}

body.rmd_det #main {
    width: 100%;
    max-width: 460px;
}

/* フッター */
body.rmd_det #footer {
    padding: 20px;
    text-align: center;
    border: none;
}
body.rmd_det .order_link_block {
    position: static !important;
    justify-content: center;
}

/* カード */
.rmd_card {
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    padding: 36px 36px 32px;
}

.rmd_card__title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.rmd_desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* フォーム */
.rmd_form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rmd_field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rmd_label {
    font-size: 13px;
    font-weight: bold;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rmd_required {
    font-size: 11px;
    font-weight: normal;
    background-color: #f05857;
    color: #fff;
    padding: 2px 6px;
    border-radius: 2px;
}

.rmd_input {
    height: 44px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    color: #333;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.rmd_input:focus {
    outline: none;
    border-color: #aaa;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}

/* 送信ボタン */
.rmd_submit {
    padding-top: 4px;
}

.rmd_btn {
    width: 100%;
    height: 48px;
    background-color: var(--brand, #E9551C);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
}

.rmd_btn:hover {
    opacity: 0.85;
}

/* 戻るリンク */
.rmd_back {
    margin-top: 20px;
    font-size: 13px;
    text-align: center;
}

.rmd_back a {
    color: #666;
    text-decoration: underline;
}

/* 送信完了 */
.rmd_success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: 4px;
    padding: 16px 20px;
    font-size: 14px;
    color: #065f46;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* エラー */
.rmd_error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 14px;
    color: #991b1b;
    margin-bottom: 20px;
}

@media screen and (max-width: 640px) {
    body.rmd_det #contents {
        align-items: flex-start;
        padding-top: 60px;
    }
    .rmd_card {
        padding: 28px 20px 24px;
    }
}
