/* 見積フォーム専用CSS */


.estimate-form-wrapper {
    font-family: 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* サイドバー進捗表示 */
.progress-sidebar {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 200px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: fit-content;
    z-index: 1000;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.progress-title {
    color: #2c5aa0;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.progress-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.progress-item.active {
    background: #e6f2ff;
    border-left: 3px solid #3d7ad9;
}

.progress-item.completed {
    background: #e8f5e8;
    border-left: 3px solid #28a745;
}

.progress-number {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #e1e8f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

.progress-item.active .progress-number {
    background: #3d7ad9;
    color: white;
}

.progress-item.completed .progress-number {
    background: #28a745;
    color: white;
}

.progress-item.completed .progress-number::before {
    content: '✓';
}

.progress-label {
    font-size: 0.85rem;
    font-weight: 500;
}

/* メインコンテンツ */
.content-area {
    margin-left: 240px;
}

.estimate-header {
    text-align: center;
    padding:50px 20px 30px;
    border-radius: 15px;
    margin-top: 15px !important;
}

.estimate-header h1 {
    color: var(--vk-color-primary);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 10px;

}

.estimate-header p {
    font-size: 0.9rem;
    font-weight: 600;
    background-color: var(--vk-color-primary);
    color: #FFF;
    border-radius: 20px;
    padding: 3px 0;
    max-width: 500px;
    margin: -8px auto 10px;
}

.estimate-header span {
    display: block;
    font-size: 1rem;
}


/* フォームセクション */
.form-section {
    background: white;
    margin-bottom: 25px;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 5px solid #2882C7;
}

.section-number {
    background: #3d7ad9;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0 auto 10px;
    padding-left: 2px;
}

/* 選択カード */
.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.option-card {
    border: 2px solid #e1e8f0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
    position: relative;
    width: 100%;
}

.option-card:hover {
    border-color: #3d7ad9;
    background: #f0f5ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(61,122,217,0.2);
}

.option-card.selected {
    border-color: #3d7ad9;
    background: #e6f2ff;
    box-shadow: 0 0 0 2px rgba(61,122,217,0.3);
}

.option-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 12px;
    background: #3d7ad9;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    display: none;
}

.option-image {
    width: 80px;
    height: 80px;
    background: #f0f5ff;
    border-radius: 8px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #3d7ad9;
}

.option-label {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

/* フォーム要素 */
.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    line-height: 1.5em;
}

.form-input:focus {
    outline: none;
    border-color: #3d7ad9;
    box-shadow: 0 0 0 3px rgba(61,122,217,0.1);
}

.area-input-group {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 15px;
}

.area-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e1e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.unit-label {
    color: #666;
    font-weight: 500;
}

/* ファイルアップロード */
.file-upload {
    displey
    border: 2px dashed #3d7ad9;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: #f9fbff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    background: #f0f5ff;
}

.file-upload-icon {
    font-size: 3rem;
    color: #3d7ad9;
    margin-bottom: 10px;
}

/* 連絡方法 */
.contact-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: 2px solid #e1e8f0;
    border-radius: 8px;
    background: #fafbfc;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.contact-btn:hover {
    border-color: #3d7ad9;
    background: #f0f5ff;
}

.contact-btn.selected {
    border-color: #3d7ad9;
    background: #e6f2ff;
}

.contact-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 10px;
    background: #3d7ad9;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.contact-btn input[type="checkbox"] {
    display: none;
}

/* 概算表示 */
.estimate-display {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
    display: none;
    animation: slideDown 0.5s ease-out;
}

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

.estimate-amount {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
}

/* 送信セクション */
.submit-section {
    background: linear-gradient(135deg, #3d7ad9 0%, #2c5aa0 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
}

.submit-button {
    background: white;
    color: #3d7ad9;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

/* Contact Form 7スタイル */
.cf7-estimate-form {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-top: 20px;
}

.cf7-estimate-form h3 {
    color: #2c5aa0;
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #3d7ad9;
    padding-bottom: 5px;
}

.cf7-estimate-form label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    color: #333;
}

.cf7-estimate-form input[type="text"],
.cf7-estimate-form input[type="email"],
.cf7-estimate-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8f0;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 5px;
}

.cf7-estimate-form input:focus {
    border-color: #3d7ad9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(61,122,217,0.1);
}

