/* BusSuraksha Stylesheet (main.css)
  Version: 1.7.9
  This file includes custom animations and components.
  Note: In a full production build, this file would also contain the
  compiled Tailwind utility classes generated by the Tailwind CLI.
*/

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

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

/* --- 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;
}