﻿/* Container for each input and label */
.cart-input-container {
    position: relative;
    margin-bottom: 25px; /* Adjusted for spacing after the label moves up */
}
/* Textbox styles */
.cart-textbox {
    margin: 0; /* Remove any default margins */
    height: 40px; /* Fixed height for consistent layout */
}
/* Base styles for the floating label */
.cart-floating-label {
    position: absolute;
    left: 10px; /* Align with textbox padding-left */
    top: 10px; /* Match textbox padding-top to overlap text area */
    font-size: 16px;
    color: #999;
    transition: all 0.2s ease; /* Smooth animation */
    pointer-events: none; /* Prevent label from blocking input clicks */
    background-color: white; /* Cover textbox border/content when overlapping */
    padding: 0 5px; /* Small padding for readability */
}
/* Move label up when input is focused or has value */
.cart-input-container .cart-textbox:focus ~ .cart-floating-label,
.cart-input-container .cart-textbox:disabled + .cart-floating-label,
.cart-input-container select:disabled + .cart-floating-label,
.cart-input-container .cart-textbox:not(:placeholder-shown) ~ .cart-floating-label {
    top: -10px; /* Move above the textbox */
    font-size: 12px;
    color: #333;
}


/* Highlight input border on focus */
.cart-input-container .cart-textbox:focus {
    border-color: #66afe9;
    outline: none;
}
/* Style the validation summary container */
.validation-summary {
    background-color: #f8d7da; /* Light red background */
    border: 1px solid #f5c6cb; /* Red border */
    padding: 15px;
    border-radius: 5px;
    width: 100%;
    max-width: 300px;
}
/* Remove bullet points from the list */
.validation-summary ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
/* Space out the error messages */
.validation-summary li {
    margin: 5px 0;
}
.fixed-textarea {
    resize: none;
}
.custom-checkbox {
    position: relative;
    display: inline-block;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-checkbox label {
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    line-height: 20px;
}
.custom-checkbox label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    background-color: white;
    box-sizing: border-box;
}

.custom-checkbox input[type="checkbox"]:checked + label::before {
    background-color: #007bff;
    border-color: #007bff;
}

.custom-checkbox label::after {
    content: '\2713';
    position: absolute;
    left: 3px;
    top: -1px;
    font-size: 14px;
    color: white;
    display: none;
}

.custom-checkbox input[type="checkbox"]:checked + label::after {
    display: block;
}
.form-step {
    margin-bottom: 20px;
}

.step-title {
    font-size: 1.5em;
    color: #1C5D8E;
    margin-bottom: 10px;
}

.step-description {
    margin-bottom: 15px;
    color: #666;
}

.step-navigation {
    margin-top: 15px;
    text-align: center;
}

.form-btn {
    padding: 10px 20px;
    background-color: #1C5D8E;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.form-btn:hover {
    opacity: 0.8;
}

.input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.step-fields {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.form-btn.prev {
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.form-btn.next, .form-btn.submit {
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.step-fields.visible {
    transform: translateY(0);
    opacity: 1;
}

.form-btn.visible {
    transform: translateX(0);
    opacity: 1;
}

.animate-fields {
    animation: slideUp 0.5s ease-out;
}

.animate-prev {
    animation: slideRight 0.5s ease-out;
}

.animate-next {
    animation: slideLeft 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.form-radio-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.form-radio-button {
    margin: 0 5px;
}

.form-radio-button input[type="radio"] {
    display: none;
}

.form-radio-button label {
    display: inline-block;
    padding: 6px 12px;
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #cccccc;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    border-radius: 5px;
    user-select: none;
}

.form-radio-button input[type="radio"]:checked + label {
    border-color: #1C5D8E;
    background-color: #f8f9fa;
}
