/* ===================================================================
   Autolab Car Care - Main Stylesheet
   Description: Unified styles for all pages
   Last Updated: 2026-03-24
   =================================================================== */

/* ===================================================================
   1. CSS VARIABLES (GLOBAL)
   =================================================================== */
:root {
    --carcare-primary: #000000;
    --carcare-secondary: #f89520;
    --carcare-accent: #e91d26;
    --carcare-gold: #fdaf40;
    --carcare-dark: #000000;
    --carcare-light: #f3f4f6;
    --carcare-gray: #bdbec0;
    --carcare-white: #ffffff;
}

/* ===================================================================
   2. GLOBAL STYLES
   =================================================================== */
body {
    font-family: 'Noto Sans Thai', sans-serif;
    background: #f8f9fa;
    color: #333;
}

/* Scrollbar Styling */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body::-webkit-scrollbar-thumb {
    background: #f89520;
    border-radius: 4px;
}

/* ===================================================================
   3. MEMBER REGISTRATION PAGE STYLES
   =================================================================== */

/* Container */
.member-registration-container {
    padding: 2rem 0;
}

/* Registration Card */
.registration-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: visible;  /* เปลี่ยนเป็น visible เพื่อให้ dropdown แสดงได้ */
}

/* Registration Header */
.registration-header:first-child {
    border-top-left-radius: 19px;
    border-top-right-radius: 19px;
}

.registration-header {
    background: var(--carcare-dark);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;  /* เก็บ hidden ไว้สำหรับ header */
}

.registration-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.registration-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.registration-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Benefit Badge */
.benefit-badge {
    display: inline-block;
    background: #fdaf40;
    color: #000000;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(253, 175, 64, 0.5);
}

/* Registration Body */
.registration-body {
    padding: 3rem 2rem;
    overflow: visible;  /* เปลี่ยนเป็น visible เพื่อให้ dropdown แสดงได้ */
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--carcare-light);
}

.section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f89520 0%, #e91d26 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--carcare-dark);
    margin: 0;
}

/* Form Controls */
.form-group label, .form-group div.label {
    font-weight: 600;
    color: var(--carcare-dark);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #f89520;
    box-shadow: 0 0 0 3px rgba(248, 149, 32, 0.2);
}

