/**
 * 見積診断フォーム（/quotation）
 */

.quotation-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.quotation-page .wpcf7 h2 {
    font-size: 1.6rem;
    color: #1f2d3d;
    border-left: 4px solid #3b82f6;
    padding-left: 12px;
    margin-bottom: 16px;
}

.quotation-page .wpcf7 > form > p,
.quotation-page .quotation-intro {
    color: #374151;
    line-height: 1.9;
    margin-bottom: 24px;
}

.quote-field {
    margin-bottom: 22px;
}

.quote-field label {
    display: block;
    font-weight: 600;
    color: #1f2d3d;
    margin-bottom: 8px;
}

.quote-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: 2px;
}

.quote-badge--required {
    background: #dc2626;
    color: #fff;
}

.quote-badge--optional {
    background: #e5e7eb;
    color: #4b5563;
}

.quote-field input[type="text"],
.quote-field input[type="tel"],
.quote-field input[type="email"],
.quote-field select,
.quote-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    box-sizing: border-box;
}

.quote-field select {
    max-width: 360px;
}

.quote-field textarea {
    min-height: 140px;
}

.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.quote-submit {
    text-align: center;
    margin-top: 30px;
}

.quote-submit input[type="submit"] {
    display: inline-block;
    background: #3b82f6;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 9999px;
    padding: 14px 60px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.quote-submit input[type="submit"]:hover {
    background: #2563eb;
}

/* バリデーションエラー */
.quotation-page .wpcf7-not-valid {
    border-color: #dc2626 !important;
}

.quotation-page .wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 6px;
}

.quotation-page .wpcf7 form .wpcf7-response-output {
    border-radius: 8px;
    padding: 14px 16px;
    margin: 24px 0 0;
}

/* 段階表示グループ（Conditional Fieldsが hidden を制御） */
.quotation-page [data-class="wpcf7cf_group"] {
    margin-top: 4px;
}

@media (max-width: 600px) {
    .quotation-page {
        padding: 24px 16px 60px;
    }

    .quote-field select {
        max-width: 100%;
    }

    .quote-submit input[type="submit"] {
        width: 100%;
        padding: 14px 20px;
    }
}
