/* BusSuraksha Stylesheet (main.css)
  Version: 1.7.9
*/

/* --- CUSTOM UTILITIES --- */

.text-gradient {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- TABS & SEARCH UTILITIES (Moved from inline HTML) --- */

.tab-active {
    border-color: #9333ea; /* border-purple-600 */
    color: #9333ea; /* text-purple-600 */
    background-color: #ffffff; /* bg-white */
    z-index: 10;
    margin-bottom: -2px;
}

.search-panel {
    display: none;
}

.search-panel.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

/* Standardized height utility */
.std-h {
    height: 3.5rem; /* h-14 */
}
@media (min-width: 768px) {
    .std-h {
        height: 4rem; /* md:h-16 */
    }
}

/* --- ANIMATIONS --- */

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.shake {
    animation: shake 0.2s ease-in-out 0s 2;
}

@keyframes shake {
    0% { margin-left: 0rem; }
    25% { margin-left: 0.5rem; }
    75% { margin-left: -0.5rem; }
    100% { margin-left: 0rem; }
}

/* --- FORM & INTERACTIVE COMPONENTS --- */

.step-inactive {
    display: none;
}

.step-active {
    display: block;
}

.rating-btn {
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}

.rating-btn.active {
    border-color: #7c3aed;
    background-color: #f5f3ff;
    color: #7c3aed;
}

.checkbox-card {
    cursor: pointer;
    transition: all 0.2s;
    border-width: 2px;
}

.checkbox-card:hover {
    border-color: #ddd6fe;
}

.checkbox-card.selected {
    border-color: #7c3aed;
    background-color: #f5f3ff;
}

/* Enhancing Radio Button Visuals */
input[type="radio"]:checked + span {
    color: #7c3aed;
    font-weight: 700;
}

/* --- ROUTE PROTECTION --- */

#home-static-content {
    display: none;
}

.is-home #home-static-content {
    display: block;
}

/* --- INPUT STATES --- */

.input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

/* Standardizing the mobile tap target size */
button, a {
    touch-action: manipulation;
}

/* Hide the reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden !important;
}