/* ===========================================
   AI見積もり フロントエンド スタイル
   THE THOR / wheel-paint.com 用
   =========================================== */

.aiwq-container {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
    color: #2c2c2c;
    box-sizing: border-box;
}

.aiwq-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 32px 28px;
    border-top: 4px solid #000;
}

/* ヘッダー */
.aiwq-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.aiwq-title {
    font-size: 1.6rem;
    margin: 0 0 8px;
    color: #1a1a1a;
    font-weight: 700;
}
.aiwq-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* セクション */
.aiwq-section {
    margin-bottom: 24px;
}
.aiwq-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 1rem;
    color: #1a1a1a;
}
.aiwq-required {
    background: #d63638;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: normal;
    vertical-align: middle;
}
.aiwq-hint {
    font-size: 0.85rem;
    color: #888;
    margin: 0 0 8px;
}

/* 入力欄 */
.aiwq-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: #fafafa;
    font-family: inherit;
}
.aiwq-input:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #fff;
}
.aiwq-textarea {
    resize: vertical;
    min-height: 80px;
}

/* ラジオボタン */
.aiwq-radios {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.aiwq-radio {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.aiwq-radio:hover {
    background: #f0f0f0;
    border-color: #aaa;
}
.aiwq-radio input[type="radio"] {
    margin-right: 10px;
}
.aiwq-radio input[type="radio"]:checked + span {
    font-weight: 600;
}

/* アップロードエリア */
.aiwq-uploader {
    border: 2px dashed #c0c0c0;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    background: #fafafa;
    transition: all 0.2s;
}
.aiwq-uploader.is-dragover {
    border-color: #1a1a1a;
    background: #f0f0f0;
}
.aiwq-upload-btn {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.aiwq-upload-btn:hover {
    background: #333;
}
.aiwq-upload-icon {
    font-size: 1.2rem;
}
.aiwq-previews {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    justify-content: center;
}
.aiwq-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
    border: 1px solid #ddd;
}
.aiwq-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.aiwq-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 送信ボタン */
.aiwq-submit-section {
    text-align: center;
    margin-top: 32px;
}
.aiwq-submit-btn {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    border: none;
    padding: 16px 48px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.aiwq-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.aiwq-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.aiwq-disclaimer {
    font-size: 0.8rem;
    color: #888;
    margin-top: 12px;
    line-height: 1.5;
}
.aiwq-disclaimer a {
    color: #555;
    text-decoration: underline;
}

/* ハニーポット（不可視） */
.aiwq-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* 結果表示 */
.aiwq-result {
    margin-top: 24px;
    padding: 24px;
    background: #f8f8f8;
    border-left: 4px solid #1a1a1a;
    border-radius: 6px;
}
.aiwq-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.aiwq-result-header h3 {
    margin: 0;
    font-size: 1.15rem;
}
.aiwq-result-icon {
    font-size: 1.4rem;
}
.aiwq-result-body {
    line-height: 1.7;
    white-space: pre-wrap;
    color: #2c2c2c;
}
.aiwq-result-cta {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.aiwq-cta-btn {
    background: #d63638;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    transition: background 0.2s;
}
.aiwq-cta-btn:hover {
    background: #b82626;
}
.aiwq-reset-btn {
    background: transparent;
    border: 1px solid #aaa;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    color: #555;
}

/* ローディング */
.aiwq-loading {
    text-align: center;
    padding: 40px 20px;
}
.aiwq-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #eee;
    border-top: 4px solid #1a1a1a;
    border-radius: 50%;
    animation: aiwq-spin 1s linear infinite;
    margin: 0 auto 16px;
}
@keyframes aiwq-spin {
    to { transform: rotate(360deg); }
}

/* レスポンシブ */
@media (max-width: 600px) {
    .aiwq-card {
        padding: 24px 18px;
    }
    .aiwq-title {
        font-size: 1.35rem;
    }
    .aiwq-submit-btn {
        width: 100%;
        padding: 14px;
    }
}