.dlr-book,
.dlr-book * {
    box-sizing: border-box;
}

.dlr-book {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 28%),
        radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.05), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    overflow: hidden;
}

.dlr-book::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(15, 23, 42, 0.04), transparent 28%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.40), transparent 18%);
    mask: linear-gradient(#000, transparent 85%);
}

.dlr-book__hero {
    position: relative;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.dlr-book__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e8eef8, #f4f8ff);
    color: #17324d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.dlr-book__hero h2 {
    margin: 14px 0 10px;
    max-width: 14ch;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.03;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.dlr-book__hero p {
    margin: 0;
    color: #0f172a;
}

.dlr-book__help {
    margin-top: 12px !important;
    color: #64748b !important;
    max-width: 66ch;
}

.dlr-form {
    display: grid;
    gap: 22px;
}

.dlr-alert {
    padding: 16px 18px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.dlr-alert--success {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    color: #065f46;
    border: 1px solid rgba(22, 163, 74, 0.18);
}

.dlr-alert--error {
    background: linear-gradient(135deg, #fef2f2, #fff1f2);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.18);
}

.dlr-form__status {
    display: none;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.dlr-form__status:not([hidden]) {
    display: block;
}

.dlr-form__status--success {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    color: #065f46;
    border: 1px solid rgba(22, 163, 74, 0.18);
}

.dlr-form__status--error {
    background: linear-gradient(135deg, #fef2f2, #fff1f2);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.18);
}

.dlr-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dlr-form__grid > .dlr-fieldset:first-child {
    grid-column: 1 / -1;
}

.dlr-form__grid > .dlr-fieldset:nth-child(2) {
    grid-column: 1 / -1;
}

.dlr-fieldset {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    padding: 20px;
    display: grid;
    gap: 15px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,251,255,0.92));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dlr-fieldset:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.06);
    border-color: rgba(100, 116, 139, 0.35);
}

.dlr-fieldset legend {
    font-weight: 700;
    padding: 0 6px;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.dlr-fieldset__note {
    margin: -2px 0 4px;
    color: #64748b;
    font-size: 14px;
}

.dlr-fieldset--wide {
    grid-column: 1 / -1;
}

.dlr-case-guide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dlr-case-guide__item {
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 16px;
    padding: 16px;
    background:
        linear-gradient(180deg, #f8fbff, #ffffff);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.dlr-case-guide__item h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.2;
    color: #0f172a;
}

.dlr-case-guide__item p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.dlr-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dlr-fieldset label,
.dlr-consent label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    color: #0f172a;
}

.dlr-fieldset input,
.dlr-fieldset select,
.dlr-fieldset textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
    color: #0f172a;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}

.dlr-document-type {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 52px;
    padding: 0 40px 0 14px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.dlr-document-type:focus {
    box-shadow:
        0 0 0 4px rgba(51, 65, 85, 0.12),
        0 10px 22px rgba(15, 23, 42, 0.05);
}

.dlr-grid-2 > label:first-child .dlr-document-type {
    margin-top: 0;
}

.dlr-grid-2 > label {
    display: flex;
    flex-direction: column;
}

.dlr-fieldset input:focus,
.dlr-fieldset select:focus,
.dlr-fieldset textarea:focus {
    border-color: #334155;
    box-shadow: 0 0 0 4px rgba(51, 65, 85, 0.12);
    outline: none;
    background: #fff;
}

.dlr-check {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.dlr-check--soft {
    padding-top: 4px;
}

.dlr-check--legal {
    align-items: flex-start;
}

.dlr-dependent-fields[hidden] {
    display: none !important;
}

.dlr-dependent-fields {
    animation: dlrFadeIn .18s ease;
}

@keyframes dlrFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dlr-check input {
    width: auto;
    margin-top: 3px;
}

.dlr-consent {
    padding: 4px 0 2px;
}

.dlr-disclaimer {
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff8eb, #fffdf7);
    padding: 18px 20px;
    color: #5c4b1e;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.dlr-disclaimer h3 {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.2;
}

.dlr-disclaimer ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.dlr-disclaimer li {
    margin: 0;
    line-height: 1.5;
}

.dlr-form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dlr-form__required {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.dlr-field-hint {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.dlr-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    min-width: 200px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.dlr-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.26);
}

.dlr-button.is-loading {
    opacity: .78;
    cursor: progress;
}

.dlr-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dlr-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

@media (max-width: 767px) {
    .dlr-book {
        padding: 18px;
        border-radius: 16px;
    }

    .dlr-form__grid,
    .dlr-grid-2 {
        grid-template-columns: 1fr;
    }

    .dlr-case-guide {
        grid-template-columns: 1fr;
    }

    .dlr-form__footer {
        align-items: stretch;
    }

    .dlr-button {
        width: 100%;
    }

    .dlr-document-type {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
}
