.dacf {
    --dacf-text: #d6dce0;
    --dacf-muted: #4f5253;
    --dacf-line: #37393a;
    --dacf-accent: #00c7ff;
    box-sizing: border-box;
    background: #13131388;
    border: 2px solid var(--dacf-line);
    border-radius: 45px;
    color: var(--dacf-text);
    padding: 64px;
    width: 720px;
    margin: 0 auto;
    font-family: inherit;
    backdrop-filter: blur(20px);
}

.dacf * {
    box-sizing: border-box
}

.dacf__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 60px
}

.dacf__logo img {
    display: block;
    width: 116px;
    height: 64px;
    object-fit: contain
}

.dacf__form {
    position: relative
}

.dacf__left {
    padding-right: 60px;
    display: flex;
    flex-direction: column;
    min-width: 0
}

.dacf__right {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-left: 2px solid var(--dacf-line);
    padding-left: 60px;
    padding-top: 70px;
    font-weight: 400;
}

.dacf h2 {
    font-size: 38px;
    line-height: 1.2;
    font-weight: 500;
    margin: 0 0 20px;
    color: inherit;
    letter-spacing: 5%;
}

.dacf h3,
.dacf__heading {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 500;
    margin: 35px 0 15px;
    color: inherit;
    display: block;
    text-align: left;
}

.dacf input:not([type=checkbox]):not([type=file]),
.dacf textarea {
    display: block;
    width: 100%;
    background: rgba(16 16 16 / 53%);
    color: var(--dacf-text);
    outline: 1px solid var(--dacf-line);
    border-radius: 20px;
    border: 0px solid #0000;
    padding: 10px 20px;
    font: inherit;
    font-size: 18px;
    line-height: 1.3;
    box-shadow: none;
    min-height: 54px;
    margin: 0 0 14px;
    font-weight: 300;
    letter-spacing: 10%;
}

.dacf input, .dacf__drop {
     background: rgba(16 16 16 / 53%) !important;
}

.dacf textarea {
    padding: 20px;
}

.dacf input::placeholder,
.dacf textarea::placeholder {
    color: #3c3d3e;
    opacity: 1;
    letter-spacing: 10%;
}

.dacf textarea {
    height: 194px;
    min-height: 150px;
    border-radius: 24px;
    margin-bottom: 15px
}

.dacf input:hover,
.dacf textarea:hover,
.dacf a:hover {
    outline: 2px solid var(--dacf-muted) !important
}

.dacf input:focus,
.dacf textarea:focus,
.dacf a:focus,
.dacf button:focus,

.dacf input:focus-visible,
.dacf textarea:focus-visible,
.dacf a:focus-visible,
.dacf button:focus-visible {
    outline: 2px solid var(--dacf-accent) !important
}



.dacf__confirm {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 14px;
    font-size: 15px;
    line-height: 1.5;
    margin: 14px 0 30px;
    cursor: pointer
}

.dacf__confirm input {
    accent-color: var(--dacf-accent);
    width: 16px;
    height: 16px;
    flex: none;
    margin: 3px 0 0
}

.dacf__legal {
    margin-top: auto;
    padding-top: 90px;
    font-size: 15px;
    line-height: 1.3;
    color: #a7adb1
}

.dacf__legal a,
.dacf__legal span {
    color: var(--dacf-text);
    font-weight: 600;
    text-decoration: none
}

.dacf__legal a:hover {
    text-decoration: underline
}

.dacf__drop {
    position: relative;
    min-height: 124px;
    border: 2px dashed var(--dacf-line);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center
}

.dacf__drop input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    font-weight: 400;
}

#dacf-2files {
    font-weight: 400;
    color: var(--dacf-line) !important;
}

.dacf__drop:focus-within,
.dacf__drop.is-over, .dacf__drop:hover
{
    border-color: var(--dacf-accent);
}

.dacf__drop span { font-weight: 400; color:#3c3d3e; font-size: 18px;}
.dacf__drop:hover strong { color: var(--dacf-accent);  }
.dacf__drop:hover svg { stroke: var(--dacf-accent);  }

.dacf__drop-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 20px;
    font-size: 15px;
    color: #91979b;
    pointer-events: none
}

.dacf__drop-text strong {
    color: var(--dacf-text);
    font-weight: 600
}

.dacf__drop svg {
    width: 25px;
    height: 34px;
    fill: none;
    stroke: #7c8083;
    stroke-width: 1.6;
    flex: none
}

.dacf__limits {
    font-size: 12px;
    color: var(--dacf-muted);
    line-height: 1.5;
    margin: 9px 0
}

.dacf__files {
    padding: 0;
    list-style: none;
    margin: 0
}

.dacf__files li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    border-bottom: 1px solid var(--dacf-line);
    padding: 7px 0;
    overflow-wrap: anywhere
}

.dacf__remove {
    background: transparent;
    color: var(--dacf-text);
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 5px;
    flex: none
}

.dacf__actions {
    display: flex;
    gap: 18px;
    align-items: flex-end;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 52px;
    min-height: 112px
}