.form-select {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Vehicle Card */
.vehicle-card {
    background: var(--carcare-light);
    border: 2px dashed #d1d5db;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;  /* เปลี่ยนเป็น visible เพื่อให้ dropdown แสดงได้ */
}

.vehicle-card:hover {
    border-color: #f89520;
    background: #fff7ed;
}

.vehicle-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.vehicle-number {
    background: #f89520;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Buttons - Vehicle */
.btn-remove-vehicle {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-remove-vehicle:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-add-vehicle {
    background: white;
    border: 2px dashed #f89520;
    color: #f89520;
    border-radius: 15px;
    padding: 1rem;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-vehicle:hover {
    background: #fff7ed;
    border-style: solid;
    border-color: #fdaf40;
    color: #fdaf40;
    transform: translateY(-2px);
}

.btn-add-vehicle i {
    margin-right: 0.5rem;
}

/* Submit Section */
.submit-section {
    background: var(--carcare-light);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.terms-checkbox {
    display: flex;
    align-items: start;
    margin-bottom: 1.5rem;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 0.3rem;
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
}

.btn-submit-registration {
    background: linear-gradient(135deg, #e91d26 0%, #f89520 100%);
    border: none;
    color: white;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(233, 29, 38, 0.4);
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit-registration:hover {
    background: linear-gradient(135deg, #e91d26 0%, #fdaf40 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(233, 29, 38, 0.5);
}

.btn-submit-registration:disabled {
    background: #bdbec0;
    box-shadow: none;
    cursor: not-allowed;
}

/* Info Card */
.info-card {
    background: #fff7ed;
    border-left: 4px solid #f89520;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.info-card i {
    color: #f89520;
    margin-right: 0.5rem;
}

/* ===================================================================
   4. TERMS & CONDITIONS PAGE STYLES
   =================================================================== */

/* Terms Header */
.terms-header {
    background: linear-gradient(135deg, #000000 0%, #e91d26 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.terms-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Terms Container */
.terms-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* Terms Card */
.terms-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

/* Table of Contents */
.toc {
    background: #fff7ed;
    border-left: 4px solid #f89520;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc h3 {
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: #f89520;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.toc a:hover {
    color: #e91d26;
    transform: translateX(5px);
}

/* Section - Terms */
.section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 100px;
}

.section h2 {
    color: #000;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #f89520;
}

.section h3 {
    color: #e91d26;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.section p, .section li {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #444;
}

.section ul, .section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Important Note */
.important-note {
    background: #fee;
    border-left: 4px solid #e91d26;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

/* ===================================================================
   5. PRIVACY POLICY PAGE STYLES
   =================================================================== */

/* Privacy Header */
.privacy-header {
    background: linear-gradient(135deg, #e91d26 0%, #f89520 100%);
    color: white;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

.privacy-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Last Updated Badge */
.last-updated {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Privacy Container */
.privacy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* Privacy Card */
.privacy-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

/* Section - Privacy (Override for smaller heading) */
.privacy-card .section h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #e91d26;
}

.privacy-card .section h3 {
    color: #f89520;
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.privacy-card .section {
    margin-bottom: 2rem;
}

.privacy-card .section p,
.privacy-card .section li {
    line-height: 1.7;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.privacy-card .section ul {
    margin-left: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.info-item {
    background: #fff7ed;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #fdaf40;
}

.info-item strong {
    color: #000;
    display: block;
    margin-bottom: 0.25rem;
}

/* Rights Box */
.rights-box {
    background: linear-gradient(135deg, #000000 0%, #333 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.rights-box h3 {
    color: #fdaf40;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.rights-box li {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* PDPA Badge */
.pdpa-badge {
    display: inline-block;
    background: #e91d26;
    color: white;
    padding: 0.25rem 0.65rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* ===================================================================
   6. SHARED COMPONENTS (Used across multiple pages)
   =================================================================== */

/* Highlight Box */
.highlight-box {
    background: #fff7ed;
    border-left: 4px solid #fdaf40;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.privacy-card .highlight-box {
    border-left: 3px solid #f89520;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

/* Contact Box */
.contact-box {
    background: linear-gradient(135deg, #f89520 0%, #fdaf40 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.contact-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.contact-box p {
    color: white;
    margin-bottom: 0.5rem;
}

.privacy-card .contact-box {
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.privacy-card .contact-box h3 {
    margin-bottom: 0.75rem;
}

.privacy-card .contact-box p {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

/* Back Button */
.btn-back {
    background: white;
    border: 2px solid #f89520;
    color: #f89520;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #f89520;
    color: white;
    transform: translateY(-2px);
}

.privacy-card .btn-back {
    padding: 0.65rem 1.75rem;
    font-size: 0.9rem;
}

/* Placeholder (for form fields needing data) */
.placeholder {
    background: #ffeaa7;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    color: #d63031;
}

.ts-dropdown, .ts-control, .ts-control input{
    font-size: 1rem;
    line-height: 1.5;
}

.ts-wrapper.form-control, .ts-wrapper.form-select {
    padding: 0 !important;
    height: auto;
    box-shadow: none;
    display: flex;
}
.ts-wrapper {
    display: inline-block;
}
.ts-wrapper.form-select .ts-control .focus, .ts-wrapper.form-select .ts-control:focus, .ts-wrapper.multi .ts-control.has-items.hs-select-single-multiple .focus, .ts-wrapper.multi .ts-control.has-items.hs-select-single-multiple:focus {
    box-shadow: none;
}

.ts-wrapper.form-control .ts-control, .ts-wrapper.form-control.single.input-active .ts-control, .ts-wrapper.form-select .ts-control, .ts-wrapper.form-select.single.input-active .ts-control {
    border: none !important;
    background: 0 0 !important;
}

.ts-wrapper.form-select .ts-control, .ts-wrapper.multi .ts-control.has-items.hs-select-single-multiple {
    padding: 0.75rem 1rem;
}

.tom-select-custom .ts-custom-placeholder, .tom-select-custom .ts-selected-count {
    color: #8c98a4 !important;
}

.ts-control, .ts-control input, .ts-dropdown {
    color: #212529;
}

.ts-dropdown, .ts-dropdown.form-control, .ts-dropdown.form-select {
    height: auto;
    padding: 0;
    z-index: 99999 !important;  /* เพิ่ม z-index สูงเพื่อไม่ถูกบัง */
    background: #fff;
    border: .0625rem solid rgba(231,234,243,.7);
    border-radius: 10px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.075);
    opacity: 1;
    position: absolute !important;
    overflow: hidden;
}

.ts-dropdown-content {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 200px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    z-index: 99999;
}
.ts-dropdown-content {
    padding: 5px 0;
}

/* Custom Scrollbar for TomSelect Dropdown */
.ts-dropdown-content::-webkit-scrollbar {
    width: 5px !important;
    height: 5px !important;
}

.ts-dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.ts-dropdown-content::-webkit-scrollbar-thumb {
    background: rgba(189, 197, 209, .6);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tom-select-custom .ts-dropdown .active, .tom-select-custom .ts-dropdown .create:hover, .tom-select-custom .ts-dropdown .option:hover {
    color: #1e2022;
    background-color: rgba(189, 197, 209, .3);
}
.tom-select-custom .ts-dropdown .create, .tom-select-custom .ts-dropdown .no-results, .tom-select-custom .ts-dropdown .optgroup-header, .tom-select-custom .ts-dropdown .option {
    padding: .5rem 2.5rem .5rem 1rem;
}
.tom-select-custom .ts-dropdown .option {
    position: relative;
}

/* TomSelect Placeholder Styles */
.ts-wrapper .ts-control .placeholder {
    color: #6c757d;
    opacity: 0.6;
}

.ts-wrapper.single .ts-control {
    background: #fff;
}

.ts-wrapper.single .ts-control:before {
    content: attr(data-placeholder);
    color: #6c757d;
    opacity: 0.6;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.ts-wrapper.single.has-items .ts-control:before {
    display: none;
}

/* Fix dropdown positioning */
.ts-wrapper.form-select .ts-dropdown,
.ts-wrapper.form-control .ts-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    margin-top: 2px;
}

.ts-dropdown .active, .ts-dropdown .create:hover, .ts-dropdown .option:hover {
    color: #1e2022;
    background-color: rgba(189, 197, 209, .3);
}
.ts-dropdown .option, .ts-dropdown .optgroup-header, .ts-dropdown .no-results, .ts-dropdown .create {
    padding: .5rem 2.5rem .5rem 1rem;
}

.ts-dropdown .option {
    position: relative;
}

/* Remove focus outline from TomSelect */
.ts-wrapper:focus,
.ts-wrapper.focus,
.ts-control:focus,
.ts-control.focus,
.ts-wrapper:focus-visible,
.ts-control:focus-visible {
    outline: none !important;
    box-shadow: none;
    border-color: #f89520;
    box-shadow: 0 0 0 3px rgba(248, 149, 32, 0.2);
}

.ts-wrapper .ts-control:focus,
.ts-wrapper.single .ts-control:focus {
    border-color: #f89520;
    box-shadow: 0 0 0 3px rgba(248, 149, 32, 0.2);
}

/* TomSelect Validation States */
.ts-wrapper.is-invalid, .was-validated .invalid, .was-validated :invalid+.ts-wrapper {
    border-color: var(--bs-form-invalid-color);
}

.ts-wrapper.is-valid, .was-validated .valid, .was-validated :valid+.ts-wrapper {
    border-color: var(--bs-form-valid-color);
}

.was-validated :valid+.ts-wrapper.focus, .was-validated :valid+.ts-wrapper:focus {
    border-color: var(--bs-form-valid-border-color);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-success-rgb),.25);
}
.was-validated :invalid+.ts-wrapper.focus {
    border-color: var(--bs-form-invalid-border-color);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
}

.form-group .invalid-feedback.d-block {
    display: block;
}

button:focus:not(:focus-visible) {
    outline: 0
}
/* ===================================================================
   7. RESPONSIVE STYLES
   =================================================================== */

@media (max-width: 768px) {
    /* Member Registration */
    .registration-header h1 {
        font-size: 1.8rem;
    }
    
    .registration-body {
        padding: 2rem 1rem;
    }

    /* Terms & Conditions */
    .terms-header h1 {
        font-size: 1.8rem;
    }

    .terms-card {
        padding: 1.5rem;
    }

    /* Privacy Policy */
    .privacy-header h1 {
        font-size: 1.6rem;
    }

    .privacy-card {
        padding: 1.25rem;
    }
}

/* ===================================================================
   7. UI COMPONENTS (Reusable Components)
   =================================================================== */

/* ============================================
   7.1 Go to Top Button Component
   ============================================ */

.go-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f89520 0%, #fdaf40 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(248, 149, 32, 0.3);
    cursor: pointer;
    z-index: 1040; /* Below Bootstrap modals (1050) but above most content */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
}

/* Show State */
.go-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Hover Effects */
.go-to-top:hover {
    background: linear-gradient(135deg, #e91d26 0%, #f89520 100%);
    box-shadow: 0 6px 20px rgba(233, 29, 38, 0.4);
    transform: translateY(-3px) scale(1.05);
}

.go-to-top:active {
    transform: translateY(-1px) scale(0.95);
}

/* Focus State (Accessibility) */
.go-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(248, 149, 32, 0.3);
}

/* Icon Animation on Hover */
.go-to-top:hover .go-to-top-icon {
    animation: bounceUp 0.6s ease-in-out;
}

@keyframes bounceUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Theme Variants */
.go-to-top.go-to-top-dark {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.go-to-top.go-to-top-dark:hover {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.go-to-top.go-to-top-light {
    background: #ffffff;
    color: #f89520;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.go-to-top.go-to-top-light:hover {
    background: #f8f9fa;
    color: #e91d26;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.go-to-top.go-to-top-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.go-to-top.go-to-top-primary:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.go-to-top.go-to-top-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.go-to-top.go-to-top-success:hover {
    background: linear-gradient(135deg, #146c43 0%, #0f5132 100%);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}

/* Position Variants */
.go-to-top.go-to-top-left {
    right: auto;
    left: 30px;
}

.go-to-top.go-to-top-center {
    right: 50%;
    transform: translateX(50%) translateY(20px) scale(0.8);
}

.go-to-top.go-to-top-center.show {
    transform: translateX(50%) translateY(0) scale(1);
}

.go-to-top.go-to-top-center:hover {
    transform: translateX(50%) translateY(-3px) scale(1.05);
}

/* Size Variants */
.go-to-top.go-to-top-sm {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.go-to-top.go-to-top-lg {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
}

/* Responsive - Go to Top */
@media (max-width: 991.98px) {
    .go-to-top {
        bottom: 25px;
        right: 25px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 767.98px) {
    .go-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .go-to-top.go-to-top-left {
        left: 20px;
    }
}

@media (max-width: 575.98px) {
    .go-to-top {
        bottom: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .go-to-top,
    .go-to-top.show,
    .go-to-top:hover,
    .go-to-top-icon {
        transition: none;
        animation: none;
    }
}

@media (prefers-contrast: high) {
    .go-to-top {
        border: 2px solid currentColor;
    }
}

/* Screen Reader Only Text */
.sr-only-focusable {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}
