/* =========================================================
   horseRegistration.css
   競走馬登録
   ========================================================= */

.horse-registration-game {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    margin: 0 0 24px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-section);
}

.horse-registration-game dt,
.horse-registration-game dd {
    margin: 0;
}

.horse-registration-game dt {
    font-weight: 700;
}

.horse-registration-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.horse-registration-actions form {
    flex: 1 1 0;
    margin: 0;
}

.horse-registration-button {
    display: flex;
    width: 100%;
    min-height: 46px;
    padding: 8px 16px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-main);
    border-radius: 7px;
    background: var(--color-main);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.horse-registration-button:hover {
    background: var(--color-main-dark);
    color: #ffffff;
    text-decoration: none;
}

.horse-registration-button-secondary {
    background: #ffffff;
    color: var(--color-main-dark);
}

.horse-registration-button-secondary:hover {
    background: var(--color-section);
    color: var(--color-main-dark);
}

.horse-registration-confirmation {
    margin: 0 0 24px;
    border-top: 1px solid var(--color-border);
}

.horse-registration-confirmation > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    border-bottom: 1px solid var(--color-border);
}

.horse-registration-confirmation dt,
.horse-registration-confirmation dd {
    margin: 0;
    padding: 12px;
}

.horse-registration-confirmation dt {
    background: var(--color-section);
    font-weight: 700;
}

.horse-registration-alert,
.horse-registration-form-error {
    margin: 0 0 18px;
    color: var(--color-danger);
    font-weight: 700;
}

.horse-registration-unavailable,
.horse-registration-complete {
    text-align: center;
}

.horse-registration-unavailable .horse-registration-button,
.horse-registration-complete .horse-registration-button {
    max-width: 280px;
    margin: 22px auto 0;
}

@media (max-width: 575.98px) {
    .horse-registration-game {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .horse-registration-confirmation > div {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .horse-registration-confirmation dt,
    .horse-registration-confirmation dd {
        padding: 10px 8px;
    }

    .horse-registration-actions {
        gap: 8px;
    }

    .horse-registration-button {
        padding: 7px 10px;
        font-size: .9rem;
    }
}
