/*   
Theme Name: WEB DEV PRO Canvas
Version: 2.1
Author: Ivan Konkov
Author URI: http://web-dev-pro.ru/
*/

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
            background: #f2f2f2;
            color: #333;
            line-height: 1.5;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .container {
            width: 100%;
            max-width: 600px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.08);
            overflow: hidden;
        }

        .header {
            background: #4a90e2;
            color: white;
            padding: 40px 30px;
            text-align: center;
        }

        .header h1 {
            font-size: 28px;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .header p {
            font-size: 16px;
            opacity: 0.9;
        }

        .form-container {
            padding: 40px 30px;
        }

        .form-group {
            margin-bottom: 24px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #333;
            font-size: 14px;
        }

        label.required::after {
            content: ' *';
            color: #d6001c;
        }

        input[type="text"],
        input[type="tel"],
        input[type="date"],
        textarea {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #d0d0d0;
            border-radius: 4px;
            font-size: 16px;
            transition: all 0.2s;
            background: white;
            font-family: inherit;
        }

        input:hover,
        textarea:hover {
            border-color: #999;
        }

        input:focus,
        textarea:focus {
            outline: none;
            border-color: #0066ff;
            box-shadow: 0 0 0 1px #0066ff;
        }

        textarea {
            resize: vertical;
            min-height: 120px;
        }

        .file-upload-section {
            margin-bottom: 30px;
        }

        .file-upload {
            position: relative;
            margin-bottom: 12px;
        }

        .file-upload input[type="file"] {
            position: absolute;
            opacity: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
            z-index: 2;
        }

        .file-upload-label {
            display: block;
            padding: 24px;
            border: 2px dashed #d0d0d0;
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            background: #fafafa;
            position: relative;
        }

        .file-upload-label:hover {
            border-color: #0066ff;
            background: #f5f5f5;
        }

        .file-upload-label.has-file {
            border-style: solid;
            border-color: #00a550;
            background: #f0f8f4;
        }

        .file-upload-icon {
            font-size: 36px;
            margin-bottom: 8px;
            display: block;
            color: #666;
        }

        .file-upload-label.has-file .file-upload-icon {
            color: #00a550;
        }

        .file-upload-text {
            color: #333;
            font-size: 15px;
            margin-bottom: 4px;
            font-weight: 500;
        }

        .file-upload-hint {
            font-size: 13px;
            color: #999;
        }

        .uploaded-file-info {
            display: none;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            background: #f7f7f7;
            border-radius: 4px;
            margin-top: 12px;
            border: 1px solid #e5e5e5;
        }

        .uploaded-file-info.show {
            display: flex;
        }

        .file-name {
            color: #333;
            font-weight: 400;
            font-size: 14px;
            flex: 1;
            margin-right: 10px;
            word-break: break-word;
        }

        .remove-file {
            color: #999;
            cursor: pointer;
            font-size: 20px;
            padding: 4px 8px;
            transition: all 0.2s;
            line-height: 1;
        }

        .remove-file:hover {
            color: #d6001c;
            transform: scale(1.1);
        }

        .consent-box {
            background: #fff8dc;
            border: 1px solid #ffe4a1;
            padding: 20px;
            border-radius: 4px;
            margin-bottom: 30px;
        }

        .checkbox-group {
            display: flex;
            align-items: flex-start;
            cursor: pointer;
        }

        .checkbox-group input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin-right: 10px;
            margin-top: 2px;
            cursor: pointer;
        }

        .checkbox-group label {
            margin-bottom: 0;
            font-weight: normal;
            cursor: pointer;
            line-height: 1.5;
            font-size: 14px;
        }

        .checkbox-group label a {
            color: #0066ff;
            text-decoration: none;
        }

        .checkbox-group label a:hover {
            text-decoration: underline;
        }

        .btn-submit {
            width: 100%;
            padding: 14px 32px;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            background: #4a90e2;
            color: white;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn-submit:hover {
            background: #357abd;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
        }

        .btn-submit:active {
            transform: translateY(0);
        }

        .btn-submit:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .error-message {
            color: #d6001c;
            font-size: 12px;
            margin-top: 4px;
            display: none;
        }

        .error-message.show {
            display: block;
        }

        input.error,
        textarea.error {
            border-color: #d6001c;
        }

        .success-message {
            text-align: center;
            padding: 60px 30px;
            display: none;
        }

        .success-message.show {
            display: block;
        }

        .success-icon {
            width: 72px;
            height: 72px;
            background: #00a550;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            color: white;
            margin-bottom: 24px;
            animation: checkmark 0.5s ease;
        }

        @keyframes checkmark {
            0% {
                transform: scale(0);
            }
            50% {
                transform: scale(1.2);
            }
            100% {
                transform: scale(1);
            }
        }

        .success-message h2 {
            color: #333;
            margin-bottom: 12px;
            font-size: 24px;
            font-weight: 600;
        }

        .success-message p {
            color: #666;
            font-size: 16px;
            line-height: 1.6;
        }

        .loading {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
            margin-left: 8px;
            vertical-align: middle;
        }

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

        @media (max-width: 480px) {
            .container {
                margin: 10px;
            }
            
            .header {
                padding: 30px 20px;
            }
            
            .form-container {
                padding: 30px 20px;
            }
            
            .header h1 {
                font-size: 24px;
            }

            .logo {
                width: 40px;
                height: 40px;
                font-size: 20px;
            }
        }


.cd-upload-btn {
    display: block;
    color: #357abd;
    border: 1px solid #357abd;
    padding: 2px 10px;
    border-radius: 5px;
    width: fit-content;
    margin: 0 auto;
    margin-top: 10px;
    font-size: 14px;
}    

.cd-upload-btn:hover {
    background: #357abd;
    color: #fff;
}

.consent-box span {
    font-weight: 500;
    text-decoration: underline;
    color: #357abd;
    transition: all .3s ease;
}

.consent-box span:hover {
    color: #0066ff;
}

.dnd-upload-status .dnd-upload-details .dnd-progress-bar span {
    padding-right: 5px;
}