﻿/*
 * SME Application / SME Learning Application public form styles.
 *
 * Extracted from the comptia.org Sitefinity theme (ResourcePackages/MainSite main.min.css v4.2.9, which bundles
 * Bootstrap 4.6.2) by keeping only the rules whose selectors match elements on the live
 * /forms/sme-apply-now-app page, in their original cascade order. Selectors are intentionally left unscoped so
 * specificity matches the original page; isolation comes from loading this file only in
 * Views/Shared/_PublicFormLayout.cshtml. Do not reference it from the admin _Layout.
 */

h5,
p,
ul {
    margin-top: 0;
}

p,
ul {
    margin-bottom: 1rem;
}

body {
    text-align: left;
}

h5,
label {
    margin-bottom: .5rem;
}

textarea {
    overflow: auto;
}

section {
    display: block;
}

label {
    display: inline-block;
}

input {
    overflow: visible;
}

html {
    -webkit-tap-highlight-color: transparent;
}

.checkbox:after,
.sme-years-box,
.sme-years-box:after {
    clear: both;
}

:root {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --font-family-sans-serif: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    --font-family-monospace: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}

*,
::after,
::before {
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: #fff;
}

[tabindex="-1"]:focus:not(:focus-visible) {
    outline: 0!important;
}

[type=submit]:not(:disabled) {
    cursor: pointer;
}

a {
    background-color: transparent;
}

a:hover {
    text-decoration: underline;
}

strong {
    font-weight: bolder;
}

input,
select,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

select {
    text-transform: none;
}

select {
    word-wrap: normal;
}

[type=submit] {
    -webkit-appearance: button;
}

[type=submit]::-moz-focus-inner {
    padding: 0;
    border-style: none;
}

input[type=radio],
input[type=checkbox] {
    box-sizing: border-box;
    padding: 0;
}

textarea {
    resize: vertical;
}

::-webkit-file-upload-button {
    font: inherit;
    -webkit-appearance: button;
}

[hidden] {
    display: none!important;
}

h5 {
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
}

h5 {
    font-size: 1.25rem;
}

