/*
 * KG authorization / registration UI:
 * residency modal + method choice cards (replaces nav-tabs on auth screens).
 * Visual only - no change to form actions or backend flows.
 */

.kg-choice-cards {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -6px 24px;
}

.kg-choice-cards__item {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0px;
    flex: 1 1 0px;
    min-width: 160px;
    padding: 0 6px;
    margin-bottom: 12px;
}

.kg-choice-card {
    display: block;
    width: 100%;
    height: 100%;
    padding: 18px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #ffffff;
    color: #333333 !important;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    -webkit-transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.kg-choice-card:hover,
.kg-choice-card:focus {
    border-color: #03a9f4;
    background: #f7fcff;
    box-shadow: 0 2px 8px rgba(3, 169, 244, .18);
    outline: none;
}

.kg-choice-card.is-active {
    border-color: #03a9f4;
    background: #f2fafe;
    box-shadow: inset 0 0 0 1px #03a9f4;
}

.kg-choice-card.is-disabled,
.kg-choice-card[disabled] {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}

.kg-choice-card__icon {
    display: block;
    margin-bottom: 10px;
    font-size: 28px;
    line-height: 1;
    color: #03a9f4;
}

.kg-choice-card.is-active .kg-choice-card__icon {
    color: #037db8;
}

.kg-choice-card__title {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.kg-choice-card__hint {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    color: #777777;
}

/* Marker that the card carries a hover hint. */
.kg-choice-card__info {
    margin-left: 6px;
    font-size: 12px;
    color: #a3adb4;
    vertical-align: 1px;
    -webkit-transition: color .15s ease;
    transition: color .15s ease;
}

.kg-choice-card:hover .kg-choice-card__info,
.kg-choice-card:focus .kg-choice-card__info,
.kg-choice-card.is-active .kg-choice-card__info {
    color: #03a9f4;
}

/* Neutralize Material/Bootstrap button defaults when the card is a <button>. */
button.kg-choice-card {
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    text-transform: none;
    box-shadow: none;
}

button.kg-choice-card.is-active {
    box-shadow: inset 0 0 0 1px #03a9f4;
}

/* Residency modal */
.kg-residency-modal .modal-body {
    padding: 20px 20px 8px;
}

.kg-residency-modal .kg-choice-cards {
    margin-bottom: 8px;
}

.kg-residency-modal__lead {
    margin-bottom: 18px;
}

@media (max-width: 600px) {
    .kg-choice-cards {
        display: block;
    }

    .kg-choice-cards__item {
        min-width: 0;
    }
}
