
/* File: assets/css/style.css */

/* フォーム全体ラッパー */
#ezca-form-container {
    max-width: 600px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 24px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #333333;
}

/* ステッププログレス表示 */
.ezca-progress-container {
    text-align: right;
    margin-bottom: 12px;
}
.ezca-progress {
    font-size: 14px;
    color: #555555;
}

/* 各ステップ（共通スタイル） */
.ezca-step {
    display: none;
}
.ezca-field {
    margin-bottom: 20px;
    position: relative;
}
.ezca-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 14px;
}
.ezca-field input,
.ezca-field select,
.ezca-field textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.ezca-field input:focus,
.ezca-field select:focus,
.ezca-field textarea:focus {
    border-color: #3498db;
    outline: none;
}

/* エラーハイライト */
.ezca-error {
    border-color: #e74c3c !important;
}

/* ヘルプアイコン */
.ezca-help-icon {
    display: inline-block;
    margin-left: 6px;
    width: 16px;
    height: 16px;
    background: url('<?php echo EZCA_PLUGIN_URL; ?>/assets/images/help-icon.png') no-repeat center center;
    background-size: contain;
    vertical-align: middle;
    cursor: pointer;
}
.ezca-help-icon:hover:after {
    content: attr(data-help);
    position: absolute;
    top: -4px;
    left: 20px;
    background: #333333;
    color: #ffffff;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: pre-wrap;
    max-width: 240px;
    z-index: 999;
}

/* ナビゲーションボタン */
.ezca-buttons {
    text-align: right;
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.ezca-buttons button {
    background-color: #3498db;
    color: #ffffff;
    border: none;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.ezca-buttons button:hover {
    background-color: #2980b9;
}
.ezca-buttons .ezca-prev {
    background-color: #95a5a6;
}
.ezca-buttons .ezca-prev:hover {
    background-color: #7f8c8d;
}

/* 送信完了メッセージ */
.ezca-success-wrapper {
    text-align: center;
    padding: 40px 20px;
}
.ezca-success {
    font-size: 18px;
    color: #27ae60;
}

/* モバイルレスポンシブ対応 */
@media (max-width: 600px) {
    /* コンテナ余白を減らして幅を100%に */
    #ezca-form-container {
        padding: 16px;
        margin: 10px auto;
        box-shadow: none;
        border-radius: 0;
    }

    /* プログレス文字サイズを小さく */
    .ezca-progress {
        font-size: 12px;
    }

    /* フィールドと入力要素を全幅で縦積み */
    .ezca-field {
        margin-bottom: 16px;
    }
    .ezca-field label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    .ezca-field input,
    .ezca-field select,
    .ezca-field textarea {
        font-size: 16px;
        padding: 8px 10px;
    }

    /* ボタンを縦並び・全幅に */
    .ezca-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 20px;
    }
    .ezca-buttons button {
        width: 100%;
        padding: 12px 0;
        font-size: 16px;
    }
    .ezca-buttons .ezca-prev {
        margin-right: 0;
    }

    /* エラーハイライトの太さを強調 */
    .ezca-error {
        border-width: 2px;
    }

    /* ヘルプアイコンのポップアップ位置調整 */
    .ezca-help-icon:hover:after {
        top: auto;
        bottom: 100%;
        left: 0;
        white-space: normal;
    }

    /* フォーム全体の余白微調整 */
    #ezca-form {
        padding-bottom: 16px;
    }
}
