.ypl-web-intake-page {
    align-items: start;
}

.ypl-intake-card {
    margin: 24px 0 40px;
    border: 1px solid #e1e1e1;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.ypl-intake-card__header,
.ypl-intake-section,
.ypl-intake-success {
    padding: 24px 28px;
}

.ypl-intake-card__header {
    border-bottom: 1px solid #ececec;
}

.ypl-intake-card__header h2,
.ypl-intake-success h2 {
    margin: 4px 0 8px;
}

.ypl-intake-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

.ypl-intake-form fieldset {
    min-width: 0;
    margin: 0;
    border: 0;
}

.ypl-intake-section {
    border-bottom: 1px solid #ececec;
}

.ypl-intake-section legend {
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    font-size: 20px;
    font-weight: 700;
}

.ypl-intake-grid {
    display: grid;
    gap: 18px;
}

.ypl-intake-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.ypl-intake-field label,
.ypl-intake-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.ypl-intake-field input[type="text"],
.ypl-intake-field input[type="email"],
.ypl-intake-field input[type="tel"],
.ypl-intake-field input[type="date"],
.ypl-intake-field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    background: #fff;
    font: inherit;
}

.ypl-intake-field textarea {
    resize: vertical;
}

.ypl-intake-field input:focus,
.ypl-intake-field textarea:focus,
.ypl-file-picker:focus-within {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

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

.ypl-intake-choice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    cursor: pointer;
}

.ypl-intake-choice input {
    margin-top: 4px;
}

.ypl-intake-choice strong,
.ypl-intake-choice small {
    display: block;
}

.ypl-intake-choice small {
    margin-top: 4px;
    line-height: 1.4;
    opacity: 0.76;
}

.ypl-intake-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 18px;
}

.ypl-intake-check-grid label {
    font-weight: 400;
}

.ypl-intake-help,
.ypl-intake-small {
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.78;
}

.ypl-file-picker {
    display: block;
    padding: 22px;
    border: 2px dashed #c8c8c8;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
}

.ypl-file-picker__title,
.ypl-file-picker__text {
    display: block;
}

.ypl-file-picker__title {
    margin-bottom: 4px;
    font-weight: 700;
}

.ypl-file-picker input {
    display: block;
    max-width: 100%;
    margin: 14px auto 0;
}

.ypl-file-list {
    margin-top: 14px;
}

.ypl-file-row {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ececec;
}

.ypl-file-row__details {
    min-width: 0;
}

.ypl-file-row__details strong,
.ypl-file-row__details span {
    display: block;
}

.ypl-file-row__details strong {
    overflow-wrap: anywhere;
}

.ypl-file-row__details span {
    margin-top: 2px;
    font-size: 13px;
    opacity: 0.7;
}

.ypl-file-row__state {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
}

.ypl-file-row__state.is-working {
    opacity: 0.72;
}

.ypl-file-row__state.is-complete::before {
    content: "✓ ";
}

.ypl-intake-consent label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ypl-intake-consent input {
    margin-top: 4px;
}

.ypl-intake-alert {
    margin: 20px 28px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 4px;
}

.ypl-intake-alert--error {
    border-color: #a82323;
    background: #fff2f2;
}

.ypl-intake-alert--warning {
    border-color: #a77700;
    background: #fff8dd;
}

.ypl-intake-progress {
    margin: 22px 28px;
}

.ypl-intake-progress__topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.ypl-intake-progress__bar {
    height: 8px;
    overflow: hidden;
    border-radius: 20px;
    background: #ededed;
}

.ypl-intake-progress__bar span {
    display: block;
    width: 0;
    height: 100%;
    background: currentColor;
    transition: width 160ms ease-out;
}

.ypl-intake-progress p {
    margin-bottom: 0;
    font-size: 14px;
}

.ypl-intake-submit {
    margin: 0 28px 28px;
    border: 0;
    cursor: pointer;
}

.ypl-intake-submit[disabled] {
    cursor: wait;
    opacity: 0.55;
}

.ypl-intake-success {
    border-top: 4px solid currentColor;
}

.ypl-intake-reference {
    margin: 20px 0;
    padding: 14px 16px;
    border: 1px solid #dedede;
    background: #f7f7f7;
}

.ypl-intake-reference span,
.ypl-intake-reference strong {
    display: block;
}

.ypl-intake-reference span {
    margin-bottom: 3px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.66;
}

.ypl-intake-reference strong {
    font-size: 22px;
}

.ypl-intake-sidebar-note {
    margin-top: 20px;
}

@media (max-width: 760px) {
    .ypl-intake-grid--2,
    .ypl-intake-choice-row,
    .ypl-intake-check-grid {
        grid-template-columns: 1fr;
    }

    .ypl-intake-card__header,
    .ypl-intake-section,
    .ypl-intake-success {
        padding: 20px;
    }

    .ypl-intake-alert,
    .ypl-intake-progress {
        margin-left: 20px;
        margin-right: 20px;
    }

    .ypl-intake-submit {
        margin-left: 20px;
        margin-right: 20px;
    }

    .ypl-file-row {
        align-items: flex-start;
    }
}
