/* Исходные стили */
.custom-profile-form * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.custom-profile-form body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
}

.custom-profile-form .profile-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .custom-profile-form .profile-container {
        margin: 0;
        padding: 15px;
    }
}

.custom-profile-form .form-section {
    margin-bottom: 20px;
}

.custom-profile-form .section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.custom-profile-form .password-section {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

.custom-profile-form .form-group {
    margin-bottom: 15px;
}

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

.custom-profile-form input[type="text"],
.custom-profile-form input[type="email"],
.custom-profile-form input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.custom-profile-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 8px;
}

.custom-profile-form .checkbox-group input[type="checkbox"] {
    margin-top: 3px;
}

.custom-profile-form .tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
    color: #666;
}

.custom-profile-form .tooltip .tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: #333;
    color: white;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
}

.custom-profile-form .tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.custom-profile-form .domain-section {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.custom-profile-form .domain-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.custom-profile-form .domain-group:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .custom-profile-form .domain-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.custom-profile-form .button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.custom-profile-form .button.primary {
    background-color: #e91e63;
    color: white;
}

.custom-profile-form .button.secondary {
    background-color: #f0f0f0;
    color: #333;
}

.custom-profile-form .button:hover {
    opacity: 0.9;
}

.custom-profile-form .form-submit {
    text-align: right;
    margin-top: 20px;
}

.custom-profile-form .required:after {
    content: " *";
    color: red;
}

@media (max-width: 768px) {
    .custom-profile-form .form-submit {
        text-align: center;
    }

    .custom-profile-form .button {
        width: 100%;
    }

    .custom-profile-form .tooltip .tooltip-text {
        width: 250px;
    }
}