.cf7-estimate-form input[type="submit"] {
    background: linear-gradient(135deg, #3d7ad9 0%, #2c5aa0 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.cf7-estimate-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.estimate-summary {
    background: #f0f5ff;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 5px solid #3d7ad9;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .progress-sidebar {
        position: fixed;
        top: 10px;
        right: 10px;
        left: auto;
        width: 180px;
        padding: 15px;
        z-index: 1001;
    }

    .content-area {
        margin-left: 0;
        margin-right: 200px;
        margin-top: 50px;
    }

    .progress-item {
        margin-bottom: 10px;
    }

    .progress-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .progress-sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 15px 15px 0 0;
        padding: 15px;
        max-height: none;
        z-index: 1002;
    }

    .progress-title {
        display: none;
    }

    .progress-item {
        display: inline-flex;
        margin-right: 10px;
        margin-bottom: 0;
        padding: 5px 10px;
        border-radius: 15px;
    }

    .progress-number {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        margin-right: 8px;
    }

    .progress-label {
        font-size: 0.75rem;
    }

    .content-area {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 80px;
    }

    .main-container {
        padding: 15px;
    }
    
.estimate-header h1 {
        font-size: 1.7rem;
    }
    
    .option-grid {
        grid-template-columns: 50% 50%;
    }
    
    .area-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-options {
        flex-direction: column;
    }
    
    .contact-btn {
        min-width: auto;
    }
}

/* スクロールバーカスタマイズ */
.progress-sidebar::-webkit-scrollbar {
    width: 4px;
}

.progress-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.progress-sidebar::-webkit-scrollbar-thumb {
    background: #e1e8f0;
    border-radius: 2px;
}

.progress-sidebar::-webkit-scrollbar-thumb:hover {
    background: #3d7ad9;
}

/* Contact Form 7 専用スタイル */
.cf7-estimate-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin: 20px 0;
}

.cf7-estimate-form h3 {
    color: #2c5aa0;
    font-size: 1.2rem;
    margin: 25px 0 15px 0;
    border-bottom: 2px solid #3d7ad9;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}


.form-row-half {
    display: flex;
    gap: 15px;
}

.form-row-half label {
    flex: 1;
}

.cf7-estimate-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.cf7-estimate-form input[type="text"],
.cf7-estimate-form input[type="email"], 
.cf7-estimate-form input[type="tel"],
.cf7-estimate-form select,
.cf7-estimate-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    line-height: 1.5em;
}

.cf7-estimate-form input:focus,
.cf7-estimate-form select:focus,
.cf7-estimate-form textarea:focus {
    outline: none;
    border-color: #3d7ad9;
    box-shadow: 0 0 0 3px rgba(61,122,217,0.1);
}

.estimate-summary-box {
    background: #f0f8ff;
    border: 2px solid #3d7ad9;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

.estimate-summary-box h4 {
    color: #2c5aa0;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.estimate-summary-box p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.cf7-estimate-form .wpcf7-checkbox {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.cf7-estimate-form .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-area {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.cf7-estimate-form input[type="submit"] {
    background: linear-gradient(135deg, #3d7ad9 0%, #2c5aa0 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(61,122,217,0.3);
}

.cf7-estimate-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(61,122,217,0.4);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .form-row-half {
        flex-direction: column;
        gap: 0;
    }
    
    .cf7-estimate-form {
        padding: 20px 15px;
    }
}
span.wpcf7-form-control.wpcf7-acceptance {
    display: inline-block;
    margin-right: 5px;
}

/* ファイルアップロード改善スタイル */
.file-upload-container {
    position: relative;
    margin-top: 15px;
}

.file-upload-area {
    border: 2px dashed #3d7ad9;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: #f9fbff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.file-upload-area:hover {
    background: #f0f5ff;
    border-color: #2c5aa0;
}

.file-upload-area.drag-over {
    background: #e6f2ff;
    border-color: #007cba;
    border-style: solid;
}

.file-upload-area.has-files {
    border-color: #28a745;
    background: #f8fff9;
}

.file-upload-icon {
    font-size: 3rem;
    color: #3d7ad9;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.file-upload-area:hover .file-upload-icon {
    transform: scale(1.1);
}

.file-upload-text p {
    margin: 5px 0;
}

.file-types {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

/* ファイル一覧 */
.file-list {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.file-list h4 {
    margin: 0 0 10px 0;
    color: #2c5aa0;
    font-size: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin: 5px 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
}

.file-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.file-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

.file-name {
    font-weight: 500;
    margin-right: 10px;
}

.file-size {
    color: #666;
    font-size: 0.8rem;
}

.file-remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.file-remove:hover {
    background: #c82333;
}

.clear-files-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.clear-files-btn:hover {
    background: #5a6268;
}

/* ドラッグ&ドロップオーバーレイ */
.drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61, 122, 217, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.drop-message {
    text-align: center;
    color: white;
}

.drop-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

.drop-message p {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

/* 成功状態 */
.file-upload-area.success .file-upload-icon {
    color: #28a745;
}

.file-upload-area.success {
    border-color: #28a745;
}


h4:where(:not(.wp-block-post-title)){

font-size: 1rem;
}