.dacf__submit {
    font: inherit;
    font-weight: 500;
    font-size: 23px;
    line-height: 1;
    background: #3c3d3e;
    color: #5B5D5F;
    border: none;
    border-radius: 25px;
    width: 192px;
    padding: 10px;
    letter-spacing: 5%;
    transition: transform .15s ease, color .15s ease;
}

.dacf__submit:not(:disabled):hover {
    border-color: var(--dacf-accent);
    background-color: var(--dacf-accent);
    color: #101010;
    box-shadow: 0px 2px 50px rgb(89 197 255 / 40%);
    transform: translateY(-3px);
    outline: none !important;
}

.dacf__submit:disabled {
    opacity: .5;
    cursor: not-allowed
}

.dacf__status {
    font-size: 14px;
    line-height: 1.5;
    margin: 0px 24px 8px 0;
    color: var(--dacf-text)
}

.dacf__status.is-error {
    color: #ff9696
}

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

.dacf__trap {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden
}

@media(max-width:900px) {
    .dacf {
        padding: 36px 28px
    }

    .dacf__form {
        gap: 0
    }

    .dacf__left {
        padding-right: 28px
    }

    .dacf__right {
        padding-left: 28px
    }

    .dacf__logo {
        margin-bottom: 40px
    }

    .dacf__confirm {
        justify-content: flex-start
    }
}

@media(max-width:680px) {
    .dacf {
        padding: 28px 20px;
        border-radius: 24px
    }

    .dacf__logo {
        margin-bottom: 30px
    }

    .dacf__form {
        display: flex;
        flex-direction: column;
        gap: 28px
    }

    .dacf__right {
        border-left: 0;
        border-top: 1px solid var(--dacf-line);
        padding: 28px 0 0
    }

    .dacf__left {
        display: contents
    }

    .dacf h2 {
        margin-bottom: 4px
    }

    .dacf h3 {
        margin-bottom: -14px
    }

    .dacf input:not([type=checkbox]):not([type=file]) {
        margin-bottom: -14px
    }

    .dacf__confirm {
        margin: 0
    }

    .dacf__legal {
        order: 3;
        padding-top: 12px
    }

    .dacf__right {
        order: 2
    }

    .dacf__actions {
        flex-direction: column;
        align-items: stretch;
        padding-top: 24px;
        min-height: 0
    }

    .dacf__submit {
        width: 100%
    }

    .dacf__drop-text {
        gap: 12px;
        padding: 15px
    }

    .dacf__heading,
    .dacf h3 {
        font-size: 19px
    }
}

/* Conventional div overlay with a separately scrollable modal panel. */
.dacf-modal[hidden] { display: none !important; }
.dacf-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    isolation: isolate;
    overscroll-behavior: contain;
}
.dacf-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 100% at 50% 5%, #112533 30%, #101010 100%);
    backdrop-filter: blur(8px);
    opacity: .9;
    pointer-events: none;
    z-index: -1;
}
.dacf-modal__panel {
    position: relative;
    width: 720px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: 45px;
    color: #d6dce0;
    transform: scale(.9);
    scrollbar-width: thin;
}
.dacf-modal .dacf { width: 100%; margin: 0; }
.dacf-modal__close {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: transform .3s ease, color .3s ease;
    display: none;
}
.dacf-modal__close:hover { color: #00c7ff; transform: scale(1.15); }
.dacf-modal__close:focus-visible { outline: 2px solid #00c7ff; outline-offset: 3px; }
@media(max-width:680px) {
    .dacf-modal { padding: 10px; }
    .dacf-modal__panel {
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 24px;
        transform: none;
    }
    .dacf-modal .dacf { padding-top: 50px; }
}

.dacf__submit:not(:disabled) { color: var(--dacf-text); cursor: pointer; color: #101010; background-color: #DFE5EB; }
.dacf__submit:not(:disabled):hover { color: #101010; }
.dacf__form[aria-busy="true"] .dacf__submit:disabled { cursor: wait; }

/* Keep attached files inside the drop area; removal buttons stay above the input. */
.dacf__drop { flex-direction: column; }
.dacf__drop input[type="file"] { z-index: 0; }
.dacf__drop-text { position: relative; z-index: 1; }
.dacf__drop .dacf__files {
    position: relative;
    z-index: 1;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 0;
    pointer-events: none;
}
.dacf__drop .dacf__files:empty { display: none; }
.dacf__drop .dacf__files li { min-width: 0; }
.dacf__drop .dacf__files li:last-child { border-bottom: 0; }
.dacf__drop .dacf__files li span {
    color: var(--dacf-text);
    font-size: 13px;
    font-weight: 300;
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
}
.dacf__drop .dacf__remove {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
    font-size: 29px;
    line-height: 23px;
}

.dacf__drop .dacf__remove:hover {
    transform: scale(1.3);
    color: #00c7ff;
}

.tooltip {
  position: relative; /* Относительное позиционирование для контейнера */
  display: inline-block;
  cursor: pointer;
  border-bottom: 1px dotted #333;
}

.tooltip::after {
  content: attr(data-tooltip); /* Берем текст из HTML-атрибута */
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none; /* Чтобы подсказка не мешала курсору */
}

.tooltip[disabled]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}