@font-face {
    font-family: 'HeadBold';
    src: url('fonts/vintec-medium.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'TextRegular';
    src: url('fonts/vintec-light.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'TextRegular', sans-serif;
    background-color: #2b2b2b;
    color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Remove any width constraints that could cause horizontal scroll */
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.vintec-header {
    display: block;
    width: 100%;
    background-color: #2b2b2b;
}

.vintec-header img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 675px) {
    .vintec-header img {
        content: url('../static/images/vintec-header-mobile.png');
    }
}   
.content-column {
    /* Adjust constraints for better mobile scaling */
    max-width: 750px;
    width: 100%;
    padding: 0 1rem; /* Reduce padding on mobile */
    margin: 0 auto;
    font-family: 'TextRegular', sans-serif;
    flex: 1 0 auto;
    box-sizing: border-box; /* Ensure padding is included in width calculation */
}
h1 {
    font-family: 'HeadBold', sans-serif;
    font-size: 2.5rem;
    color: #242221;
    margin-bottom: 0.5rem;
    text-align: center;
}
p {
    font-size: 1.1rem;
    line-height: 1.6;
}

#paragraph-content p {
    text-align: center;
    margin-bottom: 1.5rem;
}

#paragraph-content p:last-child {
    padding-bottom: 1.5rem;
}

label {
    font-family: 'HeadBold', sans-serif;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #c3c4c7;
    text-transform: none;
}

.checkbox-container label {
    font-family: 'TextRegular', sans-serif;
    display: inline;
    margin-left: 0.5rem;
}


input[type="text"], input[type="email"], input[type="number"], input[type="tel"], textarea, select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid hsla(225,3%,77%,.15);
    border-radius: 0;
    background-color: #181818;
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
}

select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
    padding-right: 2rem;
    margin-bottom: 1rem!important;
    font-family: 'TextRegular', sans-serif;
    color: #242221;
}

select::-ms-expand {
    display: none;
}

select option {
    font-family: 'TextRegular', sans-serif;
    color: #242221;
}

textarea {
    margin-bottom: 1rem!important;
    font-family: 'TextRegular', sans-serif;
}

textarea::placeholder {
    font-family: 'TextRegular', sans-serif;
}

input[type="submit"] {

        background: #96172e;
        border: 1px solid #96172e;
        border-radius: 0;
        color: #fff;
        font-size: 18px;
        min-height: 56px;
        padding: 15px 50px;
        text-align: center;
        text-transform: unset;
        transition: .3s;
        margin: 30px 0;
}
input[type="submit"]:hover {
    background: #d2c295;
        border: 1px solid #d2c295;
}
.name-row {
    display: flex;
    justify-content: space-between;
}
.name-row > div {
    width: 46%;
}
.checkbox-container {
    display: flex;
    align-items: flex-start; /* Change from center to flex-start */
    margin-bottom: 1rem;
}
.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 0.2rem; /* Add small top margin to align with first line of text */
    flex-shrink: 0; /* Prevent checkbox from shrinking */
}
.checkbox-container label {
    font-weight: normal;
    color: #ffffff;
    display: block; /* Change from flex to block */
    margin: 0;
    line-height: 2.7; /* Improve line spacing */
    text-transform: none;
}
label a {
    color: #ffffff;
    text-decoration: underline;
}

.form-row {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;

}
.form-row > div {
    width: 48%;
}

.google-recaptcha, .google-recaptcha p {
    margin-top: 22px;
    font-size: 10px;
    color: #999;
}

