/* ------------------------------------------
   Nitto Denki Contact Form 7 Styles
   ------------------------------------------ */

/* ラジオボタンのレイアウト調整 */
.nitto-contact-form .wpcf7-list-item {
    display: inline-block;
    margin: 0 0.5rem 0.5rem 0;
}

.nitto-contact-form .wpcf7-list-item-label {
    display: inline-block;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.75rem; /* rounded-xl */
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
    color: #374151; /* gray-700 */
}

/* ラジオボタン本体のスタイル（簡易的なリセットと調整） */
.nitto-contact-form input[type="radio"] {
    margin-right: 0.5rem;
    accent-color: #5bb3d8; /* brand color */
}

/* ホバー時 */
.nitto-contact-form .wpcf7-list-item-label:hover {
    background-color: #eef8fc; /* brand-light */
    border-color: #bde0f2;
}

/* 選択されている時のスタイルについて
   注意: CF7の構造上、input:checked + label というセレクタが効かない場合があるため、
   JSを使わずに完全な「選択時スタイル」を当てるのは難しい場合がありますが、
   アクセントカラーによりチェックマーク自体は青くなります。
*/

/* エラーメッセージのスタイル調整 */
.nitto-contact-form .wpcf7-not-valid-tip {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

/* 送信ボタンのスタイル補完 */
.nitto-contact-form input[type="submit"] {
    cursor: pointer;
    border: none;
    background-color: #5bb3d8; /* brand */
}
.nitto-contact-form input[type="submit"]:hover {
    background-color: #4aa0c4; /* brand-dark */
}

/* ローディングスピナー位置調整 */
.nitto-contact-form .wpcf7-spinner {
    position: absolute;
    margin-left: 10px;
}

/* Hiddenクラス (Tailwindがない環境用) */
/*.hidden {
    display: none !important;
}*/

/* アニメーション */
.details-enter {
    animation: slideDown 0.3s ease-out forwards;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tailwindの色定義（環境によって反映されない場合のフォールバック） */
.bg-brand-light\/30 {
    background-color: rgba(238, 248, 252, 0.3);
}
.border-brand\/10 {
    border-color: rgba(91, 179, 216, 0.1);
}