/* ── UG査定ウィジェット スタイル ───────────────────────────────────────────── */

.ug-satei-wrap {
    max-width: 680px;
    margin: 0 auto;
    font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
}

/* ── ステップインジケーター ─────────────────────────────────────────────────── */

.ug-satei-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    gap: 0;
}

.ug-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ug-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ug-step-label {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    transition: color 0.3s;
}

.ug-step.active .ug-step-circle {
    background: #c8a45a;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(200, 164, 90, 0.2);
}

.ug-step.active .ug-step-label  { color: #c8a45a; font-weight: 600; }
.ug-step.done  .ug-step-circle  { background: #4caf50; color: #fff; }
.ug-step.done  .ug-step-label   { color: #4caf50; }

.ug-step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 8px;
    margin-bottom: 22px;
    transition: background 0.3s;
    min-width: 40px;
}

.ug-step-line.done { background: #4caf50; }

/* ── カード ─────────────────────────────────────────────────────────────────── */

.ug-satei-card {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.ug-satei-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.ug-satei-card .ug-subtitle {
    margin: 0 0 28px;
    font-size: 13px;
    color: #888;
}

/* ── フォームパーツ ─────────────────────────────────────────────────────────── */

.ug-form-group {
    margin-bottom: 20px;
}

.ug-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.ug-form-group select,
.ug-form-group input[type="number"],
.ug-form-group input[type="range"] {
    width: 100%;
    box-sizing: border-box;
}

.ug-form-group select,
.ug-form-group input[type="number"] {
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #1a1a1a;
    background: #fafafa;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s;
    outline: none;
}

.ug-form-group select:focus,
.ug-form-group input[type="number"]:focus {
    border-color: #c8a45a;
    background: #fff;
}

.ug-select-wrap {
    position: relative;
}

.ug-select-wrap::after {
    content: '▾';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    font-size: 16px;
}

/* スライダー */
.ug-range-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ug-range-wrap input[type="range"] {
    flex: 1;
    accent-color: #c8a45a;
    height: 6px;
    cursor: pointer;
}

.ug-range-value {
    min-width: 90px;
    text-align: right;
    font-size: 15px;
    font-weight: 700;
    color: #c8a45a;
}

/* ── ボタン ─────────────────────────────────────────────────────────────────── */

.ug-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.ug-btn-primary {
    background: #c8a45a;
    color: #fff;
    width: 100%;
    margin-top: 8px;
    font-size: 16px;
    padding: 16px;
}

.ug-btn-primary:hover { background: #b8943a; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(200,164,90,0.4); }
.ug-btn-primary:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }

.ug-btn-back {
    background: transparent;
    color: #888;
    font-size: 13px;
    padding: 0;
    margin-bottom: 20px;
    text-decoration: underline;
}

.ug-btn-back:hover { color: #333; }

/* ── 結果パネル ─────────────────────────────────────────────────────────────── */

.ug-result-badge {
    display: inline-block;
    background: #fff8ee;
    color: #c8a45a;
    border: 1px solid #e8d5a0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    margin-bottom: 16px;
}

.ug-result-car {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}

.ug-result-range {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 24px;
}

.ug-result-low,
.ug-result-high {
    font-size: 42px;
    font-weight: 800;
    color: #c8a45a;
    line-height: 1;
}

.ug-result-sep {
    font-size: 28px;
    color: #ccc;
    padding-bottom: 4px;
}

.ug-result-unit {
    font-size: 18px;
    color: #888;
    padding-bottom: 6px;
}

.ug-result-note {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 24px;
}

.ug-result-divider {
    border: none;
    border-top: 1px solid #f0ece4;
    margin: 24px 0;
}

.ug-result-cta-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.ug-result-cta-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.7;
}

.ug-btn-cta {
    background: #1a1a1a;
    color: #fff;
    width: 100%;
    font-size: 16px;
    padding: 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}

.ug-btn-cta:hover { background: #333; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); color: #fff; }

.ug-btn-retry {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #aaa;
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
}

/* ── ローディング ─────────────────────────────────────────────────────────────*/

.ug-loading {
    text-align: center;
    padding: 40px 0;
}

.ug-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0ece4;
    border-top-color: #c8a45a;
    border-radius: 50%;
    animation: ug-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes ug-spin { to { transform: rotate(360deg); } }

.ug-loading p { color: #888; font-size: 14px; }

/* ── アニメーション ──────────────────────────────────────────────────────────*/

.ug-panel { display: none; }
.ug-panel.active {
    display: block;
    animation: ug-fadein 0.3s ease;
}

@keyframes ug-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── レスポンシブ ─────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .ug-satei-card { padding: 24px 20px; }
    .ug-result-low, .ug-result-high { font-size: 32px; }
    .ug-step-line { min-width: 20px; }
    .ug-step-label { font-size: 9px; }
}
