@font-face {
    font-family: 'thsarabun';
    src: url('THSARABUN BOLD.TTF');
    font-weight: bold;
}

@font-face {
    font-family: "thsarabun";
    src: url("THSARABUN ITALIC.ttf");
    font-style: italic;
}

@font-face {
    font-family: "thsarabun";
    src: url("THSARABUN BOLD ITALIC.ttf");
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'thsarabun';
    src: url('THSARABUN.TTF');
    font-style: normal;
}


@media (orientation: landscape) {
    body {
        flex-direction: row;
    }
    html {
        font-size: 20px;
    }


    input[type="checkbox"] {
        width: 30px;
        height: 30px;
    }

    .btn {
        height: 50px;
        width: 220px;
        font-size: 20px;
        text-align: center;
        line-height: inherit;
        margin: 10px auto;
    }
}

@media (orientation: portrait) {
    body {
        flex-direction: column;
    }
    html {
        font-size: 16px;
    }


    input[type="checkbox"] {
        width: 150px;
        height: 150px;
    }


    .btn {
        height: 100px;
        width: 220px;
        font-size: 30px;
        text-align: center;
        line-height: inherit;
        margin: 10px auto;
    }
}



html {
    position: relative;
    min-height: 100%;
}

h1, .h1 {
    font-size: 30px;
    font-weight: bold;
    display: block;
}

h3, .h3 {
    font-size: 28px;
    font-weight: bold;
    display: block;
    padding-left: 4px;
}


h5 {
    font-size: 26px;
    font-weight: bolder;
}

ol {
    counter-reset: item;
    padding-left: 15px;
}

lin {
    display: block
}

    lin:before {
        content: counters(item, ".")". ";
        white-space: pre;
        counter-increment: item
    }

body {
    margin-bottom: 10px;
    font-family: "thsarabun";
    font-size: 24px;
}


p {
    margin-top: 0;
    margin-bottom: 0;
}

.btn-outline-pink {
    color: deeppink;
    border-color: deeppink;
}

    .btn-outline-pink:hover {
        color: #fff;
        background-color: deeppink;
        border-color: deeppink;
    }

    .btn-outline-pink:focus, .btn-outline-pink.focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 20, 147, 0.5);
    }

    .btn-outline-pink.disabled, .btn-outline-pink:disabled {
        color: deeppink;
        background-color: transparent;
    }

    .btn-outline-pink:not(:disabled):not(.disabled):active, .btn-outline-pink:not(:disabled):not(.disabled).active,
    .show > .btn-outline-pink.dropdown-toggle {
        color: #fff;
        background-color: deeppink;
        border-color: deeppink;
    }

        .btn-outline-pink:not(:disabled):not(.disabled):active:focus, .btn-outline-pink:not(:disabled):not(.disabled).active:focus,
        .show > .btn-outline-pink.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.2rem rgba(255, 20, 147, 0.5);
        }


