/* Use the My Path guidance-card layout wherever the shared handoff appears.
   Dashboard spacing continues to come from child-learning.css. */
.tp-contestHandoff {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 20px 0;
    padding: 14px 16px;
    border: 1px solid #c9cdfb;
    border-radius: 18px;
    background: linear-gradient(125deg, #f6f6ff 0%, #f3fbf8 100%);
}

.tp-contestHandoff .tp-child__cogatPlanNudgeIcon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: #e8e7ff;
    color: #5950b6;
    font-size: 1.35rem;
    font-weight: 900;
}

.tp-contestHandoff .tp-child__cogatPlanNudgeCopy {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tp-contestHandoff .tp-child__cogatPlanNudgeCopy p {
    margin: 0;
    color: #1f7776;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.tp-contestHandoff .tp-child__cogatPlanNudgeCopy h3 {
    margin: 2px 0 0;
    font-size: 1rem;
    font-weight: 950;
}

.tp-contestHandoff .tp-child__cogatPlanNudgeCopy > span {
    display: block;
    margin-top: 2px;
    color: #526985;
    font-size: .87rem;
    line-height: 1.5;
}

.tp-contestHandoff .tp-contestHandoff__form {
    display: grid;
    justify-items: end;
    min-width: 0;
    margin: 0;
}

.tp-contestHandoff__form .btn {
    max-width: 100%;
    white-space: normal;
}

.tp-contestHandoff.tp-contestHandoff--needsDetails {
    grid-template-columns: 42px minmax(0, 1fr);
}

.tp-contestHandoff--needsDetails .tp-contestHandoff__form {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
}

.tp-contestHandoff__fields {
    display: flex;
    flex: 1 1 28rem;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
    max-width: 40rem;
}

.tp-contestHandoff__field {
    flex: 1 1 14rem;
    min-width: 0;
}

.tp-contestHandoff__field .form-label {
    margin-bottom: 5px;
    color: #526985;
    font-size: .85rem;
    font-weight: 700;
}

.tp-contestHandoff__field :is(input, select) {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 640px) {
    .tp-contestHandoff {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .tp-contestHandoff .tp-contestHandoff__form {
        grid-column: 2;
        justify-items: stretch;
    }

    .tp-contestHandoff__form .btn {
        width: 100%;
    }
}
