:root {
    --font-montserrat: "Montserrat", sans-serif;
    --color-base: #000;
    --primary: #004D7F;
    --white: #fff;
    --warning: #F4B900;
    --danger: #a00;
}

* {
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
}

html {
    font-size: 16px;
    height: 100%;
    scroll-behavior: smooth;
}

@media all and (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-base);
    -webkit-font-smoothing: antialiased;
    overflow-anchor: none;
    overflow-x: hidden;
    min-width: 320px;
}

.container {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding: 0 1rem;
}

.wrap-md {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

@media (max-width: 767px) {
    .wrap-md .form-group {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .wrap-md {
        margin-top: 3rem;
        margin-bottom: 1rem;
    }
    .wrap-md .form-group {
        width: 49%;
    }
}

p {
    margin-block-start: 0;
    margin-block-end: .9rem;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.d-flex {
    display: flex;
}

.f-wrap {
    flex-wrap: wrap;
}

.content-space-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.justify-end {
    justify-content: flex-end;
}

.gap-5 {
    gap: 5px;
}

.f-grow-1 {
    flex-grow: 1;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.text-center {
    text-align: center;
}

.text-nowrap {
    white-space: nowrap;
}

.alert-danger {
    color: var(--danger);
    text-transform: uppercase;
    font-size: .9rem;
}

.form {
    padding: 3rem 1rem;
    text-align: center;
    border-top: 1px solid var(--primary);
}

@media (max-width: 768px) {
    .form {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

.form .title {
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.1;
    text-transform: capitalize;
    margin-block-start: 0;
    margin-block-end: 1.25rem;
}

@media (min-width: 768px) {
    .form .title {
        font-size: 2.5rem;
    }
}

.form .btn {
    width: 100%;
    max-width: 20rem;
    border-radius: 5px;
    font-size: 1.1rem;
    text-transform: uppercase;
    min-height: 3.68rem;
    margin: 0 auto;
}

.form-group,
.form-action {
    margin-bottom: 1.25rem;
}

.btn {
    color: var(--white);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border: 2px solid transparent;
    padding: .6rem 1.2rem;
}

.btn svg {
    fill: currentColor;
    margin-left: 5px;
}

.btn-primary {
    background-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--warning);
    color: var(--color-base);
}

.btn-border-primary {
    color: var(--primary);
    border-color: currentColor;
}

.btn-border-primary:hover,
.btn-border-primary:focus,
.btn-border-primary:active {
    color: var(--warning);
}

.btn-warning {
    background-color: var(--warning);
    color: var(--color-base);
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    background-color: var(--primary);
    color: var(--warning);
}

.form-control {
    border: 2px solid rgba(0, 0, 0, .1);
    font-size: 16px;
    font-weight: 500;
    text-transform: capitalize;
    min-height: 3.6rem;
    padding: .4rem 1.25rem;
    width: 100%;
    vertical-align: middle;
    caret-color: var(--primary);
    accent-color: var(--primary);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

.form-control.error {
    border-color: var(--danger);
}

.help-block {
    font-size: .8rem;
    font-weight: 300;
    text-align: left;
    margin: .1rem 0 0 .3rem;
    color: rgba(0, 0, 0, .6);
}

.error-message {
    color: var(--danger);
}

.form-control::-webkit-input-placeholder {
    font-weight: 400;
}

.form-control::-moz-placeholder {
    font-weight: 400;
}

.form-control:-moz-placeholder {
    font-weight: 400;
}

.form-control:-ms-input-placeholder {
    font-weight: 400;
}

.form-control:focus::-webkit-input-placeholder {
    color: transparent !important;
}

.form-control:focus::-moz-placeholder {
    color: transparent !important;
}

.form-control:focus:-moz-placeholder {
    color: transparent !important;
}

.form-control:focus:-ms-input-placeholder {
    color: transparent !important;
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control,
select[disabled] {
    background-color: #eee !important;
    cursor: not-allowed;
    color: rgba(0, 0, 0, .7);
}

button {
    overflow: visible;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
    background: none;
    border: 0;
}

button[disabled],
html input[disabled] {
    cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
    padding: 0;
    border: 0;
}

input[type=text]::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

input[type=text]::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}

input[type=password]::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

input[type=password]::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input[type="submit"]:focus:not(:focus-visible),
input[type="button"]:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible {
    outline: 3px dashed var(--warning);
    outline-offset: 2px;
}

a {
    text-decoration: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

a:hover,
a:focus,
a:active {
    color: var(--warning);
}

img {
    display: inline-block;
    max-width: 100%;
}

.header .wrapper {
    justify-content: space-between;
    border-bottom: 1px solid #D4D4D4;
    margin-bottom: 5px;
    padding-bottom: 5px;
}

.header .logo {
    display: block;
    text-align: center;
}

.header .logo img {
    max-height: 80px;
}

.header .item {
    flex-grow: 1;
    padding: 0.7rem;
    flex-basis: 100%;
}

.footer {
    background-color: var(--primary);
    color: var(--white);
}

.footer a {
    color: currentColor;
}

.footer .item {
    flex-grow: 1;
    padding: 0.625rem;
    flex-basis: 100%;
}

.footer .link {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .footer .link {
        margin-bottom: 1.25rem;
    }
}

.footer .link img {
    width: 2.625rem;
    height: 2.625rem;
    object-fit: contain;
    margin-right: 1rem;
}

.footer .desc {
    padding-top: 0.75rem;
}

.footer .desc .title {
    margin-bottom: 0.625rem;
    text-transform: capitalize;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--white);
}

.footer .desc p {
    font-size: .9rem;
}

.footer .wrapper {
    border-bottom: 1px solid rgba(209, 219, 227, 0.52);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    .footer .block-middle {
        padding-top: 2rem;
    }

    .footer .block-middle .item:first-child {
        flex-basis: 37%;
    }

    .footer .block-middle .item:nth-child(2) {
        flex-basis: 37%;
    }

    .footer .block-middle .item:last-child {
        flex-basis: 26%;
    }
}

.footer .block-bottom {
    text-align: center;
    padding: 1rem;
}

.footer .logo {
    max-height: 60px;
}

/* SMS Verification Step Styles */
.sms-verify {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
}

.sms-verify .code-input {
    font-size: 2rem;
    text-align: center;
    letter-spacing: 0.5rem;
    font-weight: 700;
}

.sms-verify p {
    margin-bottom: 1.5rem;
}

.resend-link {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.resend-link:hover {
    color: var(--warning);
}

/* Success message */
.success-message {
    text-align: center;
    padding: 3rem 1rem;
}

.success-message .icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.success-message h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}
