/* Custom CSS for FleetDeals HTML Forms */

/* Body and general styling */
body {
/*helvetica font will be used only*/
/*    font-family: Poppins, sans-serif !important;*/
    background-color: #f8f9fa;
}

/* Color scheme from JSON */
.color-white { color: #ffffff !important; }
.color-black { color: #000000 !important; }
.color-grey-dark { color: #6c757d !important; }
.color-blue { color: #007bff !important; }
.color-primary { color: #007bff !important; }

/* Background colors */
.bgc-white { background-color: #ffffff !important; }
.bgc-light { background-color: #f8f9fa !important; }

/* Typography */
.fw-semibold { font-weight: 600 !important; }
.fw-regular { font-weight: 400 !important; }
.fw-light { font-weight: 300 !important; }

/* Spacing utilities */
.gap1 { gap: 0.25rem !important; }
.gap2 { gap: 0.5rem !important; }
.gap3 { gap: 1rem !important; }
.gap6 { gap: 3rem !important; }

.pad-3 { padding: 1rem !important; }
.pad-6 { padding: 3rem !important; }
.pad-x-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.pad-x-12 { padding-left: 4.5rem !important; padding-right: 4.5rem !important; }
.pad-y-10 { padding-top: 3.75rem !important; padding-bottom: 3.75rem !important; }
.pad-b-8 { padding-bottom: 3rem !important; }
.pad-b-12 { padding-bottom: 4.5rem !important; }

.mar-b-4 { margin-bottom: 1.5rem !important; }
.mar-b-6 { margin-bottom: 3rem !important; }
.mar-b-12 { margin-bottom: 4.5rem !important; }
.mar-t-4 { margin-top: 1.5rem !important; }
.mar-t-6 { margin-top: 3rem !important; }
.mar-t-12 { margin-top: 4.5rem !important; }
.mar-y-12 { margin-top: 4.5rem !important; margin-bottom: 4.5rem !important; }

/* Border radius */
.border-rad { border-radius: 0.5rem !important; }


/* Navbar styling */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

/* Card styling */
/*.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}*/

/* Form styling */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #198754;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #198754;
}

.was-validated .form-control:valid ~ .valid-feedback,
.form-control.is-valid ~ .valid-feedback {
    display: block;
}

/* Button styling */
/*.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.15s ease-in-out;
}*/



.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

.btn-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
}

.btn-info:hover {
    background-color: #3dd5f3;
    border-color: #31d2f2;
    color: #000;
}

/* Section headers */
h6.text-primary {
    color: #0d6efd !important;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

/* Icon styling */

/* Scrollbar styling */
.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: #ced4da #f8f9fa;
}

.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background-color: #ced4da;
    border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background-color: #adb5bd;
}

/* Responsive adjustments */
/*@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}*/

/* Animation for form validation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-control.is-invalid {
    animation: shake 0.5s ease-in-out;
}

/* Loading state */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success message styling */
.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

/* Error message styling */
.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

/* Hero section styling */
.hero-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* Feature cards styling */
.feature-card {
    background-color: #F7F6FC;
    border-radius: 40px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Truck card styling */
.truck-card {
    transition: all 0.3s ease;
}


.navbar_search {
    border-radius: 56px !important;
    background: var(--Light-2, #F2F2F5);
    /* width: 473px;
    height: 58px; */
    flex-shrink: 0;
}

.body-xl {
    color: var(--P2, #FFF);
    font-family: "Urbanist", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.btn_signup {
    display: inline-flex;
    padding: 14px 30px 14px 29px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid var(--P2, #FFF);
    color: var(--P2, #FFF);
    font-family: "Urbanist", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    background: #53354A;
}

.btn_login {
    display: inline-flex;
    padding: 14px 38px 14px 39px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: var(--P2, #FFF);
    color: var(--P1, #53354A);
    font-family: "Urbanist", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.search_icon {
    /* // width: 35.289px;
    // height: 35.036px; */
    width: 30.289px;
    height: 30.036px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--P1, #53354A);
    justify-content: center;
    align-items: center;
    display: flex;
}

.custom-icon-group.input-end input {
    padding-right: 40px;
}

/* Form Submit Button Styling */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

button[type="submit"]:not(:disabled) {
    opacity: 1;
    cursor: pointer;
}

/* Invalid input styling */
.input-custom.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Field error message styling */
.field-error {
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
    display: block;
    line-height: 1.2;
}

.field-error::before {
    content: "⚠ ";
    font-weight: bold;
}

/* Ensure error messages don't break layout */
.custom-icon-group {
    position: relative;
}

/*.is-invalid:hover {
    outline: 1px solid var(--danger-color) !important;
}*/

.custom-icon-group .field-error {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    /* z-index: 10; */
    background: white;
padding: 0.15rem 0.25rem;
    /* border-radius: 0.25rem; */
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    margin-top: 0.25rem;
}

/* Custom Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.custom-toast {
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.custom-toast.slide-out {
    animation: slideOutRight 0.3s ease-in;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive toast notifications */
@media (max-width: 768px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .custom-toast {
        min-width: auto;
        max-width: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation active states */
.navbar-nav button[data-page].active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.navbar-nav button[data-page]:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* Feature cards */
.feature-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


/* Modal transition effects */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Close button styling */
/*[data-bs-dismiss="modal"] {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-bs-dismiss="modal"]:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

[data-bs-dismiss="modal"]:active {
    transform: scale(0.95);
}*/

/* Modal backdrop click area */
.modal-backdrop {
    cursor: pointer;
}

/* Ensure modals close properly */
.modal {
    z-index: 1055;
}

.modal-backdrop {
    z-index: 1050;
}

.location_search {
    /* // width: 844px; */
height: 60px;
flex-shrink: 0;
border-radius: 56px;
background: #FFF;
box-shadow: 0px 0px 44px 12px rgba(0, 0, 0, 0.07);
}

.location_search_icon {
  width: 48.407px;
height: 48.407px;
flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--Dark-1, #28293D);
    justify-content: center;
    align-items: center;
    display: flex;
}
/*
[data-bs-dismiss="modal"]:hover{
    background-color: transparent !important;
}*/

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 20px;
    height: 48px;
}

.pagination-info {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    margin: 0;
}

.pagination-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
}

#page-numbers {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pagination-btn {
    padding: 6px 12px;
    border: none;
    background: none;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 32px;
    height: 32px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

.pagination-btn:hover {
    color: #495057;
}

.pagination-btn.active {
    color: #495057;
    font-weight: 600;
}

.pagination-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pagination-btn:disabled:hover {
    color: #6c757d;
}

.truck-card {
    display: block;
}

.truck-card.hidden {
    display: none;
}

/* Modal Custom Styling */
.report-option-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e9ecef;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.report-option-indicator.active {
    background-color: #495057;
    border-color: #495057;
}

.report-option-indicator.active::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Custom radio button styling */
.form-check-input[type="radio"] {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    background-color: #f8f9fa;
    cursor: pointer;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
}

.form-check-input[type="radio"]:checked {
    background-color: #495057;
    border-color: #495057;
}

.form-check-input[type="radio"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Report option styling */
.form-check {
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #f8f9fa;
}

.form-check:hover {
    border-color: #e9ecef;
    background-color: #f8f9fa;
}

.form-check:has(input[type="radio"]:checked) {
    border-color: #495057;
    background-color: #f8f9fa;
}

/* Modal form styling */
.modal-content {
    border: none !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.modal-header {
    border-bottom: 1px solid #e9ecef !important;
}

.modal-footer {
    border-top: none !important;
}

/* Character counter styling */
#charCount {
    font-size: 12px;
    color: #6c757d;
}


/* Button hover effects */
/* .btn-primary:hover {
    background-color: #3a3a3a !important;
    border-color: #3a3a3a !important;
} */


a:hover {
    color: inherit;
}

a{
    color:var(--black);
    text-decoration:none;
}

.w-inherit {
    width: inherit !important;
}
.select-dropdown-w {
    width: 150px;
}
/* Responsive pagination */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination-info {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .pagination-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}
