/**
 * Contact Form 7 ファイルアップロード確認画面のスタイル
 */

/* 確認画面モーダル */
.cf7-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.cf7-confirmation-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cf7-confirmation-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
    text-align: center;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

/* 確認フィールド */
.cf7-confirmation-fields {
    margin-bottom: 30px;
}

.cf7-confirmation-field {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid #007cba;
}

.cf7-confirmation-field label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.cf7-field-value {
    color: #666;
    line-height: 1.6;
    word-wrap: break-word;
}

/* ファイルプレビュー */
.cf7-file-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.cf7-file-preview {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background: #fff;
    min-width: 200px;
    max-width: 300px;
}

.cf7-file-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.cf7-file-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    word-break: break-all;
}

.cf7-file-size {
    color: #666;
    font-size: 12px;
}

.cf7-file-image-container {
    text-align: center;
    margin-top: 10px;
}

.cf7-file-image {
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

/* ボタン */
.cf7-confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.cf7-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.cf7-btn-primary {
    background-color: #007cba;
    color: white;
}

.cf7-btn-primary:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.cf7-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.cf7-btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .cf7-confirmation-content {
        padding: 20px;
        margin: 10px;
    }
    
    .cf7-confirmation-content h3 {
        font-size: 20px;
    }
    
    .cf7-file-previews {
        flex-direction: column;
    }
    
    .cf7-file-preview {
        max-width: 100%;
    }
    
    .cf7-confirmation-actions {
        flex-direction: column;
    }
    
    .cf7-btn {
        width: 100%;
    }
}

/* アニメーション */
.cf7-confirmation-modal {
    animation: fadeIn 0.3s ease;
}

.cf7-confirmation-content {
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* スクロールバーのスタイリング */
.cf7-confirmation-content::-webkit-scrollbar {
    width: 8px;
}

.cf7-confirmation-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.cf7-confirmation-content::-webkit-scrollbar-thumb {
    background: #007cba;
    border-radius: 4px;
}

.cf7-confirmation-content::-webkit-scrollbar-thumb:hover {
    background: #005a87;
}
