/**
 * Vanilla CSS Theme for Smart Safety Solutions
 * Replaced all @apply directives with standard CSS for CDN compatibility.
 */



:root {
    --brand-yellow: #facc15;
    --brand-dark: #0f172a; /* Deeper navy-black */
    --brand-bg: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #94a3b8; /* Darkened from #cbd5e1 */
    --slate-400: #475569; /* Darkened from #94a3b8 */
    --slate-500: #1e293b; /* Darkened from #64748b */
    --transition-speed: 0.4s;
}

.hidden {
    display: none !important;
}

/* Global Overrides for Tailwind Slate Classes to make them 'Gray Black' */
.text-slate-400 { color: #64748b !important; } /* Labels/Secondary */
.text-slate-500 { color: #334155 !important; } /* Descriptions */
.text-slate-700 { color: #1e293b !important; } /* Content */
.text-slate-800 { color: #0f172a !important; } /* Strong Content */
.text-slate-900 { color: #020617 !important; } /* Headings - Near Black */

/* Custom Signature Font */
.font-signature {
    font-family: 'Dancing Script', cursive;
}

/* Form Inputs & Textareas */
.form-input, .form-textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 2px solid var(--slate-300);
    background-color: #ffffff;
    color: var(--brand-dark);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: block;
    appearance: none;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--slate-400);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 8px rgba(250, 204, 21, 0.08), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Label Styling */
.form-label {
    display: block;
    font-size: 10px;
    font-weight: 900;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

/* Horizontal Label adjustment */
@media (min-width: 768px) {
    .grid.items-start .form-label {
        margin-bottom: 0;
        padding-top: 1rem; /* Align with textarea padding */
    }
}

/* Radio & Checkbox Customization */
.radio-custom {
    width: 1.5rem;
    height: 1.5rem;
    accent-color: var(--brand-yellow);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.radio-custom:hover {
    transform: scale(1.2);
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 2px solid var(--slate-100);
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.checkbox-wrapper:hover {
    border-color: rgba(250, 204, 21, 0.3);
    background-color: rgba(250, 204, 21, 0.02);
}

.checkbox-box {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.75rem;
    border: 2px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: #f9fafb;
    flex-shrink: 0;
}

.checkbox-wrapper input {
    display: none;
}

.checkbox-wrapper input:checked + .checkbox-box {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    box-shadow: 0 10px 15px -3px rgba(250, 204, 21, 0.3);
}

.checkbox-wrapper input:checked + .checkbox-box::after {
    content: '✓';
    color: var(--brand-dark);
    font-weight: 900;
    font-size: 1rem;
}

.checkbox-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--slate-500);
    line-height: 1.5;
    transition: color 0.3s ease;
}

.checkbox-wrapper input:checked ~ .checkbox-label {
    color: var(--brand-dark);
    font-weight: 700;
}

/* Navigation Buttons */
.nav-btn-primary {
    background-color: var(--brand-dark);
    color: #ffffff;
    font-weight: 900;
    padding: 1.25rem 2.5rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
}

.nav-btn-primary:hover {
    background-color: #000000;
    transform: scale(1.05);
}

.nav-btn-primary:active {
    transform: scale(0.95);
}

.nav-btn-secondary {
    color: var(--slate-400);
    font-weight: 900;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-btn-secondary:hover {
    color: var(--brand-dark);
    background-color: #ffffff;
}

/* Step Indicator Styles */
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.5s ease;
    opacity: 0.3;
    filter: grayscale(100%);
}

.step-item.active {
    opacity: 1;
    filter: grayscale(0%);
}

.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    border: 2px solid var(--slate-100);
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.875rem;
    transition: all 0.5s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.step-item.active .step-number {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--brand-dark);
    box-shadow: 0 10px 15px -3px rgba(250, 204, 21, 0.3);
}

.step-label {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--slate-400);
}

.step-item.active .step-label {
    color: var(--brand-dark);
}

/* Animations */
.form-step {
    animation: fadeInUp var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Table Stylings */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    transition: color 0.3s ease;
    color: var(--brand-dark); /* Headers should be very dark */
}

tr:hover td {
    background-color: rgba(250, 204, 21, 0.01);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .step-label { display: none; }
    .step-line { margin: 0 0.5rem; }
    
    table thead { display: none; }
    table tr { 
        display: block; 
        margin-bottom: 2.5rem; 
        border: 2px solid var(--slate-100); 
        padding: 1.5rem; 
        border-radius: 1.5rem; 
        background-color: #ffffff; 
    }
    table td { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        padding: 1rem 0; 
        border: none !important; 
    }
    table td::before {
        content: attr(data-label);
        font-size: 9px;
        font-weight: 900;
        color: var(--slate-300);
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }
    table td:first-child { 
        display: block; 
        font-size: 1.125rem; 
        font-weight: 700; 
        color: var(--brand-dark); 
        margin-bottom: 1.5rem; 
        padding: 0; 
        text-align: center; 
    }
    table td:first-child::before { display: none; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background-color: var(--brand-bg);
}
::-webkit-scrollbar-thumb {
    background-color: var(--slate-200);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--slate-300);
}
