.profile-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    scroll-margin-top: 120px;
}

.profile-form.ant-form-vertical .ant-form-item {
    margin-bottom: 0;
}

.profile-form.ant-form-vertical .ant-form-item-label {
    padding: 0 0 8px;
}

.profile-form.ant-form-vertical .ant-form-item-label > label {
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.85);
    height: auto;
}

.profile-form.ant-form-vertical .ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {
    color: #ff4d4f;
}

.profile-form.ant-form-vertical .ant-form-item-explain-error {
    font-size: 14px;
    line-height: 22px;
}

.profile-form .ant-form-item-has-error {
    scroll-margin-top: 120px;
}

.profile-form.ant-form-vertical .ant-form-item-control-input {
    min-height: unset;
}

.profile-form.ant-form-vertical .ant-form-item-control-input:has(.ant-input-number-focused),
.profile-form.ant-form-vertical .ant-form-item-control-input:has(.ant-input-number:focus-within) {
    overflow: visible;
}

.profile-form__section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-form__field.ant-form-item {
    display: block;
}

.profile-form__field--textarea {
    margin-top: 0;
}

.profile-form__field--switch {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
}

.profile-form__switch-wrap {
    display: flex;
    align-items: center;
    min-height: 48px;
}

.profile-form__row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.profile-form__row .profile-form__field {
    flex: 1;
    min-width: 0;
}

.profile-form__row--dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 320px)) auto;
    gap: 24px;
    align-items: end;
    justify-content: start;
}

.profile-form__row--dates .profile-form__field,
.profile-form__row--dates > .ant-form-item {
    flex: unset;
    min-width: 0;
}

.profile-form__row--workload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.profile-form__row--workload .profile-form__field {
    flex: unset;
    min-width: 0;
}

.profile-form__row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.profile-form__row--2 > .ant-form-item {
    min-width: 0;
}

.profile-form__row--dept {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    width: 100%;
}

.profile-form__label {
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.85);
}

.profile-form__label--required::before {
    content: "* ";
    color: #ff4d4f;
}

.profile-form__control {
    width: 100%;
}

.profile-form__control--full {
    width: 100%;
}

.profile-form .profile-form__control .ant-select {
    width: 100%;
}

.profile-form .profile-form__control,
.profile-form .profile-form__control.ant-input,
.profile-form .profile-form__control.ant-picker,
.profile-form .profile-form__control .ant-select-selector {
    border-radius: 12px !important;
    min-height: 48px;
}

