/* Contact Form Input Styling */
.cons-contact-form .form-control:focus {
    border-color: red;
    box-shadow: 0 0 0 0.2rem rgba(255, 94, 21, 0.25);
}

.cons-contact-form .form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.cons-contact-form .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.cons-contact-form .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

/* Active state styling */
.cons-contact-form .form-control:active {
    border-color: red;
}

/* Custom styling for select element */
.cons-contact-form select.is-invalid {
    background-position: right 1.75rem center;
}

/* Improve form styling */
.cons-contact-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

/* Form control styling - more attractive with rounded corners */
.cons-contact-form .form-control {
    height: calc(2.5em + 0.75rem + 2px);
    padding: 1.25rem 0.75rem 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f0f6fe;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Add focus and hover effects for better visual feedback */
.cons-contact-form .form-control:hover {
    border-color: #d0d0d0;
}

.cons-contact-form .form-control:focus {
    border-color: red;
    box-shadow: 0 3px 8px rgba(255, 94, 21, 0.1);
    background-color: #fff;
    outline: none;
}

/* Floating label styling - material design inspired */
.cons-contact-form .form-group label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
    color: #6c757d;
    pointer-events: none;
    transition: all 0.25s ease-out;
    transform-origin: 0 0;
    margin: 0;
    z-index: 1;
}

/* Transition label to smaller size above input when focused or filled */
.cons-contact-form .form-control:focus ~ label,
.cons-contact-form .form-control:not(:placeholder-shown) ~ label {
    transform: translateY(-0.5rem) scale(0.85);
    color: #6c757d;
    font-weight: 500;
}

/* Ensure placeholder is transparent by default but can be shown on focus if needed */
.cons-contact-form .form-control::placeholder {
    color: transparent;
    opacity: 0;
}

/* Optional: Show placeholder on focus if desired */
.cons-contact-form .form-control:focus::placeholder {
    color: #adb5bd;
    opacity: 0.7;
}

/* Button styling */
.cons-contact-form .site-button {
    border-radius: 8px;
    padding: 12px 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cons-contact-form .site-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 94, 21, 0.2);
}

/* Error state styling */
.cons-contact-form .form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.1);
}

.cons-contact-form .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.15);
}

.cons-contact-form .form-control.is-invalid ~ label {
    color: #dc3545;
}

.cons-contact-form .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    margin-left: 0rem;
    font-size: 80%;
    color: #dc3545;
    font-weight: 500;
}

/* Make text area larger and more comfortable */
.cons-contact-form textarea.form-control {
    height: auto;
    min-height: 150px;
    line-height: 1.6;
    padding: 1.25rem 0.95rem;
}

/* Custom styling for select element */
.cons-contact-form select.form-control {
    padding-top: 1.25rem;
    height: calc(2.5em + 0.75rem + 2px);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    cursor: pointer;
}

.cons-contact-form select.is-invalid {
    background-position: right calc(1.5em + 0.1875rem) center;
}

/* Focus and active states for select */
.cons-contact-form select.form-control:focus {
    border-color: red;
    box-shadow: 0 4px 10px rgba(255, 94, 21, 0.15);
}

/* Styling for the entire contact form container */
.contact-form-outer {
    padding: 30px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(41, 40, 40, 0.5);
    transition: all 0.3s ease;
}

.contact-form-outer:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Improve form styling with better spacing */
.cons-contact-form .form-group {
    margin-bottom: 2rem;
    position: relative;
}

/* Form control styling - more attractive with glossy finish */
.cons-contact-form .form-control {
    height: calc(2.5em + 0.75rem + 2px);
    padding: 1.25rem 0.95rem 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #f0f6fe;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    font-size: 1rem;
    color: #495057;
}

/* Add subtle hover effect */
.cons-contact-form .form-control:hover {
    border-color: #d0d0d0;
    background-color: #f0f6fe;
}

/* Enhance focus effect */
.cons-contact-form .form-control:focus {
    border-color: red;
    border-width: 1.5px;
    box-shadow: 0 4px 10px rgba(255, 94, 21, 0.15);
    background-color: #fff;
    outline: none;
}

/* Floating label styling - material design inspired */
.cons-contact-form .form-group label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #6c757d;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: 0 0;
    margin: 0;
    z-index: 1;
}

/* Transition label to smaller size above input when focused or filled */
.cons-contact-form .form-control:focus ~ label,
.cons-contact-form .form-control:not(:placeholder-shown) ~ label {
    transform: translateY(-0.5rem) scale(0.85);
    color: #6c757d;
    font-weight: 500;
}

/* Change label color when focused */
.cons-contact-form .form-control:focus ~ label {
    color: red;
}

/* Button styling with animation */
.cons-contact-form .site-button {
    border-radius: 10px;
    padding: 15px 30px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 94, 21, 0.2);
}

.cons-contact-form .site-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 94, 21, 0.25);
}

.cons-contact-form .site-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 94, 21, 0.2);
}

/* Error state styling */
.cons-contact-form .form-control.is-invalid {
    border-color: #dc3545;
    border-width: 1.5px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.15);
}

.cons-contact-form .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.cons-contact-form .form-control.is-invalid ~ label {
    color: #dc3545;
}

.cons-contact-form .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 80%;
    color: #dc3545;
    font-weight: 500;
}

/* Add subtle transition animation for all form elements */
.cons-contact-form .form-group * {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