.google-recaptcha a {
    color: #001e50;
    text-decoration: none;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

.errorlist {
    color: red!important;
    font-size: 0.88rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

footer {
    margin-top: 2rem;
    color: #ffffff;
    font-size: 0.88rem;
    background-color: #000000;
}
footer hr {
    border: 0;
    border-top: 1px solid #ccc;
    /* margin: 1rem 0; */
}
footer a {
    color: #242221;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 4px;
}

th {
    background-color: #f8f9fa;
    color: #242221;
    font-family: 'HeadBold', sans-serif;
    font-weight: normal;
    padding: 1rem 1rem 1rem 2rem;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

td {
    padding: 1rem 1rem 1rem 2rem;
    border-bottom: 1px solid #dee2e6;
    color: #242221;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.button {
    background-color: #242221;
    color: white;
    padding: 0.8rem 3.5rem;
    margin-top: 1rem;
    text-decoration: none;
    border-radius: 99px;
    border: none;
    cursor: pointer;
    font-family: 'HeadBold', sans-serif;
    transition: background-color 0.3s ease;
    font-size: 0.8rem;
    display: inline-block;
}
.button:hover {
    background-color: #6a6a6a;
}

.google-section {
    margin-top: auto;
    padding-top: 2rem;
}

.google-section p {
    font-size: 10px;
    text-align: center;
}

.google-section a {
    color: #001e50;
}

.google-section a:hover {
    color: #001e50;
}


html, body {
    height: 100%;
    margin: 0 auto;
    background-color: #2b2b2b;
}

h1, p {
    color: #ffffff;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-column {
    flex: 1 0 auto;
}

footer.footer-content {
    flex-shrink: 0;
    width: 100%;
    background-color: #000000;
    padding: 1rem 0;
    margin-top: auto;
}

.footer-section {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 0.5rem;
    display: block;
    padding: 0 2rem;
}

.footer-section p {
    margin: 0;
    font-size: 12px;
    display: inline-block;
    margin-right: 1rem;
    color: #ffffff;
}

.footer-section p:last-child {
    margin-right: 0;
}

.footer-section p a {
    color: #ffffff;
    text-decoration: underline;
}

/* Mobile styles - stack the links */
@media (max-width: 768px) {
    .footer-section p {
        display: block;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .footer-section p:last-child {
        margin-bottom: 0;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .checkbox-container {
        align-items: flex-start;
    }
    
    .checkbox-container label {
        font-size: 0.9rem; /* Slightly smaller text on mobile */
        line-height: 1.5; /* Better line spacing for mobile */
    }
    
    /* Ensure links don't break awkwardly */
    .checkbox-container label a {
        display: inline; /* Keep links inline */
        word-break: keep-all; /* Prevent breaking within words */
    }
}

/* New form field styling */
.form-field {
    border: 1px solid hsla(225, 3%, 77%, .15);
    display: flex;
    flex-direction: column;
    height: 68px;
    padding: 5px 30px;
    position: relative;
    width: 100%;
    margin: 0 0 15px;
    background-color: #2b2b2b;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.form-field:focus-within {
    border-color: #96172e;
}

.field-label {
    font-family: 'HeadBold', sans-serif;
    font-size: 0.9rem;
    color: #c3c4c7;
    text-transform: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 8px;
    left: 30px;
    z-index: 1;
    pointer-events: none;
    transition: all 0.2s ease;
}

.form-field input,
.form-field textarea {
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 1rem;
    padding: 25px 0 8px 0;
    margin: 0;
    width: 100%;
    outline: none;
    font-family: 'TextRegular', sans-serif;
}

.form-field textarea {
    resize: vertical;
    min-height: 60px;
    height: 68px;
}

/* Adjust height for textarea fields */
.form-field:has(textarea) {
    height: auto;
    min-height: 68px;
}

/* Error styling */
.form-field.field-error {
    border-color: #d32f2f;
}

.form-field .error-text {
    position: absolute;
    bottom: 0px;
    left: 30px;
    font-size: 0.75rem;
    color: #d32f2f;
}

/* Checkbox container adjustments - remove border styling */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 0; /* Remove padding */
    background-color: transparent; /* Remove background */
    height: auto;
    min-height: auto; /* Remove min-height */
    width: 100%; /* Ensure same width as other fields */
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 0.2rem;
    flex-shrink: 0;
    /* Custom checkbox styling */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid #898b8b;
    background: #2b2b2b;
    border-radius: 0;
    cursor: pointer;
    position: relative;
}

.checkbox-container input[type="checkbox"]:checked {
    background: #2b2b2b;
    border-color: #898b8b;
}

.checkbox-container input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0px;
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input[type="checkbox"]:focus {
    outline: none;
    /* Remove the red border on focus for checkboxes */
    border-color: #898b8b;
}

.checkbox-container label {
    font-weight: normal;
    color: #ffffff;
    display: block;
    margin: 0;
    line-height: 2;
    text-transform: none;
    font-size: 0.75rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .form-field {
        padding: 5px 20px;
    }
    
    .field-label {
        left: 20px;
    }
    
    .form-field .error-text {
        left: 20px;
    }
    
    /* Remove checkbox container mobile padding */
    .checkbox-container {
        padding: 0;
    }
}

/* Mobile adjustments - improve scaling */
@media (max-width: 768px) {
    .content-column {
        padding: 0 0.5rem; /* Even smaller padding on mobile */
        max-width: 100%; /* Allow full width on mobile */
    }
    
    .form-field {
        padding: 5px 15px; /* Reduce form field padding */
        margin: 0 0 10px; /* Reduce margin */
    }
    
    .field-label {
        left: 15px; /* Adjust label position */
        font-size: 0.8rem; /* Smaller label text */
    }
    
    .form-field .error-text {
        left: 15px;
        font-size: 0.7rem; /* Smaller error text */
    }
    
    /* Adjust submit button for mobile */
    input[type="submit"] {
        padding: 15px 30px; /* Reduce button padding */
        font-size: 16px; /* Smaller font */
        margin: 20px 0;
        width: 100%; /* Full width button on mobile */
        box-sizing: border-box;
    }
    
    /* Ensure footer doesn't cause overflow */
    .footer-section {
        padding: 0 0.5rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .content-column {
        padding: 0 0.25rem; /* Minimal padding */
    }
    
    .form-field {
        padding: 5px 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .field-label {
        left: 10px;
        font-size: 0.75rem;
    }
    
    .form-field .error-text {
        left: 10px;
    }
    
    /* Adjust heading for very small screens */
    h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    #paragraph-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Ensure submit button doesn't overflow */
    input[type="submit"] {
        padding: 15px 20px;
        width: 100%;
        box-sizing: border-box;
    }
}
