/**
 * event-request.css
 * 外部イベンター申請フォーム用スタイル
 * Cocoon テーマとの競合を避けるため .mem-er- プレフィックスで統一
 */

/* ── ラッパー ─────────────────────────────────────────── */
.mem-er-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 0 48px;
    font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', sans-serif;
    font-size: 15px;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

/* ── アラート ────────────────────────────────────────── */
.mem-er-alert {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    color: #795548;
    margin-bottom: 24px;
    line-height: 1.6;
}

.mem-er-alert--error {
    background: #ffebee;
    border-left-color: #ef5350;
    color: #b71c1c;
}

/* ── イントロ文 ──────────────────────────────────────── */
.mem-er-intro {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0 0 24px;
}

/* ── フォームカード ──────────────────────────────────── */
.mem-er-form {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

/* ── セクションラベル ────────────────────────────────── */
.mem-er-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* ── フィールド共通 ──────────────────────────────────── */
.mem-er-field {
    margin-bottom: 20px;
}

/* ── 2カラム行 ───────────────────────────────────────── */
.mem-er-row {
    display: flex;
    gap: 18px;
}

.mem-er-row .mem-er-field {
    flex: 1;
    min-width: 0;
}

/* ── ラベル ──────────────────────────────────────────── */
.mem-er-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 7px;
    line-height: 1.4;
}

.mem-er-req {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #ff7043;
    background: #fff3f0;
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 5px;
    vertical-align: middle;
}

.mem-er-opt {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #999;
    background: #f5f5f5;
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 5px;
    vertical-align: middle;
}

/* ── 入力フィールド ──────────────────────────────────── */
.mem-er-input,
.mem-er-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 13px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    line-height: 1.5;
    appearance: none;
    -webkit-appearance: none;
}

.mem-er-input:focus,
.mem-er-textarea:focus {
    outline: none;
    border-color: #ff9055;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 112, 69, 0.10);
}

.mem-er-input::placeholder,
.mem-er-textarea::placeholder {
    color: #bbb;
}

/* date/time input は幅を自然なサイズに */
.mem-er-input[type="date"],
.mem-er-input[type="time"] {
    max-width: 200px;
}

/* textarea */
.mem-er-textarea {
    resize: vertical;
    min-height: 120px;
}

/* 定員フィールド（数字 + "名"） */
.mem-er-input-with-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mem-er-input-with-unit .mem-er-input {
    flex: 1;
    min-width: 0;
}

.mem-er-unit {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── 区切り線 ────────────────────────────────────────── */
.mem-er-divider {
    height: 1px;
    background: #eee;
    margin: 28px 0;
}

/* ── 送信ボタン ──────────────────────────────────────── */
.mem-er-submit {
    display: block;
    width: 100%;
    padding: 15px 24px;
    margin-top: 28px;
    background: linear-gradient(135deg, #ff7a45 0%, #ffb347 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    font-family: inherit;
    line-height: 1;
    -webkit-appearance: none;
}

.mem-er-submit:hover {
    opacity: 0.88;
}

.mem-er-submit:active {
    transform: scale(0.985);
    opacity: 0.95;
}

/* ── フッター注記 ────────────────────────────────────── */
.mem-er-footer-note {
    font-size: 12px;
    color: #aaa;
    text-align: center;
    margin: 14px 0 0;
    line-height: 1.7;
}

/* ── 参加費タイプ選択（男女同額/男女別） ─────────────── */
.mem-er-fee-type {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.mem-er-fee-type-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    cursor: pointer;
    background: #fafafa;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    margin: 0;
    font-weight: 500;
    color: #555;
    line-height: 1.3;
}

.mem-er-fee-type-option:has(input:checked) {
    border-color: #ff9055;
    background: #fff7f3;
    font-weight: 600;
    color: #e65100;
}

.mem-er-fee-type-option input[type="radio"] {
    accent-color: #ff7043;
    margin: 0;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.mem-er-fee-block {
    margin-top: 4px;
}

/* サブラベル（男性/女性） */
.mem-er-label--sub {
    font-size: 12px;
    color: #666;
}

/* ── ヒント文 ────────────────────────────────────────── */
.mem-er-hint {
    font-size: 11px;
    color: #aaa;
    margin: 7px 0 0;
    line-height: 1.6;
}

/* ── ハニーポット（ユーザーには非表示） ─────────────── */
.mem-er-honeypot {
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

/* ── 申請完了画面 ────────────────────────────────────── */
.mem-er-complete {
    text-align: center;
    padding: 56px 24px 48px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.mem-er-complete-icon {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 20px;
}

.mem-er-complete-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 14px;
    line-height: 1.4;
}

.mem-er-complete-msg {
    font-size: 14px;
    color: #666;
    line-height: 1.9;
    margin: 0 0 28px;
}

.mem-er-back-link {
    display: inline-block;
    padding: 10px 24px;
    background: #f5f5f5;
    color: #555;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.mem-er-back-link:hover {
    background: #ebebeb;
    color: #333;
    text-decoration: none;
}

/* ── スマートフォン対応 ──────────────────────────────── */
@media (max-width: 600px) {
    .mem-er-form {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .mem-er-row {
        flex-direction: column;
        gap: 0;
    }

    .mem-er-fee-type {
        flex-direction: column;
        gap: 8px;
    }

    .mem-er-input[type="date"],
    .mem-er-input[type="time"] {
        max-width: 100%;
    }

    .mem-er-submit {
        font-size: 15px;
        padding: 14px 20px;
    }

    .mem-er-complete {
        padding: 40px 18px 36px;
    }

    .mem-er-complete-title {
        font-size: 20px;
    }
}
