.ns-form .ns-action {
    position: relative;
}

.ns-form .ns-loader {
    display: none;
    position: absolute;
    top: 5px;
    right: 45%;
    transform: translate(-50%);
    margin: 0;
    border: 5px solid #c1c1c1;
    border-radius: 100%;
    border-top: 5px solid #000000;
    width: 20px;
    height: 20px;
    -moz-animation: spin 1s linear infinite;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

@-moz-keyframes spin {
    0% {
        -moz-transform: rotate(0deg);
    }
    100% {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.ns-container {
    width: 100%;
    height: 100%;
    padding: 2.5em 1.875em;
    font-size: 16px;
}

.ns-form-title {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 0 0.75em 0;
    font-size: 1.125em;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}

.ns-wrapper {
    max-width: 18.75em;
    width: 100%;
    margin: 0 auto;
    padding: 1em;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.ns-wrapper:has(.ns-layout-inline) {
    margin: auto 0;
}

.ns-form {
    padding: 0;
    margin: 0;
    position: relative;
}

.ns-form .ns-group {
    width: 100%;
    padding-bottom: 1.25em;
}

.ns-form .form-label {
    font-weight: 600;
    display: block;
    width: 100%;
    float: none;
    margin-bottom: 5px;
    font-size: 0.75em;
    text-transform: uppercase;
    color: #000;
}

.ns-form .ns-input {
    padding: 0.375em 0.75em;
    border: 1px solid #eaeaea;
    font-size: 0.875em;
    height: 3em;
    display: block;
    width: 100%;
    float: none;
    color: #000;
    position: relative;
    background-color: #fff;
    box-shadow: none;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    box-sizing: border-box;
}

.ns-form .ns-input:hover {
    border: 1px solid #cbcbcb;
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    -webkit-transition: box-shadow 0.3s ease-in-out;
    -moz-transition: box-shadow 0.3s ease-in-out;
    -o-transition: box-shadow 0.3s ease-in-out;
    transition: box-shadow 0.3s ease-in-out;
}

.ns-form .ns-input:focus {
    border: 1px solid #cbcbcb;
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    -webkit-transition: box-shadow 0.3s ease-in-out;
    -moz-transition: box-shadow 0.3s ease-in-out;
    -o-transition: box-shadow 0.3s ease-in-out;
    transition: box-shadow 0.3s ease-in-out;
}

.ns-form .ns-input::-webkit-input-placeholder {
    color: #ccc;
}

.ns-form .ns-input::-moz-placeholder {
    color: #ccc;
}

.ns-form .ns-input:-ms-input-placeholder {
    color: #ccc;
}

.ns-form .ns-input:-moz-placeholder {
    color: #ccc;
}

.ns-form span.ns-error{
    font-size: 0.75em;
    color: red;
    display: block;
    left: 0;
    width: 100%;
    padding: 0.312em 0.625em;
    z-index: 100;
}

.ns-form .ns-submit {
    border: none;
    color: #ffffff;
    font-size: 0.875em;
    display: block;
    text-align: center;
    width: 100%;
    padding: 13px;
    font-weight: 600;
    outline: none;
    text-decoration: none;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    background: #3498db;
    background-image: -webkit-linear-gradient(top, #3498db, #2980b9);
    background-image: -moz-linear-gradient(top, #3498db, #2980b9);
    background-image: -ms-linear-gradient(top, #3498db, #2980b9);
    background-image: -o-linear-gradient(top, #3498db, #2980b9);
    background-image: linear-gradient(to bottom, #3498db, #2980b9);
    cursor: pointer;
}

.ns-form .ns-submit:disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

.ns-form .ns-submit:hover, .ns-form .ns-submit:focus{
    background: #3cb0fd;
    color: #ffffff !important;
    background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
    background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
    outline: none;
    text-decoration: none;
}
.ns-group.ns-error-show {
    padding-bottom: 0;
}

/* Inline layout */
.ns-wrapper-inline {
    max-width: 100%;
}

.ns-layout-inline.ns-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
}

.ns-layout-inline .ns-group {
    flex: 1 1 0;
    min-width: 120px;
    width: auto;
    /* padding-bottom: 1.5em; */
    display: flex;
    flex-direction: column;
    position: relative;
}

.ns-layout-inline .ns-group .ns-input {
    width: 100%;
    box-sizing: border-box;
}

.ns-layout-inline .ns-group.ns-error-show {
    padding-bottom: 1.5em;
}

.ns-layout-inline span.ns-error {
    position: relative;
    bottom: 0.125em;
    left: 0;
    padding: 0.625em;
}

.ns-layout-inline .ns-action {
    flex: 0 0 auto;
    margin-top: 1.3em;
}

.ns-layout-inline .ns-submit {
    display: inline-block;
    width: auto;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .ns-layout-inline.ns-form {
        flex-wrap: wrap;
    }
    .ns-layout-inline .ns-group {
        flex: 1 1 100%;
    }
    .ns-layout-inline .ns-action {
        width: 100%;
    }
    .ns-layout-inline .ns-submit {
        width: 100%;
        display: block;
    }
}