/* RESET */
*,
::before,
::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  border: 0;
}

ol,
ul {
 list-style: none;
}

svg,
video,
canvas,
picture {
  display: block;
  max-width: 100%;
}

img {
    max-width: 100%;
    display: inline-block;
}

input,
button,
select,
textarea {
  font: inherit;
  outline: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
span {
  overflow-wrap: break-word;
}

/* GENERAL STYLES */
:root {
    --color-primary: #334d6a;
}

body {
    font-size: 16px;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
    color: var(--color-primary);
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Roboto Condensed', sans-serif;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

p {
    line-height: 1.5;
    margin-bottom: 1em;
}

label {
    margin-bottom: 5px;
}

input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="number"], 
input[type="password"] {
    padding: 10px;
}

input, label, textarea, select {
    font-size: 16px;
}

textarea {
    width: 100%;
    padding: 10px;
}

ul {
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* PAGE CONTAINER STYLES */
.page-container {
    max-width: 768px;
    margin: 0 auto;
}
.header {
    padding-bottom: 20px;
}
.header__lang {
    text-align: right;
    font-size: 0.9em;
    font-weight: 500;
    color: #666;
    margin-bottom: 15px;

    a {
        text-decoration: underline;

        &:hover {
            text-decoration: none;
        }
    }
}
.header__logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header__logo {
    width: 50%;
}
.header__logo--quickimport {
    padding-top: 3px;

    img {
        width: 10em;
    }
}
.header__logo--dekra {
    text-align: right;

    img {
        width: 6.4em;
    }
}
.main {
    margin-top: 1em;
}
.main__content {
    text-align: center;
    margin-bottom: 2em;
}
.main__subtitle {
    font-size: 1.2em;
    font-weight: 500;
}
.footer {
    padding-top: 20px;
}
.footer__trust {
    color: #666;
    font-size: 0.9em;
    text-align: center;
}
.footer__support {
    text-align: center;
    background: var(--color-primary);
    color: white;
    padding: 20px;

    ul {
        display: flex;
        justify-content: center;
        gap: 40px;
        margin-top: 20px;
    }
}

/* DEKRA FORM SPECIFIC STYLES */
.qiform__carworkshop-container {
    width: 100%;
    
}
@media screen and (min-width: 769px) {
    .qiform__carworkshop-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin: 10px 0;
    }
}
.qiform__carworkshop-item {
    padding: 20px 50px 20px 20px;
    border: 1px solid #ccc;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    background: white;
    margin-top: 10px;
    
}
.qiform__carworkshop-item:hover {
    background: #f0f0f0;
}
.qiform__carworkshop-item:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    background: white;
}
.qiform__carworkshop-item--selected {
    border-color: #000;
}
.qiform__carworkshop-item--selected:after {
    content: '\2713';
}
.qiform__carworkshop-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
.qiform__carworkshop-messages {
    padding: 10px 0;
}

#center_id-error {
    display: none;
}
.error #center_id-error {
    display: block;
    margin-top: 10px;
}

/* ELEMENT SPECIFIC STYLES */
.element {
    display: block;
    padding: 2em 0;
    margin: 2em 0;
}

/* LOGIN FORM SPECIFIC STYLES */
.login-form {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    max-width: 500px;
    padding: 2em;
    margin: 6em auto;
}

.welcome-message {
    text-align: center;
    background: var(--color-primary);
    color: #fff;
    padding: 2em;
    border-radius: 5px;
}

/* LEAD FORM SPECIFIC STYLES */
.lead-form {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 5px;

    input[type="text"], 
    input[type="email"] {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
        line-height: 1.5;
        color: #333;
        background-color: #fff;

        &:focus {
            border-color: #000;
        }
    }

    label {
        margin-bottom: 5px;
        display: block;
    }
}

button, .button {
    background: var(--color-primary);
    color: #fff;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid var(--color-primary);
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: bold;
    display: inline-block;

    &:hover {
        background: transparent;
        color: var(--color-primary);
    }
}


.lead-form__item {
    padding: 10px;
}

.lead-form__item button {
    margin-top: 10px;
}

.lead-form__item--middle {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.coc-container {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #ccc;
    padding-left: 2em;
    padding-right: 2em;
    border-radius: 5px;
}

input.error {
    border-color: red !important;
}

label.error {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

#form-message:not(:empty) {
    font-size: 0.9em;
    margin-top: 5px;
    padding: 20px;
}
.form-message--error {
    color: red;
}

.form-message--success {
    color: green;
}

/* SUPPORT SPECIFIC STYLES */
.qiform__support {
    background: var(--color-primary);
    padding: 20px;
    border-top: 1px solid #fff;
    color: #fff;
    font-size: 1.1em;

    a {
        color: #fff;

        &:hover {
            text-decoration: underline;
        }
    }
}

@media screen and (max-width: 768px) {
    .login-form {
        input, button {
            width: 100%;
        }

        button {
            margin-top: 10px;
        }
    }

    .lead-form {
        button {
            width: 100%;
        }
    }

    .button {
        width: 100%;
        text-align: center;
    }

    .coc-container {
        padding-left: 1em;
        padding-right: 1em;
    }
    .qiform__support ul li {
        text-align: center;
        margin: 20px 0;
    }
}
@media screen and (min-width: 769px) {
    .login-form {
        form {
            display: flex;

            input[type="text"] {
                flex-grow: 1;
            }
        }
    }
    .lead-form__container {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .lead-form__item--half {
        width: 50%;
    }

    .coc-container {
        background: url('/assets/images/car-shape.webp') no-repeat center right;
    }

    .qiform__support ul {
        display: flex;   
        justify-content: space-around;
        gap: 0;
    }
}

/* FORM MODULE SPECIFIC STYLES, SHOULD BE MOVED TO PLUGIN EVENTUALLY */
@media screen and (max-width: 768px) {
    [data-responsive] span {
        display: none;
    }

    [data-responsive]::after {
        content: attr(data-responsive);
    }

    .qiform__entry ul {
        justify-content: space-between;
    }
}