.contact-form {
    font-size: 32px;
    line-height: 1.5; /* Adjust line height as needed */
    max-width: 800px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 32px;
    margin-bottom: 64px;
    padding: 50px;
    background: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 1s ease;
}

.contact-form p {
    margin: 10px 0;
    transition: filter 0.5s ease; /* Adjust time and easing here */
}

.form-group {
    display: inline-block; /* Allows the group to behave as an inline element */
    margin-right: 10px; /* Spacing between groups */
}

.contact-form input[type="text"], 
.contact-form input[type="email"], 
.contact-form input[type="tel"] {
    background: transparent;
    padding: 8px;
    font-size: 32px;
    line-height: 1.5; /* Adjust line height as needed */
    border: none;
    border-bottom: 1px solid #000;
    display: inline-flex; /* Allows text to flow like inline elements */
    flex-wrap: wrap; /* Allows elements to wrap to the next line */
    word-break: break-all; /* Break words at the end of the line */
    white-space: nowrap; /* Keep the input text in a single line */
    outline: none;
    min-width: 100px; /* Set a minimum width */
    max-width: 80%; /* Ensure it doesn't overflow the container */
    box-sizing: border-box; /* Include padding and border in the width */
}

/* Dynamic width for inputs based on content */
.contact-form input[type="text"]:focus, 
.contact-form input[type="email"]:focus, 
.contact-form input[type="tel"]:focus {
    width: calc(100% - 16px);
}

.contact-form input[type="text"]:focus, 
.contact-form input[type="email"]:focus, 
.contact-form input[type="tel"]:focus {
    background-color: #f4f4f4;
}

/* new: from implemenation = phone input validation */
.contact-form input.invalid {
    border-bottom: 2px solid #d9534f;
    background-color: #fff8f8;
    transition: border 0.3s ease, background-color 0.3s ease;
}