/* Modern Button Styling */
.btn-pink {
    color: #fff;
    background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-pink::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-pink:hover {
    color: #fff;
    background: linear-gradient(135deg, #ad1457 0%, #880e4f 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.35);
}

.btn-pink:hover::before {
    left: 100%;
}

.btn-pink:focus, .btn-pink.focus {
    color: #fff;
    background: linear-gradient(135deg, #ad1457 0%, #880e4f 100%);
    box-shadow: 0 0 0 0.25rem rgba(233, 30, 99, 0.25), 0 8px 20px rgba(255, 23, 68, 0.35);
    outline: none;
}

/* Prevent service worker registration errors */
html {
    /* Disable service worker registration */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Service worker prevention */
body {
    /* Ensure document is in valid state */
    position: relative;
    overflow-x: hidden;
}

/* Select2 minimal overrides: width and performance (no extra effects) */
.select2-container,
.select2-container--bootstrap-5,
.select2-container .select2-selection--single,
.select2-container .select2-selection {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    transition: none !important;
}

.select2-container--bootstrap-5 .select2-selection,
.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field,
.select2-container--bootstrap-5 .select2-results__option {
    box-shadow: none !important;
    transition: none !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow,
.select2-container--bootstrap-5 .select2-selection__clear:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Select2 Dropdown Positioning - Prevent overflow */
.select2-container--bootstrap-5 .select2-dropdown {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.select2-container--open .select2-dropdown {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Responsive dropdown width based on container */
@media (max-width: 768px) {
    .select2-container--bootstrap-5 .select2-dropdown,
    .select2-container--open .select2-dropdown {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
}

/* Fix for dropdown positioning in different screen positions */
.select2-dropdown {
    position: absolute !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
}

.btn-pink.disabled, .btn-pink:disabled {
    color: #fff;
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-pink:not(:disabled):not(.disabled):active, .btn-pink:not(:disabled):not(.disabled).active,
.show > .btn-pink.dropdown-toggle {
    color: #fff;
    background: linear-gradient(135deg, #b71c1c 0%, #8d0000 100%);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 23, 68, 0.4);
}

.btn-pink:not(:disabled):not(.disabled):active:focus, .btn-pink:not(:disabled):not(.disabled).active:focus,
.show > .btn-pink.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.25rem rgba(233, 30, 99, 0.25), 0 2px 8px rgba(255, 23, 68, 0.4);
}

.btn-outline-grey {
    color: #dddddd;
    border-color: #dddddd;
}

    .btn-outline-grey:hover {
        color: #fff;
        background-color: #dddddd;
        border-color: #dddddd;
    }

    .btn-outline-grey:focus, .btn-outline-grey.focus {
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
    }

    .btn-outline-grey.disabled, .btn-outline-grey:disabled {
        color: #dddddd;
        background-color: transparent;
    }

    .btn-outline-grey:not(:disabled):not(.disabled):active, .btn-outline-grey:not(:disabled):not(.disabled).active,
    .show > .btn-outline-grey.dropdown-toggle {
        color: #fff;
        background-color: #dddddd;
        border-color: #dddddd;
    }

        .btn-outline-grey:not(:disabled):not(.disabled):active:focus, .btn-outline-grey:not(:disabled):not(.disabled).active:focus,
        .show > .btn-outline-grey.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
        }


.btn-grey {
    color: #000000;
    background-color: #dddddd;
    border-color: #dddddd;
}

    .btn-grey:hover {
        color: #404040;
        background-color: #e6e6e6;
        border-color: #f2f2f2;
    }

    .btn-grey:focus, .btn-grey.focus {
        color: #808080;
        background-color: #e6e6e6;
        border-color: #f2f2f2;
        box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
    }

    .btn-grey.disabled, .btn-grey:disabled {
        color: #fff;
        background-color: #dddddd;
        border-color: #dddddd;
    }

    .btn-grey:not(:disabled):not(.disabled):active, .btn-grey:not(:disabled):not(.disabled).active,
    .show > .btn-grey.dropdown-toggle {
        color: #fff;
        background-color: #f2f2f2;
        border-color: #cc0052;
    }

        .btn-grey:not(:disabled):not(.disabled):active:focus, .btn-grey:not(:disabled):not(.disabled).active:focus,
        .show > .btn-grey.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
        }


.bg-pink {
    --bs-bg-opacity: 1;
    background-color: DeepPink;
}
.required .control-label:after {
    content: " *";
    color: red;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.form-dropdown {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    height: auto;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: auto;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

/* Select2 Custom Styling - Modern Bootstrap 5 Theme with Performance Optimization */
.select2-container--bootstrap-5 .select2-selection {
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    min-height: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.select2-container--bootstrap-5 .select2-selection--single {
    padding: 0.375rem 0.5rem;
    height: 32px !important;
    min-height: 32px !important;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #2d3748;
    line-height: 1.6;
    padding-left: 0;
    padding-right: 45px;
    font-weight: 500;
    /* Fix text positioning */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block; 
    box-sizing: border-box;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 32px;
    right: 6px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    width: 16px;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    height: 0;
    left: 50%;
    margin-left: -6px;
    margin-top: -3px;
    position: absolute;
    top: 50%;
    width: 0;
    display: block;
}

/* ปรับตำแหน่งปุ่ม Clear (X) ให้อยู่ด้านขวา - Modern Style */
.select2-container--bootstrap-5 .select2-selection__clear {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    z-index: 2;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.select2-container--bootstrap-5 .select2-selection__clear:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(233, 30, 99, 0.3);
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: #e91e63;
    box-shadow: 0 0 0 0.25rem rgba(233, 30, 99, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection--single .select2-selection__arrow {
    transform: rotate(180deg);
}

/* Enhanced Dropdown with Performance Optimization */
.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    margin-top: 2px;
    max-height: 250px;
    z-index: 9999 !important;
    position: absolute !important;
    display: block !important; 
    box-sizing: border-box !important;
}

.select2-container--bootstrap-5 .select2-search--dropdown {
    padding: 0.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    padding: 0.375rem 0.5rem;
    background: #ffffff;
    transition: all 0.2s ease; 
    box-sizing: border-box;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 0.125rem rgba(233, 30, 99, 0.15);
    outline: none;
}

/* Enhanced Results Container - Fixed Scrolling Issues */
.select2-container--bootstrap-5 .select2-results {
    max-height: 200px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0;
    margin: 0;
    /* Fix scrolling issues */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: auto;
    /* Remove transform that might interfere with scrolling */
    position: relative;
    /* Ensure proper pointer events */
    pointer-events: auto;
    /* Force proper scrolling behavior */
    scroll-behavior: smooth;
}

.select2-container--bootstrap-5 .select2-results__options {
    max-height: none !important; /* Remove max-height completely */
    overflow: visible !important;
    /* Ensure options container doesn't interfere with scrolling */
    min-height: auto;
    height: auto;
    /* Fix for scrolling container */
    display: block !important;
    position: relative !important;
    /* Ensure proper scrolling */  
    padding-bottom: 8px !important;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 0.375rem 0.75rem;
    transition: background-color 0.15s ease, color 0.15s ease;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    display: block; 
    box-sizing: border-box;
    min-height: 32px;
    line-height: 1.4;
    font-size: 0.875rem;
    /* Ensure clickable */
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.select2-container--bootstrap-5 .select2-results__option:last-child {
    border-bottom: none;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%);
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.select2-container--bootstrap-5 .select2-results__option--selected {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    color: #2d5016;
    font-weight: 600;
    position: relative;
}

.select2-container--bootstrap-5 .select2-results__option--selected::after {
    content: "✓";
    position: absolute;
    right: 1rem;
    color: #4caf50;
    font-weight: bold;
}

/* Loading State */
.select2-container--bootstrap-5 .select2-results__option--loading {
    padding: 1rem;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

.select2-container--bootstrap-5 .select2-results__option--loading::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    border: 2px solid #e5e7eb;
    border-top-color: #e91e63;
    border-radius: 50%;
    animation: select2-spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes select2-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results State */
.select2-container--bootstrap-5 .select2-results__option--no-results {
    padding: 1rem;
    text-align: center;
    color: #9ca3af;
    font-style: italic;
}

/* Custom Scrollbar for Results - Fixed Scrolling */
.select2-container--bootstrap-5 .select2-results::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/* Fix for scrolling container */
.select2-container--bootstrap-5 .select2-results {
    /* Force proper scrolling behavior */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 160px !important;
    /* Fix for mobile devices */
    -webkit-overflow-scrolling: touch !important;
    /* Ensure proper height calculation */
    height: auto !important;
    min-height: 0 !important;
    /* Fix for scrolling */
    scroll-behavior: smooth !important;
    /* Ensure scrolling works properly */
    position: relative !important;
    display: block !important;
    /* Fix for bottom scrolling */
    padding-bottom: 12px !important;
    /* Ensure proper width */
    width: 100% !important;
}

.select2-container--bootstrap-5 .select2-results::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 4px;
    margin: 2px;
}

.select2-container--bootstrap-5 .select2-results::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    min-height: 20px; /* Ensure minimum thumb size */
}

.select2-container--bootstrap-5 .select2-results::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.select2-container--bootstrap-5 .select2-results::-webkit-scrollbar-corner {
    background: #f1f3f4;
}

/* Additional fixes for scrolling issues */
.select2-container--bootstrap-5 .select2-dropdown {
    /* Ensure dropdown doesn't interfere with scrolling */
    position: absolute;
    z-index: 9999;
    /* Fix for dropdown positioning */
    box-sizing: border-box;
}

/* Fix for Firefox scrolling */
.select2-container--bootstrap-5 .select2-results {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f1f3f4;
}

/* Ensure proper height calculation for all options */
.select2-container--bootstrap-5 .select2-results__option {
    /* Force proper box model */
    box-sizing: border-box !important;
    /* Ensure consistent height */
    min-height: 44px; /* Minimum touch target size */
    display: flex;
    align-items: center;
    /* Fix text overflow */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fix for very long option text */
.select2-container--bootstrap-5 .select2-results__option {
    word-wrap: break-word;
    white-space: normal;
    min-height: 44px;
    padding: 0.75rem 1rem;
    line-height: 1.4;
    /* Fix for scrolling */
    display: block !important;
    position: relative !important;
    /* Ensure proper touch interaction */
    touch-action: auto !important;
    /* Fix for click events */
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Ensure last option is fully scrollable */
.select2-container--bootstrap-5 .select2-results__options::after {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
}

/* Fix for options container scrolling */
.select2-container--bootstrap-5 .select2-results__options {
    /* Ensure proper scrolling */
    max-height: none !important;
    overflow: visible !important;
    /* Fix for touch devices */
    touch-action: auto !important;
    /* Ensure proper display */
    display: block !important;
    position: relative !important;
    /* Fix for height calculation */
    height: auto !important;
    min-height: 0 !important;
}

/* Additional CSS class for dropdown fix */
.select2-dropdown-fix {
    /* Force proper height calculation */
    max-height: 250px !important;
    /* Ensure proper positioning */
    position: absolute !important;
    z-index: 9999 !important;
    /* Fix width to match input field */
    width: 100% !important;
    min-width: 100% !important;
}

.select2-dropdown-fix .select2-results {
    /* Ensure scrolling works properly */
    max-height: 160px !important;
    overflow-y: auto !important;
    /* Fix for mobile devices */
    -webkit-overflow-scrolling: touch !important;
    /* Prevent scroll issues */
    overscroll-behavior: contain !important;
    /* Force proper scrolling */
    scroll-behavior: smooth !important;
    /* Ensure proper height calculation */
    height: auto !important;
    min-height: 0 !important;
    /* Ensure scrolling works */
    position: relative !important;
    display: block !important;
    /* Fix for bottom scrolling */
    padding-bottom: 12px !important;
    /* Ensure proper width */
    width: 100% !important;
}

.select2-dropdown-fix .select2-results__options {
    /* Remove any height restrictions */
    max-height: none !important;
    height: auto !important;
    /* Ensure proper display */
    display: block !important;
    /* Fix for scrolling */
    overflow: visible !important;
    /* Fix for touch devices */
    touch-action: auto !important;
    /* Ensure proper positioning */
    position: relative !important;
    /* Ensure proper width */
    width: 100% !important;
    /* Fix for bottom scrolling */
    padding-bottom: 8px !important;
}

/* Fix for Select2 dropdown positioning issues */
.select2-container--open .select2-dropdown {
    /* Ensure dropdown is properly positioned */
    position: absolute !important;
    z-index: 9999 !important;
    /* Fix for width issues */
    width: 100% !important;
    min-width: 100% !important;
    /* Ensure proper display */
    display: block !important;
}

/* Fix for scrolling issues in PC browsers */
.select2-container--bootstrap-5 .select2-results__options {
    /* Ensure proper scrolling */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    /* Fix for bottom scrolling */
    padding-bottom: 8px !important;
    /* Ensure proper width */
    width: 100% !important;
    /* Fix for touch devices */
    touch-action: auto !important;
}

/* Fix for last option visibility */
.select2-container--bootstrap-5 .select2-results__option:last-child {
    /* Ensure last option is fully visible */
    margin-bottom: 4px !important;
}

/* Fix for Select2 arrow positioning */
.select2-container--bootstrap-5 .select2-selection--single {
    /* Ensure proper positioning for arrow */
    position: relative !important;
}

/* Fix for Select2 arrow display */
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    /* Ensure arrow stays in place */
    position: absolute !important;
    top: 0 !important;
    right: 8px !important;
    height: 38px !important;
    width: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Global fix for all Select2 dropdowns */
.select2-results__options {
    /* Ensure options container doesn't limit scrolling */
    max-height: none !important;
    overflow: visible !important;
    /* Fix for touch devices */
    touch-action: auto !important;
    /* Ensure proper display */
    display: block !important;
    position: relative !important;
    /* Fix for height calculation */
    height: auto !important;
    min-height: 0 !important;
}

.select2-results {
    /* Force proper scrolling behavior */
    overflow-y: auto !important;
    max-height: 200px !important;
    /* Ensure scrolling works on all devices */
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    /* Fix height calculation */
    height: auto !important;
    min-height: 0 !important;
    /* Ensure proper display */
    display: block !important;
    position: relative !important;
    /* Fix for touch devices */
    touch-action: auto !important;
}

/* Fix for Select2 option selection issues */
.select2-container--open .select2-results__option {
    /* Ensure options are clickable */
    pointer-events: auto !important;
    cursor: pointer !important;
    user-select: none !important;
    /* Fix for touch devices */
    touch-action: auto !important;
    /* Ensure proper display */
    display: block !important;
    position: relative !important;
}

.select2-container--open .select2-results__option:hover {
    /* Ensure hover state works */
    background-color: rgba(233, 30, 99, 0.1) !important;
    /* Fix for touch devices */
    touch-action: auto !important;
    /* Ensure proper display */
    display: block !important;
    position: relative !important;
}

.select2-container--open .select2-results__option--highlighted {
    /* Ensure highlighted state works */
    background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%) !important;
    color: white !important;
    /* Fix for touch devices */
    touch-action: auto !important;
    /* Ensure proper display */
    display: block !important;
    position: relative !important;
}

/* Legacy Select2 styles for backward compatibility */
.select2-container {
    display: block;
    width: 100%;
    height: auto;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: auto;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    display: block;
    padding: 0.25rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    background-color: #fff;
    background-clip: padding-box;
    appearance: none;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.select2-container .select2-selection--single {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    height: auto !important;
    user-select: none;
    -webkit-user-select: none;
}

canvas {
    /*prevent interaction with the canvas*/
    pointer-events: none;
}

.action-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.action-card i {
    font-size: 4rem;
    color: deeppink;
}

.container-bg {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    padding: 2rem;
}

/* Custom styles for the stepper */
.stepper .stepper-nav .stepper-item.current .stepper-icon {
    background-color: deeppink;
    color: #fff;
}

.stepper .stepper-nav .stepper-item.completed .stepper-icon {
    background-color: #00c851;
    color: #fff;
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

/* Modern Card Styling */
.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    /* Fix for scrolling */
    position: relative !important;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

.card-header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: none;
    border-radius: 1rem 1rem 0 0 !important;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    /* Fix for scrolling */
    z-index: 1 !important;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    /* Fix for scrolling */
    z-index: 0 !important;
}

.card-header-pink {
    background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%);
    color: white;
    position: relative;
    z-index: 1;
    /* Fix for scrolling */
    overflow: hidden !important;
}

.card-body {
    padding: 2rem;
    position: relative;
    /* Fix for scrolling */
    overflow: hidden !important;
}

/* Modern Form Controls */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 38px !important;
    height: 38px !important;
    line-height: 1.4;
    box-sizing: border-box;
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

/* Ensure Select2 doesn't override form-control styles */
.form-control:not(.select2-search__field) {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem !important;
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

.form-control:focus, .form-select:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 0.25rem rgba(233, 30, 99, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    transform: translateY(-1px);
    outline: none;
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.025em;
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

.form-label.required::after {
    content: " *";
    color: #e91e63;
    font-weight: bold;
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

/* Captcha Styling */
#captcha {
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

#captcha canvas {
    border-radius: 0.375rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

.text-pink {
    color: #e91e63 !important;
    font-weight: 600;
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

/* Modern Input Groups */
.input-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    overflow: hidden;
    /* Fix for scrolling */
    position: relative !important;
}

.input-group .form-control {
    border-radius: 0;
    border-right: none;
    min-height: 38px;
    height: 38px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

.input-group .btn {
    border-radius: 0;
    border-left: none;
    height: 38px;
    min-height: 38px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

/* Fix for captcha input group */
.input-group #captcha {
    height: 38px !important;
    min-height: 38px !important;
    border-right: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

/* Ensure all input-group elements have consistent height */
.input-group > * {
    height: 38px !important;
    min-height: 38px !important;
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

/* ===== CENTRALIZED MOBILE-RESPONSIVE STYLES ===== */

/* Responsive button sizing for mobile devices */
.btn-sm-md {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

/* SmartWizard step navigation styles */
#smartwizard .nav-link {
    transition: all 0.3s ease;
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

/* Form section styles */
.form-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 2rem;
    position: relative;
    /* Fix for scrolling */
    overflow: hidden !important;
}

.form-section-title {
    font-size: 1em;
    padding: 0.3em 0.8em;
    position: absolute;
    top: 0;
    left: 1rem;
    background: white;
    border-radius: 0.25rem;
    font-weight: bold;
    /* Fix for scrolling */
    overflow: hidden !important;
}

/* Success page summary list styles */
.summary-list dt {
    text-align: right;
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

.summary-list dd {
    text-align: left;
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

/* Success page button container */
.success-page-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    /* Fix for scrolling */
    position: relative !important;
    overflow: hidden !important;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* SmartWizard step navigation adjustments */
    #smartwizard .nav-link {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
        min-height: auto;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    #smartwizard .nav-link i {
        font-size: 1.2rem !important;
        margin-bottom: 0.25rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    #smartwizard .nav-link strong {
        font-size: 0.7rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    #smartwizard .nav-link br {
        display: none;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    /* Card and form adjustments */
    .card-body {
        padding: 1rem !important;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    .form-section {
        padding: 1rem;
        margin-bottom: 1rem;
        padding-top: 1.5rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    .form-section-title {
        font-size: 0.9em;
        padding: 0.25em 0.6em;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    /* Form labels */
    .form-label {
        font-size: 0.9rem !important;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    /* Modal adjustments */
    .modal-dialog {
        margin: 0.5rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    /* Summary list adjustments */
    .row dt, .row dd {
        font-size: 0.85rem;
        padding: 0.25rem 0;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    /* Success page summary list - mobile alignment */
    .summary-list dt {
        text-align: left;
        margin-bottom: 0.25rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    .summary-list dd {
        margin-bottom: 0.5rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    /* Success page buttons - mobile layout */
    .success-page-buttons {
        flex-direction: column;
        align-items: center;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    .success-page-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 0.5rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    /* Adjust button sizes for mobile */
    .btn-lg {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    /* Responsive button sizing */
    .btn-sm-md {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    /* Make all buttons smaller on mobile */
    .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    /* SmartWizard step navigation adjustments */
    #smartwizard .nav-link {
        padding: 0.25rem 0.1rem;
        font-size: 0.65rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    #smartwizard .nav-link i {
        font-size: 1rem !important;
        margin-bottom: 0.1rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    #smartwizard .nav-link strong {
        font-size: 0.6rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    /* Card and form adjustments */
    .card-body {
        padding: 0.75rem !important;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    .form-section {
        padding: 0.75rem;
        padding-top: 1.25rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    .form-section-title {
        font-size: 0.8em;
        padding: 0.2em 0.5em;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    /* Make buttons even smaller on very small screens */
    .btn-lg {
        padding: 0.2rem 0.4rem;
        font-size: 0.85rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.85rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    .btn-sm-md {
        padding: 0.2rem 0.4rem;
        font-size: 0.85rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    /* Reduce button margins on small screens */
    .btn + .btn {
        margin-left: 0.25rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    .me-3 {
        margin-right: 0.5rem !important;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }
}

/* Very small devices (under 400px) */
@media (max-width: 400px) {
    .btn-lg {
        padding: 0.15rem 0.3rem;
        font-size: 0.8rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    .btn {
        padding: 0.15rem 0.3rem;
        font-size: 0.8rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    .btn-sm-md {
        padding: 0.15rem 0.3rem;
        font-size: 0.8rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    /* Reduce margins even more */
    .btn + .btn {
        margin-left: 0.15rem;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }

    .me-3 {
        margin-right: 0.25rem !important;
        /* Fix for scrolling */
        position: relative !important;
        overflow: hidden !important;
    }
}

/* ===== EXTRACTED STYLES FROM INDEX.CSHTML AND INDEXFORM1.CSHTML ===== */

/* Modern SmartWizard Nav Styling */
#smartwizard .nav-link {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #6b7280;
    border: 2px solid #e5e7eb !important;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.75rem !important;
    margin: 0 0.25rem;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

#smartwizard .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

#smartwizard .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #e91e63 !important;
    color: #e91e63;
}

#smartwizard .nav-link:hover::before {
    left: 100%;
}

#smartwizard .nav-link.active {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #fff;
    border-color: #e91e63 !important;
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
    transform: translateY(-3px) scale(1.02);
    z-index: 2;
}

#smartwizard .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

#smartwizard .nav-link.done {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #fff;
    border-color: #6b7280 !important;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.25);
}

#smartwizard .nav-link.done::after {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

#smartwizard .nav-link.disabled {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #9ca3af;
    pointer-events: none;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

#smartwizard .nav-link i {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

#smartwizard .nav-link.active i {
    transform: scale(1.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Ensure SmartWizard container is properly styled */
#smartwizard {
    position: relative;
    z-index: 0;
}

#smartwizard .tab-content {
    position: relative;
    z-index: 0;
}

#smartwizard .tab-pane {
    display: none;
}

#smartwizard .tab-pane.active {
    display: block !important;
}

/* Ensure step 1 is visible by default */
#step-1 {
    display: block !important;
}

/* Ensure all steps are properly styled when active */
#step-2.active,
#step-3.active,
#step-4.active {
    display: block !important;
}

/* Enhanced search section styling */
.search-section {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.05) 0%, rgba(213, 0, 0, 0.05) 100%);
    border: 2px solid rgba(233, 30, 99, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.15);
    border-color: rgba(255, 23, 68, 0.2);
}

.search-section .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.search-section .form-control:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 0.25rem rgba(233, 30, 99, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.search-section .form-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Enhanced terms container */
#terms-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#terms-container:hover {
    border-color: #e91e63;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05), 0 0 0 0.125rem rgba(233, 30, 99, 0.1);
}

/* Enhanced confirmation summary */
#confirmationSummary {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.05) 0%, rgba(75, 85, 99, 0.05) 100%);
    border: 2px solid rgba(107, 114, 128, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

#confirmationSummary h5 {
    color: #6b7280 !important;
    font-weight: 700;
    margin-bottom: 1rem;
}

#confirmationSummary .row dt {
    color: #374151;
    font-weight: 600;
}

#confirmationSummary .row dd {
    color: #1f2937;
    font-weight: 500;
}

/* Enhanced form controls for this page */
.form-control-plaintext {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #2d3748 !important;
    min-height: calc(1.5em + 0.75rem + 4px);
}

/* Enhanced radio buttons */
.form-check-input:checked {
    background-color: #e91e63;
    border-color: #e91e63;
    box-shadow: 0 0 0 0.125rem rgba(233, 30, 99, 0.25);
}

.form-check-input:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 0.125rem rgba(233, 30, 99, 0.25);
}

.form-check-label {
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: color 0.2s ease;
}

.form-check-label:hover {
    color: #e91e63;
}

/* Enhanced input group for captcha */
.input-group {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-group:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 0.75rem 0.75rem 0;
}

/* Page-specific button enhancements */
.btn-lg {
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    border-radius: 0.75rem;
}

/* Captcha styling */
#captcha {
    min-width: 120px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa !important;
}

/* Modern Form Section Styling */
.form-section {
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-top: 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e91e63, #ad1457, #e91e63);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: #e91e63;
}

.form-section-title {
    position: absolute;
    top: -1.2em;
    left: 1.5rem;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 0.5em 1.2em;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
    z-index: 1;
    text-transform: uppercase;
}

.form-section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #ad1457;
}

/* Modern Modal Styling */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.modal-header {
    border: none;
    border-radius: 1rem 1rem 0 0;
    padding: 1.5rem 2rem;
    position: relative;
}

.modal-header-pink {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
}

/* ===== UPDATED DANGER/ERROR THEME - BEAUTIFUL PINK-GRAY COLOR SCHEME ===== */
.modal-header-danger {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
}

/* Updated danger/error text colors */
.text-danger {
    color: #e91e63 !important;
    font-weight: 500;
}

.field-validation-no-valid {
    color: #e91e63 !important;
    font-weight: 500;
}

/* Updated danger/error form controls */
.form-control.is-invalid,
.form-control:invalid {
    border-color: #e91e63 !important;
    box-shadow: 0 0 0 0.25rem rgba(233, 30, 99, 0.15) !important;
}

.form-control.is-invalid:focus,
.form-control:invalid:focus {
    border-color: #e91e63 !important;
    box-shadow: 0 0 0 0.25rem rgba(233, 30, 99, 0.25) !important;
}

/* Updated danger/error buttons */
.btn-danger {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-color: #e91e63;
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ad1457 0%, #880e4f 100%);
    border-color: #ad1457;
    color: white;
}

.btn-danger:focus {
    box-shadow: 0 0 0 0.25rem rgba(233, 30, 99, 0.25);
}

.btn-outline-danger {
    color: #e91e63;
    border-color: #e91e63;
}

.btn-outline-danger:hover {
    background-color: #e91e63;
    border-color: #e91e63;
    color: white;
}

/* Updated danger/error alerts */
.alert-danger {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, rgba(173, 20, 87, 0.1) 100%);
    border-color: rgba(233, 30, 99, 0.3);
    color: #ad1457;
}

.alert-danger .alert-link {
    color: #880e4f;
}

/* Updated danger/error badges */
.badge-danger {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
}

/* Updated danger/error progress bars */
.progress-bar-danger {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

/* Updated danger/error list group items */
.list-group-item-danger {
    background-color: rgba(233, 30, 99, 0.1);
    color: #ad1457;
}

.list-group-item-danger.list-group-item-action:hover,
.list-group-item-danger.list-group-item-action:focus {
    background-color: rgba(233, 30, 99, 0.2);
    color: #880e4f;
}

/* Updated danger/error table rows */
.table-danger {
    background-color: rgba(233, 30, 99, 0.1);
}

.table-danger th,
.table-danger td {
    border-color: rgba(233, 30, 99, 0.2);
}

/* Updated danger/error borders */
.border-danger {
    border-color: #e91e63 !important;
}

/* Updated danger/error text utilities */
.text-danger-soft {
    color: #f8bbd9 !important;
}

.text-danger-light {
    color: #fce4ec !important;
}

/* Updated danger/error background utilities */
.bg-danger-soft {
    background-color: rgba(233, 30, 99, 0.1) !important;
}

.bg-danger-light {
    background-color: rgba(233, 30, 99, 0.05) !important;
}

.modal-body {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
}

.modal-footer {
    border: none;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
}

.btn-close {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    opacity: 1;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Mobile responsive adjustments for this page */
@media (max-width: 768px) {
    .search-section {
        padding: 1.5rem 1rem;
    }
    
    .search-section .form-control {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
    
    .form-check-inline {
        display: block;
        margin-bottom: 0.5rem;
    }
}