

/* Start:/bitrix/templates/proopt30_default_tdf/components/bitrix/form.result.new/partners/style.css?17760670457696*/
/* form-container */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* form-messages */
.form-messages {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 4px;
    background: #f8f9fa;
}

.form-messages.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-messages.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* form-group */
.form-group {
    margin-bottom: 5px !important;
}

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

.form-required {
    color: #dc3545;
    margin-left: 3px;
}

/* form-field */
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"] {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    transition: border-color 0.3s ease !important;
    box-sizing: border-box !important;
	background: #D1D1D1 !important;
}
.form-field textarea {
    background: #fff;
    border-radius: 10px;
    outline: none;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    resize: none;
    padding: 18px 0 0 20px;
    width: 100% !important;
    height: 50% !important;
	background: #D1D1D1 !important;
}

.form-field input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.form-field input.error {
    border-color: #dc3545;
}

/* checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-text {
    font-size: 14px;
    color: #555;
}

.checkbox-label .license-link-work {
	font-size: 11px;
    line-height: 12px;
}

/* error message */
.form-error-message {
    font-size: 12px;
    color: #dc3545;
    margin-top: 5px;
    min-height: 18px;
}
.form-footer {
	text-align:center;
}
/* submit button */
.form-submit-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #EC1D25;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-submit-btn:hover {
    background: #0056b3;
}

.form-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* loading state */
.form-submit-btn.loading {
    position: relative;
    padding-right: 40px;
}

.form-submit-btn.loading::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
/* Стили для поля телефона с маской */
.form-field input.phone-mask {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 16px;
    letter-spacing: 0.5px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.362 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.338 1.85.573 2.81.7A2 2 0 0 1 22 16.92z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 35px;
}

.form-field input.phone-mask:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.form-field input.phone-mask.error {
    border-color: #dc3545;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23dc3545" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>');
}

.form-field input.phone-mask.success {
    border-color: #28a745;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2328a745" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
}

/* Стили для placeholder */
.form-field input.phone-mask::placeholder {
    color: #999;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: normal;
}
/* Стили для поля email */
.form-field input.email-field {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 35px;
}

.form-field input.email-field:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.form-field input.email-field.error {
    border-color: #dc3545;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23dc3545" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>');
}

.form-field input.email-field.success {
    border-color: #28a745;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2328a745" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
}

/* Placeholder для email */
.form-field input.email-field::placeholder {
    color: #999;
    font-style: italic;
}
/* Honeypot field - скрыто от пользователей */
.ajax-form [name^="hp_"] {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Благодарность */
/*.thanks-block {
	text-align: center;
    margin-bottom: 32px;
}

.thanks-block h2 {
	font-size: 24px;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 12px;
}*/


/* responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 15px;
    }
    
    .form-submit-btn {
        width: 100%;
        padding: 12px;
    }
	.form-field input.phone-mask {
        font-size: 16px; /* Предотвращает масштабирование на iOS */
        padding-right: 30px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 12px;
    }
    
    .form-label {
        font-size: 13px;
    }
    
    .form-field input {
        font-size: 13px;
        padding: 8px 10px;
    }
}
/* End */
/* /bitrix/templates/proopt30_default_tdf/components/bitrix/form.result.new/partners/style.css?17760670457696 */