.form-control {
    font-weight: 400;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width:576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width:768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width:992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width:1200px) {
    .container {
        max-width: 1140px;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-12,
.col-md-2,
.col-md-5,
.col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width:768px) {
    .col-md-2 {
        flex: 0 0 16.66666667%;
        max-width: 16.66666667%;
    }
    .col-md-5 {
        flex: 0 0 41.66666667%;
        max-width: 41.66666667%;
    }
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

@media (prefers-reduced-motion:reduce) {
    .form-control {
        transition: none;
    }
}

.form-control::-ms-expand {
    background-color: transparent;
    border: 0;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(0,123,255,.25);
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 1;
}

.form-control:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

select.form-control:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #495057;
}

select.form-control:focus::-ms-value {
    color: #495057;
    background-color: #fff;
}

.ml-3 {
    margin-left: 1rem!important;
}

.text-danger {
    color: #dc3545!important;
}

@media print {
    *,
    ::after,
    ::before {
        text-shadow: none!important;
        box-shadow: none!important;
    }
    a:not(.btn) {
        text-decoration: underline;
    }
    p {
        orphans: 3;
        widows: 3;
    }
    .container,
    body {
        min-width: 992px!important;
    }
}

body,
p {
    color: #000;
}

html {
    font-size: 100%;
}

body {
    font-family: Inter,sans-serif;
    background: #FFF;
    overflow-x: hidden;
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h5 {
    font-weight: 500;
    margin: 0 0 10px;
    color: #000;
    line-height: 1.25em;
    padding-top: 15px;
}

a,
a:hover {
    color: #008fc3;
}

h5,
p {
    font-size: 1em;
}

@media print {
    h5 {
        font-family: Inter,sans-serif;
    }
}

p {
    line-height: 1.55em;
    margin: 0 0 20px;
}

@media screen and (max-width:480px) {
    h5 {
        font-size: 1em;
        padding-top: 10px;
    }
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.checkbox {
    vertical-align: top;
}

input[type=text].form-control::placeholder {
    color: #000;
}

input[type=email],
input[type=email].form-control,
input[type=file],
input[type=text],
input[type=text].form-control,
select,
select.form-control,
textarea {
    border: 2px solid #d0d5d6;
    border-radius: 5px;
    color: #000;
    font-size: 1em;
    line-height: 1.1em;
    padding: .6em;
    width: 98%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 2.5em;
    margin-bottom: 1.5em;
}

.text-danger {
    font-size: .8em;
    font-weight: 700;
}

input[type=file] {
    height: auto;
}

::placeholder {
    color: #000;
}

input[type=email],
input[type=text],
select {
    height: 2.5em;
}

input[type=email].form-control {
    margin-bottom: 1.5em;
}

input[type=text]:focus,
select:focus,
textarea:focus {
    border-color: #b0b6bb;
    color: #000;
    outline: 0;
}

input[type=text]:disabled,
select:disabled,
textarea:disabled {
    background-color: #f7f8fa;
    border-color: #d0d5d6;
}

input[type=submit] {
    background-color: #4c565c!important;
    border: 1px solid #4c565c!important;
    border-radius: 5px;
    color: #fff;
    padding: .4em 2em;
    text-transform: uppercase;
}

input[type=submit]:hover {
    background-color: #c21f14!important;
    border: 1px solid #c21f14!important;
}

input[type=submit]:disabled {
    background-color: #b4c6d1;
    border-color: #b4c6d1;
    cursor: default;
}

textarea {
    min-height: 100px;
}

select {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    padding: 0 .4em!important;
}

select:active,
select:hover {
    background-color: #fff;
    cursor: pointer;
}

select::selection {
    background-color: #fff;
}

option::selection,
option:hover {
    color: #cb2115;
    cursor: pointer;
    text-decoration: underline;
    background-color: #fff;
    outline-color: #fff;
}

option {
    color: #a4adb3;
    cursor: pointer;
    padding: .6em;
}

.text-danger {
    position: relative;
}

input[type=email]+.text-danger,
input[type=file]+.text-danger,
input[type=text]+.text-danger,
select+.text-danger,
textarea+.text-danger {
    top: -15px;
}

.checkbox {
    margin-bottom: 1.5em;
}

.checkbox:after {
    content: '';
    display: block;
}

.checkbox br {
    display: none;
}

.checkbox label {
    float: left;
    margin-bottom: 1em;
    width: 100%;
}

.checkbox {
    display: inline-block;
}

.checkbox+input+label {
    max-width: 95%;
}

.checkbox label:hover {
    cursor: pointer;
}

.checkbox input[type=checkbox] {
    display: none;
}

.checkboxList ul {
    list-style: none;
}

.checkboxList.twoCol ul {
    -webkit-columns: 2 200px;
    -moz-columns: 2 200px;
    columns: 2 200px;
}

.checkboxList ul li label {
    font-weight: 400;
}

.sme-years-box {
    background-color: #ecf1f2;
    border: 1px solid #d0d5d6;
    border-radius: 15px;
    margin-bottom: 15px;
    padding: 15px 15px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: end;
}

.sme-years-box:after {
    display: block;
    content: ' ';
}

.sme-years-box .subject {
    flex-basis: 45%;
    flex-grow: 1;
    margin-right: 5%;
}

.sme-years-box .subject select {
    font-size: .95em;
}

.checkbox.certs-represent input[type=checkbox] {
    display: block;
    float: left;
    margin: 6px 0 0;
    position: relative;
}

.checkbox.certs-represent input[type=hidden]+label {
    width: 48%;
    padding-left: 10px;
}

@media screen and (max-width:768px) {
    .checkbox.certs-represent input[type=hidden]+label {
        width: 94%;
    }
    .sme-years-box .subject {
        flex-basis: 100%;
        margin-right: 0;
        width: 100%;
    }
}

input[type=checkbox]:disabled+input[type=hidden]+label {
    color: #d3d3d3;
}

.data-functions ul,
.datascience-functions ul {
    overflow: visible;
    columns: auto!important;
}

.data-other-inputs {
    bottom: 51px;
    position: absolute;
    right: 82px;
    width: 188px;
}

.data-other-inputs input[type=text] {
    height: 33px;
}

.form-button-container {
    clear: both;
}

.form-button-content {
    padding-top: 65px;
    padding-bottom: 80px;
    text-align: center;
}

.g-recaptcha {
    margin-bottom: 30px;
}

div#recaptcha-result {
    margin-top: -24px;
    margin-bottom: 24px;
}

section {
    background-position: center 0;
    background-repeat: no-repeat;
    clear: both;
}

.row.padding-top {
    padding-top: 20px;
}

.row.padding-bottom {
    padding-bottom: 20px;
}

@media (min-width:1300px) {
    .container {
        max-width: 1280px;
    }
}

@media screen and (max-width:992px) {
    .col-md-12,
    .col-md-2,
    .col-md-5,
    .col-md-6 {
        flex: none;
        max-width: 100%;
    }
}

/* Inline style block from the Sitefinity page template that hosts the form. */
form {
    padding-left: 5px;
}
