/* ===================================================================
   /request/ ご意見・リクエストフォーム専用スタイル
   共通トークン（--brand / --navy / --line ...）は /styles/main.css が定義
   =================================================================== */

.request-section {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.request-lead {
    margin: 0 0 22px;
    font-size: 0.92rem;
    color: #4a4d66;
}

.request-field {
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

.request-label,
.request-field > legend {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
}

.request-optional,
.request-required {
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    vertical-align: 2px;
}

.request-optional {
    background: #eef1f8;
    color: var(--muted);
}

.request-required {
    background: var(--brand-deep);
    color: #fff;
}

/* ===== カテゴリ選択（チップ型ラジオ） ===== */
.request-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.request-chip {
    position: relative;
    display: inline-flex;
}

.request-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.request-chip span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 0.86rem;
    color: #4a4d66;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}

.request-chip span:hover {
    border-color: var(--brand-light);
}

.request-chip input:checked + span {
    background: var(--brand-deep);
    border-color: var(--brand-deep);
    color: #fff;
}

/* キーボード操作でも選択位置が分かるようにする */
.request-chip input:focus-visible + span {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ===== 入力欄 ===== */
.request-select,
.request-section textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
}

.request-section textarea {
    resize: vertical;
    min-height: 150px;
}

.request-select:focus,
.request-section textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(55, 121, 251, 0.15);
}

.request-hint {
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.request-counter {
    margin-top: 6px;
    text-align: right;
    font-size: 0.8rem;
    color: var(--muted);
}

/* ===== 送信状態 ===== */
.request-status {
    min-height: 1.4em;
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: var(--muted);
}

.request-status.error {
    color: #c0392b;
    font-weight: 700;
}

.request-status.success {
    color: #1f7a4d;
    font-weight: 700;
}

/* ===== ボタン ===== */
.request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.request-btn {
    display: inline-block;
    padding: 11px 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #4a4d66;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.request-btn.primary {
    background: var(--brand-deep);
    border-color: var(--brand-deep);
    color: #fff;
}

.request-btn.primary:hover {
    background: var(--brand);
    border-color: var(--brand);
}

.request-btn:disabled {
    opacity: .55;
    cursor: default;
}

/* ===== 送信完了 ===== */
.request-done {
    padding: 22px 20px;
    border: 1px solid rgba(31, 122, 77, .25);
    border-radius: 14px;
    background: #f1faf4;
    text-align: center;
}

.request-done h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--navy);
}

.request-done p {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: #4a4d66;
}

.request-privacy {
    margin: 24px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    line-height: 1.8;
    color: var(--muted);
}

.request-privacy a {
    color: var(--brand-deep);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .request-section {
        padding: 20px 18px;
    }

    .request-actions .request-btn {
        flex: 1 1 100%;
        text-align: center;
    }
}
