/* Floating Support Button Styles */
.stt-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 99999 !important;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.stt-floating-btn:hover {
    transform: scale(1.1);
    background-color: #000 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    color: #fff !important;
}

.stt-floating-btn i {
    font-size: 24px;
}

.stt-floating-btn img {
    width: 32px;
    height: auto;
    filter: brightness(0) invert(1); /* Ensure the icon is white if the background is dark */
}

/* Modal adjustments - Floating above the button, Ohio Theme Style */
#sttFloatingSupportModal {
    z-index: 100001 !important;
    padding-right: 0 !important;
    position: fixed !important;
    bottom: 100px !important; /* Fixed position above the button */
    right: 30px !important;
    top: auto !important;
    left: auto !important;
    width: 380px !important; /* Slightly more compact: from 420px to 380px */
    max-width: 90vw !important;
    height: auto !important;
    overflow: visible !important;
    pointer-events: none; /* Let background interaction persist */
    transition: transform 0.85s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.75s ease; /* More deliberate, luxury slide-in */
    transform: translateX(120%); /* Completely outside screen boundary */
    opacity: 0;
}

#sttFloatingSupportModal.show {
    opacity: 1;
    transform: translateX(0); /* Slide into final position */
    pointer-events: auto;
}

/* Modal Internal Alignment & Jump Fix */
#sttFloatingSupportModal .modal-dialog {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    pointer-events: auto;
    transform: none !important; /* Fixes "top to bottom" jump from Bootstrap defaults */
}

/* Ensure modal content doesn't fight the parent animation */
#sttFloatingSupportModal .modal-content {
    transition: none !important;
    border-radius: 24px; /* Premium Ohio theme curvature */
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    max-height: 75vh;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12); /* Luxury shadow depth */
    background: #ffffff;
}

#sttFloatingSupportModal .modal-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 15px 25px; /* More compact header: from 24/30 to 15/25 */
}

#sttFloatingSupportModal .modal-title {
    font-weight: 700;
    font-size: 1.05rem; /* Slightly smaller title */
    color: #111;
    letter-spacing: -0.02em;
}

#sttFloatingSupportModal .btn-close {
    font-size: 10px;
    padding: 15px; /* More compact close button */
    opacity: 0.6;
    transition: opacity 0.2s;
}

#sttFloatingSupportModal .btn-close:hover {
    opacity: 1;
}

#sttFloatingSupportModal .modal-body {
    padding: 20px 25px; /* More compact body padding: from 30/30 to 20/25 */
    background: #ffffff;
}

#sttFloatingSupportModal .stt-public-form-container {
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* UI Adjustments for Form inside Popup */
#sttFloatingSupportModal .stt-form-header {
    display: none;
}

#sttFloatingSupportModal .stt-form-group {
    margin-bottom: 12px; /* More compact group spacing: from 18px to 12px */
}

#sttFloatingSupportModal .stt-form-group label {
    font-weight: 600;
    font-size: 0.8rem; /* Slightly smaller label */
    color: #222;
    margin-bottom: 5px;
}

#sttFloatingSupportModal .stt-form-group input,
#sttFloatingSupportModal .stt-form-group select,
#sttFloatingSupportModal .stt-form-group textarea {
    border-radius: 10px;
    border: 1.5px solid #f0f0f0;
    padding: 10px 15px; /* More compact field padding: from 14/18 to 10/15 */
    font-size: 0.85rem;
    background: #fdfdfd;
    color: #666;
    transition: all 0.25s ease;
}

#sttFloatingSupportModal .stt-form-group input::placeholder,
#sttFloatingSupportModal .stt-form-group textarea::placeholder {
    color: #bbb !important;
    font-weight: 400;
}

#sttFloatingSupportModal .stt-form-group input:focus,
#sttFloatingSupportModal .stt-form-group textarea:focus {
    background: #fff;
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.04);
}

#sttFloatingSupportModal .stt-submit-btn {
    width: 100%;
    background: #111;
    color: #fff;
    border-radius: 12px;
    padding: 12px; /* More compact button padding: from 16px to 12px */
    font-weight: 700;
    margin-top: 8px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#sttFloatingSupportModal .stt-submit-btn:hover {
    background: #000;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Layout Stability Fixes */
html {
    scrollbar-gutter: stable !important;
}

body {
    padding-right: 0 !important;
    margin-right: 0 !important;
}

body.modal-open,
.modal-open {
    overflow: auto !important;
}