@charset "UTF-8";

/*
 * UGO学院高等部 - お問い合わせフォーム 追加スタイル
 * style.css のあとに読み込む。既存のスタイルは変更していない。
 */

/* --- ハニーポット（スパム対策用の隠し項目） -----------------------
 * 人間には見えず、フォーカスも当たらないようにする。
 * display:none はボットに検知されやすいため、画面外へ追い出す。 */
.hp-wrap {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- 送信結果のメッセージ ---------------------------------------- */
.form-alert {
    display: none;
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.form-alert.is-visible {
    display: block;
}

.form-alert--error {
    background: #fdf0ee;
    border: 1px solid #e0a89f;
    color: #9a3b2a;
}

.form-alert--success {
    background: #eef6f0;
    border: 1px solid #9ec3a9;
    color: #2f6b42;
}

.form-alert ul {
    margin: 8px 0 0;
    padding-left: 1.2em;
    list-style: disc;
}

/* --- 項目ごとのエラー表示 ---------------------------------------- */
.field-error {
    display: block;
    margin-top: 6px;
    color: #b3402c;
    font-size: 0.85rem;
    line-height: 1.6;
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    border-color: #c4573f;
    background: #fffaf9;
}

/* --- プライバシーポリシー同意チェックボックス ---------------------- */
.form-consent {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.8;
}

.checkbox-container input {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--clay);
    cursor: pointer;
}

.checkbox-container a {
    color: var(--clay-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.checkbox-container a:hover {
    color: var(--clay);
}

/* 注記の中のリンクもリンクだと分かるようにする */
.privacy-note a {
    color: var(--clay-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-consent:has(.is-invalid) {
    border-color: #c4573f;
    background: #fffaf9;
}

/* --- 送信中のボタン ---------------------------------------------- */
.btn.is-sending {
    opacity: 0.6;
    pointer-events: none;
}

/* --- 完了ページ / エラーページ ------------------------------------ */
.form-result {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 0 60px;
    text-align: center;
}

.form-result h1 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    line-height: 1.5;
}

.form-result p {
    margin-bottom: 20px;
    line-height: 2;
}

.form-result-list {
    display: inline-block;
    margin: 0 0 28px;
    padding: 16px 24px 16px 40px;
    border-radius: 8px;
    background: #fdf0ee;
    border: 1px solid #e0a89f;
    color: #9a3b2a;
    text-align: left;
    line-height: 1.9;
}

.form-result-tel {
    margin-top: 32px;
    font-size: 0.95rem;
}

@media screen and (max-width: 768px) {
    .form-result {
        padding: 24px 0 48px;
    }

    .form-result h1 {
        font-size: 1.3rem;
    }
}
