
.bg-indigo-600 { background-color: var(--primary-color) !important; }
.text-indigo-600 { color: var(--primary-color) !important; }
.border-indigo-600 { border-color: var(--primary-color) !important; }
.focus\:ring-indigo-500:focus { --tw-ring-color: var(--primary-color) !important; }
.focus\:border-indigo-500:focus { border-color: var(--primary-color) !important; }

/* Premium styles for theme */
.form-container {
    max-width: 640px;
    margin: 0 auto;
}
.theme-header-image {
    width: 100%;
    aspect-ratio: 4/1;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

@media print {
    body { background: white !important; display: block !important; }
    aside { display: none !important; }
    main { width: 100% !important; padding: 0 !important; overflow: visible !important; }
    form { box-shadow: none !important; border: none !important; padding: 0 !important; }
    .print\:hidden { display: none !important; }
    input, textarea, select { border: 1px solid #ddd !important; }
}

/* Custom Dropdown Styles & Animation */
.custom-select-container { position: relative; width: 100%; }
.custom-select-trigger {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 1rem;
    background-color: #f8fafc; /* bg-slate-50 */
    border: 1px solid #e2e8f0; /* border-slate-200 */
    border-radius: 0.375rem; /* rounded-md */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
    color: #1e293b; /* text-slate-800 */
    cursor: pointer;
    transition: all 0.2s ease;
}
.custom-select-trigger:hover {
    border-color: #6366f1; /* indigo-500 */
    background-color: #ffffff;
}
.custom-select-container.open .custom-select-trigger {
    border-color: #6366f1;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.custom-select-trigger::after {
    content: '';
    width: 0.6em; height: 0.6em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3e%3c/path%3e%3c/svg%3e");
    background-repeat: no-repeat; background-size: contain; background-position: center;
    transition: transform 0.3s ease;
}
.custom-select-container.open .custom-select-trigger::after {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-height: 0;
    opacity: 0;
    overflow-y: auto;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select-container.open .custom-options {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.875rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}
.custom-option:last-child { border-bottom: none; }
.custom-option:hover { background-color: #f1f5f9; color: #4f46e5; }
.dark .custom-option:hover { background-color: #334155; color: #818cf8; }
.custom-option.selected { background-color: #eef2ff; color: #4f46e5; font-weight: 600; }
.dark .custom-option.selected { background-color: #312e81; color: #818cf8; }

/* Premium Card-Style (Clean & Compact) */
.card-choice {
    padding: 0.875rem 1.25rem;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.dark .card-choice {
    background: #1E293B;
    border-color: #334155;
}

.card-choice:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.dark .card-choice:hover {
    border-color: #475569;
    background: #2D3748;
}

.card-choice.active {
    border-color: #6366f1;
    background: #f5f8ff;
    box-shadow: 0 0 0 1px #6366f1;
}
.dark .card-choice.active {
    border-color: #818cf8;
    background: #2D3748;
    box-shadow: 0 0 0 1px #818cf8;
}

.choice-indicator {
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
.dark .choice-indicator {
    background: #0F172A;
    border-color: #334155;
}

.radio-indicator { border-radius: 9999px; }
.checkbox-indicator { border-radius: 0.25rem; }

.card-choice.active .choice-indicator {
    border-color: #6366f1;
}
.dark .card-choice.active .choice-indicator {
    border-color: #818cf8;
}

.card-choice.active .radio-indicator {
    border-width: 4px; /* Creates the dot effect simply */
}
.dark .card-choice.active .radio-indicator {
    border-color: #818cf8;
}

.choice-dot {
    display: none; /* Removed in favor of border-width approach for cleaner look */
}

.choice-check {
    color: #6366f1;
    font-size: 0.7rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.15s ease;
}
.dark .choice-check { color: #818cf8; }

.card-choice.active .choice-check {
    opacity: 1;
    transform: scale(1);
}

/* Text styling for choices */
.choice-text {
    font-size: 0.875rem;
    font-medium;
    color: #4338ca; /* Indigo-700 for that clean blue-ish look */
    letter-spacing: -0.01em;
}
.dark .choice-text { color: #e2e8f0; }

/* Logic Transitions */
.field-container {
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.field-container.hidden-logic {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    height: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

/* Rating Styles */
.rating-item {
    cursor: pointer;
    transition: all 0.2s ease;
}
.rating-item:hover {
    transform: scale(1.1);
}
.rating-item.active {
    color: #6366f1; /* indigo-500 */
}
.dark .rating-item.active {
    color: #818cf8; /* indigo-400 */
}
.rating-item.inactive {
    color: #e2e8f0; /* slate-200 */
}
.dark .rating-item.inactive {
    color: #334155; /* slate-700 */
}
