
/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import Roboto font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Define BASF color variables */
:root {
    --black: #000;
    --white: #fff;
    --basf-dark: #333;
    --basf-green: #65AC1E;
    --basf-dark-green: #00793a;
    --basf-light-green: #b7d29d;
    --basf-blue: #0075C9;
    --basf-dark-blue: #004a96;
    --basf-gray: #666;
    --basf-grayborder:#ced4da;
    
     --text-color: var(--black);
    --btn-text-color: var(--white);
    --btn-text-hv-color: var(--white);
    --btn-bg-color: var(--basf-dark-blue);
    --btn-bg-hv-color: var(--basf-blue);
    --link-color: var(--text-color);
    --link-hv-color: var(--basf-dark-blue);
    --input-logical-ckd-bg: var(--basf-dark-blue);
}

/* General font family */
body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #fff;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    font-weight: 400;
}

/* Header styling */
header {
    background-color: #fff;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: left;
    padding-left: 0.9375rem;
    align-items: center;
    background-color: var(--basf-dark-blue);
}

.header-logo {
    height: 4.375rem;
}

.green-line {
    height: 0.375rem;
    background-color: var(--basf-dark-blue);
    width: 100%;
}

.lightgreen-line {
    height: 0.05rem;
    background-color: var(--basf-dark-blue);
    width: 100%;
    margin-bottom: 0.625rem;
}

/* Form container styling */
.form-container {
    background-color: #fff;
    max-width: 60rem;
    width: 100%;
    border-radius: 0.625rem;
    box-shadow: 0 0.25rem 0.3125rem #004a96;
    margin: -8.75rem auto 1.25rem auto;
    padding: 1.25rem;
    z-index: 100;
    position: relative;
}

.form-container-thankyou {
    background-color: #fff;
    max-width: 50rem;
    width: 100%;
    border-radius: 0.625rem;
    box-shadow: 0 0.25rem 0.3125rem #004a96;
    margin: -1.875rem auto 1.25rem auto;
    padding: 1.25rem;
    z-index: 100;
    position: relative;
}

.form-container-thankyous {
    background-color: #fff;
    max-width: 50rem;
    width: 100%;
    border-radius: 0.625rem;
    box-shadow: 0 0.25rem 0.3125rem #004a96;
    margin: -5rem auto 1.25rem auto;
    padding: 1.25rem;
    z-index: 100;
    position: relative;
}

/* Banner image styling */
.image-banner img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* Form headings */
h3 {
    font-size: 1.0rem;
    margin-bottom: 0.9375rem;
}

h2 {
    margin-bottom: 0.9375rem;
    font-size: 1.875rem !important;
   
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}   

p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

a {
    color: var(--link-color);
    text-decoration: underline;
}

a:hover,
a:focus-visible {
    color: var(--link-hv-color);
    text-decoration: none;
}

/* Form row styling */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.form-group-single {
    flex: 0.49;
    min-width: 13.75rem;
    margin-bottom: 1.25rem;
}

.form-group {
    flex: 1;
    min-width: 13.75rem;
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-color);
}

legalconsent {
    font-size: 0.8rem;
    color: var(--text-color);
}

/* Text input styling */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    border: 0.0625rem solid var(--basf-grayborder);
    border-radius: 0.25rem;
    padding: 0.625rem;
    font-size: 0.75rem;
    color: var(--text-color);
    width: 100%;
    transition: border-color 0.3s;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    border-color: var(--basf-grayborder);
    outline: 0.125rem solid;
    outline-offset: 0.25rem;
}

/* Checkbox group styling */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

input[type="checkbox"] {
    margin-right: 0.625rem;
}

/* Feedback section scales */
.scale-group {
    display: flex;
    align-items: center;
    gap: 0.9375rem;
    margin-bottom: 0.9375rem;
}

.scale-group img {
    width: 1.875rem;
    height: 1.875rem;
}

     
    
/* Submit button styling */
button[type="submit"] {
    background-color: var(--btn-bg-color);
    color: var(--btn-text-color);
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 0.3125rem;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 0.625rem;
    margin-bottom: 0.9375rem;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
    background-color: var(--btn-bg-hv-color);
    color: var(--btn-text-hv-color);
}

/* New footer styling */
footer {
    background-color: var(--basf-dark-blue);
    width: 100%;
    color: white;
    padding: 1.25rem;
    text-align: center;
    margin-top: 3.125rem;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}

.footer-logo {
    height: 2.5rem;
}

footer a {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
}

.social-icons img {
    width: 1.5625rem;
    margin-left: 0.625rem;
}

/* Checkbox styling */
input[type="checkbox"]:checked {
    accent-color: var(--input-logical-ckd-bg);
}

input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

/* Checkbox group styling */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    margin-right: 0.5rem;
}



.checkbox-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 0.625rem;
}
.form-groups {
    margin-bottom: 0.625rem;
}



/* Label styling to ensure they align properly */
label {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.error { 
    display: none;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem; 
}
   
.greyed-out {
    opacity: 0.5;
    pointer-events: none;
}

[data-tooltip] {
    position: relative;
    cursor: not-allowed;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -1.5em;
    left: 0;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    font-size: 0.8em;
    white-space: nowrap;
    border-radius: 4px;
    display: none;
}

[data-tooltip]:hover::after {
    display: block;
}


.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    background-color: #fff;
    color: #dc3545;
    padding: 0.625rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    top: 100%;
    left: 0;
    white-space: nowrap;
}
       
.greyout-prefix {
    color: grey;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 7.5rem;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 0.375rem;
    padding: 0.3125rem 0;
    position: absolute;
    z-index: 1;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.phone-input-container {
    display: flex;
    align-items: center;
    border-radius: 0.375rem;
    width: 100%;
    background-color: #fff;
}

.flag-icon {
    width: 1.5rem;
    height: 1rem;
    margin-right: 0.25rem;
}

.country-code {
    background-color: #fff;
    padding: 1px;
    border-radius: 0.25rem;
    margin-right: 0.25rem;
    font-weight: bold;
}

.phone-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1rem;
}

#validation-message {
    color: #dc3545;
    margin-top: 0.3125rem;
}