.contact-form button {
    padding: 10px 20px;
    background-color: #011936; /* Dark blue background */
    color: #f4f4f4; /* White text */
    cursor: pointer;
    border: 1px solid #011936; /* Matches background */
    border-radius: 4px; /* Rounded corners */
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.contact-form button:hover {
    background-color: #0056b3; /* Lighter blue on hover */
    color: #f4f4f4; /* Keep text white */
    border-color: #0056b3; /* Matches hover background */
}

/* Disabled button styles */
.contact-form button.disabled {
    background-color: #ccc; /* Gray background */
    color: #666; /* Muted text color */
    cursor: not-allowed; /* Disable hover */
    pointer-events: none; /* Block interaction */
    border: 1px solid #aaa; /* Subtle border */
}

.char-counter {
    font-size: 12px; 
    color: gray; 
    /* display: none; */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.char-counter.show {
    visibility: visible;
    opacity: 1;
}

/* NEW: BUTTON FOR BACK */
button.back-btn {
    background-color: #f5f5f5; /* Light gray background */
    color: #333; /* Darker text color */
    border: 1px solid #ccc; /* Subtle border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth transition */
}

button.back-btn:hover {
    background-color: #e0e0e0; /* Slightly darker gray */
    color: #000; /* Make text black */
    border-color: #999; /* Darker border */
}

button.next-btn {
    background-color: #011936; /* Dark blue background */
    color: #f4f4f4; /* White text */
    border: 1px solid #011936; /* Border matches background */
    border-radius: 4px; /* Rounded corners */
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

button.next-btn:hover {
    background-color: #0056b3; /* Slightly lighter blue on hover */
    border-color: #0056b3; /* Match hover color */
}
/* END: BUTTON */

/* Animation for loading dots */
.loading-dots {
    display: inline-block;
    font-size: 18px;
    font-weight: regular;
    color: #666; /* Matches the disabled button text color */
}

.loading-dots span {
    animation: blink 1.5s infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.3s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes blink {
    0%, 20% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}


.name-infix-row {
    display: flex;
    gap: 0.5rem;
    width: 100;
}

.name-infix-row input[name="name"] {
    flex: 2;
    width: 70%;
}

.name-infix-row input[name="infix"] {
    flex: 1;
    width: 30;
}


/* NEW: status icon for address lookup */
.input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.input-container input {
    width: 100%;
    padding-right: 30px; /* Make space for the checkmark */
    box-sizing: border-box;
}

.input-container .status-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: transparent;
    border-radius: 50%;
    display: none; /* Hidden by default */
}

.input-container.success input {
    border-color: #28a745; /* Green border on success */
    color: #28a745;
}

.input-container.success .status-icon {
    display: inline-block;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="green" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.input-container.hidden {
    opacity: 0; /* Fully visible */
    transform: opacity 0.5s ease; /* Keep slightly offset */
}

.input-container.visible {
    opacity: 1; /* Fully visible */
    transform: opacity 0.5s ease; /* Keep slightly offset */
}
/* END: status icon for address lookup */

/* NEW: DOG BREED SUGGESTIONS */
.suggestions {
    border: 1px solid #ccc;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    background: #fff;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    width: 100%;
}

.suggestions li {
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth color */
    font-size: 0.85em; /* Smaller font size */
}

.suggestions li:hover {
    background: #f0f0f0;
}

.suggestions li .alias {
    display: block; /* Make it appear as a new line */
    font-size: 0.75em; /* Smaller font size */
    color: #888; /* Light gray color */
    margin-top: 4px; /* Add some spacing */
}
/* END: DOG BREED SUGGESTIONS */

/* NEW FORM TEST */
#form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

#progress {
    height: 100%;
    background: #011936;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.form-step {
    margin-top: 48px;
    margin-bottom: 24px;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.form-step.active {
    opacity: 1;
    visibility: visible;
    position: relative; /* To reset positioning */
}

.call-to-action {
    color: #007BFF;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.call-to-action:hover {
    color: #0056b3;
}

.form-step[data-step="final"] {
    text-align: center;
}

.question-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #011936;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #f4f4f4;
    color: #011936;
    border: 1px solid #011936;
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
/* END, NEW FORM TEST */


/* Overlay (old) */
.form-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s;
    z-index: 2000; /* Ensure it's above other content */
}

.form-success-overlay.show {
    visibility: visible;
    opacity: 1;
}

.form-success-content {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    z-index: 3000;
}

.form-success-content.show {
    visibility: visible;
    opacity: 1;
}

.form-success-message {
    display: block;
    font-size: 14px;
    font-weight: 500;
    padding-top: 16px;
    margin-top: 12px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 12px;
    color: #333;
    z-index: 3001;
}

.form-success-close {
    position: absolute;
    top: 8px;
    right: 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: gray;
    z-index: 3001;
}

.consent-container {
    margin-top: 20px;
    display: flex; /* Ensures horizontal layout */
    align-items: center; /* Vertically align checkbox and text */
    gap: 12px; /* Add spacing between checkbox and text */
}

.consent-label {
    font-size: 0.975rem; /* Adjust text size */
    color: #666; /* Text color */
    line-height: 1.6em; /* Improve readability */
}

.consent-label input[type="checkbox"] {
    margin: 0; /* Remove unwanted margin */
    padding: 0; /* Ensure no extra padding */
    vertical-align: middle; /* Align checkbox with text */
    margin-right: 12px;
    width: 24px;
}

.terms-checkbox {
    width: 20px; /* Adjust width */
    height: 20px; /* Adjust height */
    border: 2px solid #666; /* Border color */
    border-radius: 4px; /* Rounded corners */
    border-color: #666;
    background-color: #fff; /* Background color */
    appearance: none; /* Removes default browser styling */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.2s, border-color 0.2s; /* Smooth transitions */
    position: relative; /* Ensure pseudo-element positions relative to the checkbox */
}

/* Checked state */
.terms-checkbox:checked {
    background-color: #333; 
    border-color: #333; /* Match border with background */
}

.terms-checkbox.unchecked:not(:checked) {
    border-color: var(--warning-border-color); /* Highlight border for unchecked state */
}

/* Add a cross mark using a pseudo-element */
.terms-checkbox:checked::after {
    content: '𐄂'; /* Use a cross mark symbol */
    color: white; /* Cross color */
    font-size: 32px; /* Adjust size of the cross */
    font-weight: bold; /* Make it bold */
    position: absolute;
    top: 50%; /* Move to the middle of the checkbox */
    left: 50%; /* Move to the middle of the checkbox */
    transform: translate(-50%, -50%); /* Center the symbol */
    line-height: 1; /* Ensure the symbol height doesn't stretch */
    vertical-align: middle;
    margin-top: -6px;
    overflow: hidden;
    box-sizing: border-box;
}

@keyframes borderDotMotion {
    0% {
        border-image-source: linear-gradient(to right, rgba(255, 243, 205, 1) 0%, transparent 100%);
    }
    25% {
        border-image-source: linear-gradient(to bottom, rgba(255, 243, 205, 1) 0%, transparent 100%);
    }
    50% {
        border-image-source: linear-gradient(to left, rgba(255, 243, 205, 1) 0%, transparent 100%);
    }
    75% {
        border-image-source: linear-gradient(to top, rgba(255, 243, 205, 1) 0%, transparent 100%);
    }
    100% {
        border-image-source: linear-gradient(to right, rgba(255, 243, 205, 1) 0%, transparent 100%);
    }
}

@keyframes pulseBorder {
    0% {
        border-width: 2px;
    }
    50% {
        border-width: 4px;
    }
    100% {
        border-width: 2px;
    }
}

.terms-checkbox.pulse {
    animation: pulseBorder 0.5s ease-in-out 2; /* Duration and repeat count */
}

/* .terms-checkbox.pulse { */
/*     border: 4px solid transparent; /1* Make the initial border transparent *1/ */
/*     border-image-slice: 1; /1* Required for border-image *1/ */
/*     animation: borderDotMotion 2s linear infinite; /1* Animate the motion *1/ */
/* } */

/* Hover effect */
.terms-checkbox:hover {
    border-color: #333; /* Darker border on hover */
}

/* Comment Block Styling */
.warning {
    background-color: var(--warning-bg-color);
    border-left: 4px solid var(--warning-border-color); /* Highlighted left border */
    padding: 10px 15px 10px 64px; /* Add padding on the left to make space for the icon */
    margin: 20px 0;
    /* font-family: var(--warning-font-family); */
    color: var(--warning-text-color);
    font-size: 0.85em; /* Slightly smaller than default text */
    border-radius: 4px; /* Subtle rounded corners */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    position: relative; /* Required for positioning the pseudo-element */
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.warning.show {
    visibility: visible;
    opacity: 1;
}

/* Add an encircled '!' using ::before */
.warning::before {
    content: "!";
    position: absolute;
    left: 18px; /* Align it to the left of the block */
    top: 50%;
    transform: translateY(-50%); /* Center vertically */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid var(--warning-text-color); /* Circle border matches the left border color */
    border-radius: 50%; /* Creates a perfect circle */
    background-color: var(--warning-bg-color); /* Match background color of the container */
    color: var(--warning-text-color); /* Match the border color for the '!' */
    font-weight: bold;
    font-size: 0.8em; /* Slightly smaller font size */
    text-align: center;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2); /* Optional shadow for depth */
}

/* Ensure paragraphs inside warnings have no margin */
.warning p {
    margin: 0;
}