.profile-form .profile-form__control .ant-select-selector {
    display: flex !important;
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.profile-form .profile-form__control .ant-select-selection-item,
.profile-form .profile-form__control .ant-select-selection-placeholder {
    font-size: 16px !important;
    line-height: 22px !important;
}

.profile-form .ant-select-selection-search {
    display: flex;
    align-items: center;
}

.profile-form .ant-select-selection-search-input {
    font-size: 16px !important;
    height: 46px !important;
    line-height: 46px !important;
}

.profile-form .profile-form__control.ant-input {
    font-size: 16px;
    line-height: 22px;
    padding: 12px 11px;
}

.profile-form .profile-form__control.ant-picker {
    display: flex;
    align-items: center;
    padding: 0 11px;
}

.profile-form .profile-form__control.ant-picker .ant-picker-input > input {
    font-size: 16px;
    line-height: 22px;
}

.profile-form .profile-form__control--number.ant-input-number {
    border-radius: 12px !important;
    min-height: 48px;
    width: 100%;
    display: flex;
    align-items: center;
}

.profile-form .profile-form__control--number.ant-input-number.ant-input-number-focused,
.profile-form .profile-form__control--number.ant-input-number:focus-within {
    overflow: visible;
    position: relative;
    z-index: 1;
}

.profile-form .profile-form__control--number .ant-input-number-input-wrap {
    border-top-left-radius: 11px;
    border-bottom-left-radius: 11px;
}

.profile-form .profile-form__control--number .ant-input-number-handler-wrap {
    border-top-right-radius: 11px;
    border-bottom-right-radius: 11px;
}

.profile-form .profile-form__control--number .ant-input-number-input-wrap,
.profile-form .profile-form__control--number .ant-input-number-input {
    height: 46px;
    font-size: 16px;
    line-height: 22px;
}

.profile-form__row--2 > .ant-form-item:has(.ant-input-number:focus-within) {
    overflow: visible;
    z-index: 1;
}

.profile-form__field--switch .ant-switch {
    width: 44px;
    min-width: 44px;
    flex-shrink: 0;
}

.profile-form__field--end-date-disabled .profile-form__control.ant-picker-disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.profile-form .profile-form__textarea {
    border-radius: 12px !important;
    min-height: 96px;
    padding: 12px;
    font-size: 16px;
    line-height: 22px;
}

.profile-form__field--upload {
    display: flex;
    flex-direction: column;
}

.profile-form__upload-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.profile-form__upload-content > .profile-form__attachment-list {
    margin: 0 0 8px;
}

.profile-form .profile-form__upload.ant-upload-wrapper {
    position: relative;
    width: 100%;
}

.profile-form .profile-form__upload .ant-upload.ant-upload-drag {
    position: relative;
    width: 100%;
    border-radius: 12px;
}

.profile-form .profile-form__upload .ant-upload.ant-upload-drag.profile-form__upload-trigger {
    display: block;
    margin: 0;
    padding: 16px;
    cursor: pointer;
}

.profile-form .profile-form__upload .ant-upload-hint {
    max-width: 395px;
    margin-inline: auto;
}

.profile-form__actions {
    display: flex;
    gap: 16px;
    padding-top: 8px;
    margin-bottom: 0;
}

.profile-form__actions .ant-btn {
    height: 34px;
    border-radius: 999px;
    padding: 0 18px;
}

.profile-form__cta-wrap {
    margin-top: -8px;
    align-self: flex-start;
}

.profile-form .profile-form__cta.ant-btn-primary {
    height: 34px;
    border-radius: 999px !important;
    padding: 0 16px !important;
    background: #10239e;
    border-color: #10239e;
    font-size: 14px;
    line-height: 22px;
    box-shadow: none;
}

.profile-form .profile-form__cta.ant-btn-primary:hover,
.profile-form .profile-form__cta.ant-btn-primary:focus {
    background: #0d1c7a;
    border-color: #0d1c7a;
}

.profile-form .profile-form__cta.profile-form__cta--danger.ant-btn-primary {
    background: #cf1322;
    border-color: #cf1322;
}

.profile-form .profile-form__cta.profile-form__cta--danger.ant-btn-primary:hover,
.profile-form .profile-form__cta.profile-form__cta--danger.ant-btn-primary:focus {
    background: #a8071a;
    border-color: #a8071a;
}

.profile-form .profile-form__ability-actions .ant-btn.profile-form__cta {
    height: 34px;
    border-radius: 999px !important;
    padding: 0 16px !important;
    font-size: 16px;
    line-height: 24px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
}

.profile-form .profile-form__ability-actions .ant-btn.profile-form__cta--secondary,
.profile-form .profile-form__ability-actions .ant-btn.profile-form__cta--secondary[disabled] {
    border-radius: 999px !important;
}

.profile-form__ability-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.profile-form__ability-row {
    display: flex;
    align-items: flex-start;
    padding: 4px 0;
}

.profile-form__ability-row .ant-checkbox-wrapper {
    margin: 0;
    align-items: flex-start;
    font-size: 16px;
    line-height: 24px;
    color: rgba(0, 0, 0, 0.85);
}

.profile-form__ability-label {
    font-size: 16px;
    line-height: 24px;
    color: rgba(0, 0, 0, 0.85);
}

.profile-skills-form-modal .ant-modal-content {
    border-radius: 12px !important;
    overflow: visible;
}

.profile-skills-form-modal .ant-modal-body {
    overflow: visible;
}

.profile-skills-form-modal.ant-modal-wrap,
.profile-skills-form-modal .ant-modal-wrap {
    overflow: visible;
}

.profile-skills-form-modal .ant-modal-header {
    border-radius: 12px 12px 0 0;
}

.profile-skills-form-modal .ant-modal-body .ant-input,
.profile-skills-form-modal .ant-modal-body .ant-input-affix-wrapper,
.profile-skills-form-modal .ant-modal-body .ant-input-outlined,
.profile-skills-form-modal .ant-modal-body input.ant-input,
.profile-skills-form-modal .profile-skills-form-modal__input,
.profile-skills-form-modal .profile-skills-form-modal__input.ant-input {
    width: 100%;
    border-radius: 12px !important;
    min-height: 48px;
    font-size: 16px;
    line-height: 22px;
}

.profile-skills-form-modal .ant-modal-body .ant-input {
    padding: 12px 11px;
}

.profile-skills-form-modal .ant-modal-body .ant-input-affix-wrapper {
    display: flex;
    align-items: center;
    padding: 0 11px;
}

.profile-skills-form-modal .ant-modal-body .ant-input-affix-wrapper .ant-input {
    min-height: 46px;
    padding: 0;
}

.profile-skills-form-modal .ant-modal-body .profile-form__control,
.profile-skills-form-modal .ant-modal-body .profile-form__control .ant-select-selector {
    width: 100%;
    border-radius: 12px !important;
    min-height: 48px;
}

.profile-skills-form-modal .ant-modal-body .profile-form__control .ant-select-selector {
    display: flex !important;
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.profile-skills-form-modal .ant-modal-body .profile-form__control .ant-select-selection-item,
.profile-skills-form-modal .ant-modal-body .profile-form__control .ant-select-selection-placeholder {
    font-size: 16px !important;
    line-height: 22px !important;
}

.profile-form .section-divider {
    margin-top: 8px;
}

.profile-form__attachment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-form__attachment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 4px 8px 4px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.profile-form__attachment-link {
    color: #10239e;
    text-decoration: none;
    word-break: break-all;
}

.profile-form__attachment-link:hover {
    text-decoration: underline;
}

.profile-form__attachment-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.profile-form__attachment-delete:hover:not(:disabled) {
    color: #cf1322;
    background: #fff1f0;
}

.profile-form__attachment-delete:disabled {
    cursor: wait;
    opacity: 0.65;
}

.profile-form__attachment-delete .anticon {
    font-size: 16px;
}

.profile-form__upload-input-host {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.profile-form__upload-input-host ::deep input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.profile-form__avatar-input-host input[type="file"] {
    display: none;
}

@media (max-width: 1024px) {
    .profile-form__row,
    .profile-form__row--workload {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .profile-form__row--dates {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .profile-form__field--schedule {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .profile-form__row--2,
    .profile-form__row--dept {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .profile-form__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-form__actions .ant-btn {
        width: 100%;
        justify-content: center;
    }
}
