* {
    box-sizing: border-box;
}

:root {
    font-family: Inter, Arial, sans-serif;
    color: #172033;
    background: #f5f7fb;
}

body {
    margin: 0;
    background: #f5f7fb;
}

button,
input,
select,
textarea {
    font: inherit;
}

.page {
    min-height: 100vh;
}

.hero {
    background: linear-gradient(135deg, #151d30, #344360);
    color: #fff;
    padding: 72px 24px 150px;
}

.hero-content {
    width: min(1050px, 100%);
    margin: 0 auto;
}

.eyebrow,
.step-label,
.success-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 12px 0 14px;
    font-size: clamp(34px, 5vw, 52px);
}

.hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.6;
    font-size: 17px;
}

.form-section {
    width: min(1050px, calc(100% - 32px));
    margin: -90px auto 60px;
}

.form-card,
.success-card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid #e6eaf1;
    padding: 36px;
}

.form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid #edf0f5;
}

.form-header h2 {
    margin: 6px 0 0;
    font-size: 26px;
}

.step-label {
    color: #54698e;
}

.required-label {
    color: #7c8597;
    font-size: 13px;
}

.form-block {
    padding: 34px 0;
    border-bottom: 1px solid #edf0f5;
}

.section-title {
    display: flex;
    gap: 14px;
    margin-bottom: 26px;
}

.section-title h3 {
    margin: 0 0 5px;
    font-size: 19px;
}

.section-title p {
    margin: 0;
    color: #737d90;
}

.section-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 50%;
    background: #eef2fa;
    color: #334260;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

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

.field-full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 14px;
    font-weight: 650;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #dce1e9;
    border-radius: 12px;
    background: #fff;
    color: #172033;
    padding: 13px 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #536b96;
    box-shadow: 0 0 0 3px rgba(83, 107, 150, .12);
}

.field select:disabled {
    background: #f2f4f8;
    color: #8c94a3;
}

.field textarea {
    resize: vertical;
    min-height: 150px;
}

.field-help {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #8a93a2;
    font-size: 12px;
}

.attachments-placeholder {
    margin: 30px 0;
    border: 1px dashed #cfd6e2;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #fafbfc;
}

.attachments-placeholder p {
    margin: 5px 0 0;
    color: #788296;
    font-size: 14px;
}

.attachments-placeholder span {
    border-radius: 999px;
    padding: 7px 12px;
    background: #eef1f6;
    color: #657086;
    font-size: 12px;
    font-weight: 700;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.form-actions p {
    margin: 0;
    color: #7c8597;
    font-size: 13px;
}

.form-actions button,
.success-card button {
    border: 0;
    border-radius: 12px;
    background: #24324b;
    color: #fff;
    padding: 14px 22px;
    font-weight: 700;
    cursor: pointer;
}

.form-actions button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.alert {
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff2f2;
    color: #a82d2d;
    border: 1px solid #f0cccc;
}

.success-card {
    text-align: center;
    padding: 50px 36px;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eaf7ef;
    color: #2d8251;
    font-size: 28px;
    font-weight: 800;
}

.success-label {
    color: #2d8251;
}

.success-card h2 {
    margin: 10px 0;
}

.success-card>p {
    color: #737d90;
    margin: 0 auto 28px;
    max-width: 500px;
}

.radicado-box {
    max-width: 500px;
    margin: 0 auto 25px;
    border: 1px solid #dfe4ec;
    border-radius: 16px;
    padding: 22px;
    background: #f8f9fc;
}

.radicado-box span,
.success-data span {
    display: block;
    color: #7a8495;
    font-size: 13px;
    margin-bottom: 7px;
}

.radicado-box strong {
    font-size: 26px;
    letter-spacing: .04em;
}

.success-data {
    max-width: 500px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.success-data div {
    padding: 15px;
    border-radius: 12px;
    background: #f7f8fa;
}

.loader {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.upload-box {
    border: 1px dashed #cfd6e2;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fafbfc;
}

.upload-button {
    border: 0;
    border-radius: 10px;
    background: #eef2f8;
    color: #334260;
    padding: 11px 16px;
    font-weight: 700;
    cursor: pointer;
}

.upload-button:hover {
    background: #e5eaf3;
}

.upload-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.upload-info strong {
    font-size: 14px;
}

.upload-info span {
    color: #7c8597;
    font-size: 12px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #e1e5ec;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}

.file-item-info {
    min-width: 0;
}

.file-item-name {
    display: block;
    font-size: 14px;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-size {
    display: block;
    margin-top: 3px;
    color: #8a93a2;
    font-size: 12px;
}

.file-remove {
    border: 0;
    background: transparent;
    color: #a43434;
    font-weight: 700;
    cursor: pointer;
}

.file-error {
    margin-top: 12px;
    color: #a82d2d;
    font-size: 13px;
}

.processing-card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid #e6eaf1;
    padding: 64px 36px;
    text-align: center;
}

.processing-card:not(.hidden),
.success-card:not(.hidden) {
    animation: viewEnter .38s cubic-bezier(.22, .8, .35, 1) both;
}

.processing-animation {
    position: relative;
    width: 82px;
    height: 82px;
    margin: 0 auto 24px;
}

.processing-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #e8edf5;
    border-top-color: #334260;
    border-right-color: #536b96;
    animation: processingSpin .9s linear infinite;
}

.processing-checkpoint {
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    background: #eef2fa;
    animation: processingPulse 1.4s ease-in-out infinite;
}

.processing-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #54698e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.processing-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.processing-card p {
    max-width: 500px;
    margin: 0 auto;
    color: #737d90;
    line-height: 1.6;
}

.processing-dots {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.processing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #536b96;
    animation: dotPulse 1.2s ease-in-out infinite;
}

.processing-dots span:nth-child(2) {
    animation-delay: .15s;
}

.processing-dots span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes processingSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes processingPulse {

    0%,
    100% {
        transform: scale(.88);
        opacity: .55;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes dotPulse {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: .35;
    }

    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

@keyframes viewEnter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.995);
    }

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

@media (max-width: 720px) {

    .form-card,
    .success-card,
    .processing-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .hero {
        padding: 50px 20px 120px;
    }

    .form-section {
        width: min(100% - 20px, 1050px);
        margin-top: -70px;
    }

    .form-card,
    .success-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .form-header,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-grid,
    .success-data {
        grid-template-columns: 1fr;
    }

    .field-full {
        grid-column: auto;
    }

    .form-actions button {
        width: 100%;
    }
}