.entry-field[hidden] {
    display: none !important;
}

.entry-required {
    display: inline-flex;
    align-items: center;
    min-height: 1.35rem;
    padding: 0 0.5rem;
    border-radius: 0.25rem;
    background: #dc2626;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.entry-optional {
    display: inline-flex;
    align-items: center;
    min-height: 1.35rem;
    padding: 0 0.5rem;
    border-radius: 0.25rem;
    background: #64748b;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.entry-control {
    width: 100%;
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.9rem 1rem;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.entry-control:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.14);
}

.entry-form-actions {
    display: grid;
    gap: 0.75rem;
}

.entry-form-actions__button {
    display: flex;
    justify-content: center;
}

.entry-submit-button {
    width: min(100%, 18rem);
    min-width: 15.5rem;
    white-space: nowrap;
}

.entry-form-actions__privacy {
    width: 100%;
    margin: 0;
    text-align: center;
}

.entry-helper-text {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.7;
}

.entry-field-legend__title {
    white-space: nowrap;
}

.entry-choice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.entry-choice:hover {
    border-color: #67e8f9;
    background: #f0fdfa;
}

.entry-choice input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    accent-color: #0891b2;
    flex-shrink: 0;
}

.entry-choice:has(input:checked) {
    border-color: #0891b2;
    background: #ecfeff;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}

.entry-segment {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.entry-segment label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    color: #07515f;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.entry-segment input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.entry-segment label:has(input:checked) {
    border-color: #0891b2;
    background: #ecfeff;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}

.entry-visit-note__inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid #a7f3d0;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
    color: #047857;
}

.entry-flow {
    overflow: hidden;
    border: 1px solid #bae6fd;
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(14, 116, 144, 0.08);
}

.entry-flow__heading {
    padding: 1.5rem 1.5rem 1.2rem;
    border-bottom: 1px solid #cffafe;
    background: linear-gradient(135deg, #ecfeff, #f0fdfa);
}

.entry-flow__eyebrow {
    margin: 0 0 0.45rem;
    color: #0891b2;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.entry-flow__heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.45;
}

.entry-flow__steps {
    position: relative;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 1.5rem;
    list-style: none;
}

.entry-flow__step {
    position: relative;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.9rem;
    min-height: 6.15rem;
}

.entry-flow__step:not(:last-child)::after {
    position: absolute;
    top: 2.85rem;
    bottom: 0.9rem;
    left: 1.45rem;
    width: 0.125rem;
    background: #a5f3fc;
    content: '';
}

.entry-flow__step:not(:last-child)::before {
    position: absolute;
    bottom: 0.45rem;
    left: 1.16rem;
    width: 0;
    height: 0;
    border-top: 0.45rem solid #22d3ee;
    border-right: 0.36rem solid transparent;
    border-left: 0.36rem solid transparent;
    content: '';
}

.entry-flow__step:last-child {
    min-height: auto;
}

.entry-flow__number {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 9999px;
    background: #0891b2;
    box-shadow: 0 0 0 0.38rem #ecfeff;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.entry-flow__copy {
    padding: 0.2rem 0 0.85rem;
}

.entry-flow__copy h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.entry-flow__copy p {
    margin: 0.35rem 0 0;
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.7;
}

.entry-documents {
    padding: 1.25rem;
    border: 1px solid #67e8f9;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 100%);
}

.entry-documents__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.entry-documents__eyebrow {
    margin: 0 0 0.2rem;
    color: #0891b2;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.entry-documents__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.entry-documents__optional {
    min-height: 1.25rem;
    padding: 0 0.45rem;
    font-size: 0.64rem;
}

.entry-documents__badge {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    min-height: 1.7rem;
    padding: 0 0.7rem;
    border-radius: 9999px;
    background: #0891b2;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.entry-documents__lead {
    margin: 0.8rem 0 1rem;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.8;
}

.entry-documents__label {
    margin: 0;
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 700;
}

.entry-documents__files {
    display: grid;
    gap: 0.65rem;
}

.entry-documents__add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: fit-content;
    min-height: 2.8rem;
    padding: 0.6rem 1rem;
    border: 1px solid #0891b2;
    border-radius: 0.5rem;
    background: #fff;
    color: #07515f;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.entry-documents__add-button:hover {
    background: #0891b2;
    color: #fff;
    box-shadow: 0 8px 18px rgba(8, 145, 178, 0.18);
    transform: translateY(-1px);
}

.entry-documents__add-button:focus-within {
    outline: none;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.18);
}

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

.entry-documents__instruction,
.entry-documents__feedback {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.65;
}

.entry-documents__instruction {
    color: #475569;
}

.entry-documents__feedback {
    min-height: 1.3rem;
    color: #047857;
    font-weight: 700;
}

.entry-documents__file-list {
    display: grid;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.entry-documents__file-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 2.8rem;
    padding: 0.55rem 0.65rem 0.55rem 0.85rem;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    background: #fff;
}

.entry-documents__file-name {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entry-documents__file-remove {
    justify-self: end;
    flex-shrink: 0;
    min-height: 2rem;
    padding: 0.25rem 0.65rem;
    border: 1px solid #fca5a5;
    border-radius: 9999px;
    background: #fff;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.entry-documents__file-remove:hover {
    background: #fef2f2;
}

.entry-documents__file-remove:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

.entry-documents__note {
    margin: 0.55rem 0 0;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.65;
}

.entry-confirmation[hidden] {
    display: none !important;
}

.entry-summary-row {
    display: grid;
    grid-template-columns: minmax(8.5rem, 0.35fr) 1fr;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.entry-summary-row dt {
    color: #475569;
    font-weight: 700;
}

.entry-summary-row dd {
    color: #0f172a;
    white-space: pre-wrap;
}

.entry-line-button {
    border-color: #06c755;
    color: #06c755;
}

.entry-line-button:hover {
    background: #06c755;
    color: #fff;
}

.entry-line-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(6, 199, 85, 0.18);
}

.entry-line-button,
.entry-edit-button,
#entry-dev-submit-button {
    transition:
        transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.28s ease,
        background 0.28s ease,
        border-color 0.28s ease,
        color 0.28s ease;
}

.entry-line-button:hover,
.entry-edit-button:hover,
#entry-dev-submit-button:hover {
    transform: translateY(-2px) scale(1.035);
    box-shadow: 0 16px 34px rgba(8, 184, 207, 0.22);
}

.entry-line-button:active,
.entry-edit-button:active,
#entry-dev-submit-button:active {
    transform: translateY(0) scale(0.99);
}

@media (max-width: 767px) {
    .entry-submit-button {
        min-width: min(15.5rem, 100%);
    }

    .entry-segment {
        grid-template-columns: 1fr;
    }

    .entry-summary-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .entry-flow__heading,
    .entry-flow__steps {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .entry-flow__step {
        grid-template-columns: 2.65rem minmax(0, 1fr);
        gap: 0.75rem;
        min-height: 5.8rem;
    }

    .entry-flow__number {
        width: 2.55rem;
        height: 2.55rem;
        font-size: 0.72rem;
    }

    .entry-flow__step:not(:last-child)::after {
        top: 2.5rem;
        left: 1.26rem;
        bottom: 0.85rem;
    }

    .entry-flow__step:not(:last-child)::before {
        bottom: 0.4rem;
        left: 0.98rem;
    }

    .entry-documents {
        padding: 1rem;
    }

    .entry-field-legend {
        align-items: flex-start;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .entry-segment {
        grid-template-columns: 1fr;
    }
}
