/* CSP-1877: styling for the redesigned common registration page. */
.registration-page {

}

/*Hero styling */
.registration-hero {
    background-color: #cceffc;
    padding: 4rem 0;
}

.registration-hero > .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.registration-hero .container :is(p, h1) {
    text-align: center;
}

.registration-page > .content {
    max-width: 720px;
    margin: 2rem auto;
    min-height: 50vh;
}

/* Form styling */
.registration-page .content .form-group {
    flex-direction: column;
}

.registration-page .content .form-group label {
    display: flex;
    flex-direction: row;
}

.contact-information .full-name {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

:is(.contact-information, .business-information) {
    width: 100%;
    margin-bottom: 3rem;
}

:is(.contact-information, .business-information) h5 {
    margin-bottom: 1rem;
    font-weight: 400;
}

.business-information .address > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.submit-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

/* Button styling */
.submit-controls button[type="submit"] {
    padding: 10px 32px;
    background-color: var(--content-primary);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    width: 70%;
}

.submit-controls button[type="submit"]:hover:not(:disabled) {
    background-color: #006BA6;
    color: white;
}

.submit-controls p, .submit-controls p a {
    color: #5D6771;
    text-align: center;
    font-size: 0.75rem;
}

.submit-controls .accept-terms {
    display: flex;
    gap: 0.5rem;
}

.submit-controls p a {
    text-decoration: underline;
}

.login-prompt {
    margin: 2rem auto;
}

.login-prompt p {
    text-align: center;
    font-size: 1rem;
}

.login-prompt p a {
    font-weight: 600;
    color: var(--ctnav-cta-pink) !important;
}

.login-prompt p a:hover {
    cursor: pointer;
    user-select: none;
    color: #B80A6C !important;
}

/* Success page */

.registration-success {
    margin-top: 6rem;
}

.registration-success :is(h3, p) {
    text-align: center;
}

.registration-success-icon {
    display: block;
    text-align: center;
    color: #19acee;
    font-size: 1.5rem;
    margin: 3rem 0 1rem;
}

.registration-success a.btn.btn-premium {
    min-width: 150px;
    margin-top: 1rem;
}


/*
 * Override default form input styles
 */
/* taas:input (InputTag) and the shared html.grid.label template put col-3/col-md-2 on every
   label and col-9/col-md-10 on every input wrapper. Those widths survive the column direction
   above, so clear them here rather than in the template, which every form in the app shares. */
.registration-page .content .form-group > label,
.registration-page .content .form-group > .form-inline {
    width: 100%;
    max-width: 100%;
    /* So fields without labels can be nicely aligned in a row*/
    min-height: 1.5em;
}

.registration-page :is(input, select),
.phoneInputRow span.ui-selectmenu-button {
    border-color: #D9D9D9;
}

/* style.css marks required fields with an asterisk after the label. Not used in this design. */
.registration-page .content .form-group.required > label::after {
    content: none;
}

/* .form-inline sizes controls to their content. The phone row keeps that behaviour so its
   country, area and number inputs stay on one line. */
.registration-page .content .form-group > .form-inline:not(.phoneInputRow) > .form-control {
    width: 100%;
}

/* Offsets assume the 3/9 split */
.registration-page .content :is(.offset-3, .offset-md-2) {
    margin-left: 0;
}

.registration-page .content .phoneInputRow > .validatePhoneNumber {
    flex: 1 1 auto;
    min-width: 0;
}

#business.primaryContact.phones0.number {
    width: 100%;
}
