/* ==========================================================================
   CSS VARIABLES - V2 DESIGN TOKENS
   ========================================================================== */
:root {
    /* Primary Colors */
    --primary-color: #005826;
    --primary-hover: #004520;
    --primary-light: #E8F5E9;
    --primary-lighter: #F1F8F4;

    /* Secondary Colors */
    --secondary-color: #64748B;
    --secondary-hover: #475569;
    --secondary-light: #F1F5F9;

    /* Status Colors */
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --info-color: #3B82F6;

    /* Neutral Colors */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Spacing & Sizing */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 100px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}


/* Custom Styles for eTCC Registration Form */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f9fafb;
    min-height: 100vh;
}

/* Hide all step content by default */
.step-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   FORM CONTROLS - ENHANCED V2
   ========================================================================== */

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="search"],
textarea,
select {
    border: 1px solid var(--gray-300) !important;
    border-radius: var(--radius) !important;
    padding: 0.625rem 1rem !important;
    font-size: 0.9375rem !important;
    transition: var(--transition) !important;
    background-color: white !important;
    color: var(--gray-700) !important;
    width: 100% !important;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px var(--primary-light) !important;
    outline: none !important;
    background-color: white !important;
}

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

/* Form Labels */
.form-label {
    font-weight: 500 !important;
    color: var(--gray-600) !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.875rem !important;
}

/* Input with Icon */
.input-group {
    border-radius: var(--radius) !important;
}

.input-group-text {
    background: var(--gray-50);
    border: 1.5px solid var(--gray-300);
    color: var(--gray-600);
}


/* Custom Radio Button Styling */
input[type="radio"] {
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="radio"]:checked {
    transform: scale(1.1);
}

/* Category Card Hover Effects */
.bg-gray-50:has(input[type="radio"]:checked) {
    border-color: #1f2937 !important;
    background-color: #f3f4f6 !important;
}

/* Button Hover Effects */
button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

button:not(:disabled):active {
    transform: translateY(0);
}

/* Input Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1f2937;
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

/* File Upload Area Hover */
.border-dashed:hover {
    border-color: #015826;
    background-color: #fef3c7;
}

/* Progress Stepper Animation */
.w-12.h-12 {
    transition: all 0.3s ease;
}

/* Skeleton Loading Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}

/* Additional responsive styles for better mobile experience */
@media (max-width: 640px) {

    /* Reduce container padding on small screens */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Adjust main heading size */
    h2 {
        line-height: 1.3;
    }

    /* Improve button spacing in header */
    header .flex {
        gap: 0.5rem;
    }

    /* Stack details grid on mobile */
    .space-y-4>div {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.25rem;
    }

    /* Ensure text wraps properly */
    .break-all {
        word-break: break-all;
    }
}

/* Toggle Switch Styling */
input[type="checkbox"]:checked+div {
    background-color: #015826;
}

/* Disabled State */
button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Document Card Styling */
.border.border-gray-300.rounded-lg.p-4 {
    transition: all 0.2s ease;
}

.border.border-gray-300.rounded-lg.p-4:hover {
    border-color: #015826;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Delete Icon Hover */
.text-gray-400.hover\:text-red-500:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}