@charset "UTF-8";

.order-page-container {
    padding-top: 60px;
    padding-bottom: 100px;
    max-width: 800px;
}

.order-form-wrapper {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.order-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

/* 商品サマリーエリア */
.order-item-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.summary-img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: #e9ecef;
}

.summary-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-mini {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #adb5bd;
}

.summary-info .badge-mto {
    display: inline-block;
    padding: 2px 8px;
    background-color: #fff4e6;
    color: #e67700;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 8px;
    border: 1px solid #ffd8a8;
}

.summary-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.summary-info .price {
    font-weight: bold;
    color: var(--text-main);
}

.summary-info .price span {
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--text-muted);
}

/* 注意書きパネル */
.notice-panel {
    background: #e8f4fd;
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    border-radius: 0 4px 4px 0;
    margin-bottom: 30px;
}

.notice-panel h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-panel p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* フォーム要素 */
.error-message {
    background: #ffe3e3;
    color: #c92a2a;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    font-weight: bold;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.required {
    background: #e03131;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.optional {
    background: #868e96;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.field-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    width: 100%;
    max-width: 300px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: bold;
}

/* 送信完了画面 */
.success-state {
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 60px 20px;
}

.success-icon {
    margin-bottom: 20px;
}

.success-state h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.success-state p {
    color: var(--text-muted);
    line-height: 1.8;
}

.mt-4 { margin-top: 1.5rem; }

/* スマホ対応 */
@media (max-width: 768px) {
    .order-form-wrapper {
        padding: 25px 20px;
    }
    .order-item-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .summary-img {
        width: 100%;
        height: 150px;
    }
    .btn-submit {
        max-width: 100%;
    }
}