:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;
    --radius: .5rem;
}

*,
:before,
:after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: hsl(var(--border));
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
}

body {
    margin: 0;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: inherit;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    opacity: 1;
    color: hsl(var(--muted-foreground));
}

input::placeholder,
textarea::placeholder {
    opacity: 1;
    color: hsl(var(--muted-foreground));
}

.min-h-screen {
    min-height: 100vh;
}

.bg-gray-50 {
    background-color: rgb(249 250 251);
}

.bg-white {
    background-color: rgb(255 255 255);
}

.bg-red-50 {
    background-color: rgb(254 242 242);
}

.bg-yellow-50 {
    background-color: rgb(254 252 232);
}

.bg-red-600 {
    background-color: rgb(220 38 38);
}

.bg-background {
    background-color: hsl(var(--background));
}

.text-gray-800 {
    color: rgb(31 41 55);
}

.text-gray-700 {
    color: rgb(55 65 81);
}

.text-gray-500 {
    color: rgb(107 114 128);
}

.text-red-500 {
    color: rgb(239 68 68);
}

.text-red-700 {
    color: rgb(185 28 28);
}

.text-yellow-700 {
    color: rgb(161 98 7);
}

.text-blue-600 {
    color: rgb(37 99 235);
}

.text-white {
    color: rgb(255 255 255);
}

.text-foreground {
    color: hsl(var(--foreground));
}

.text-muted-foreground {
    color: hsl(var(--muted-foreground));
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: .875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: .75rem;
    line-height: 1rem;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.block {
    display: block;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: .5rem;
}

.gap-3 {
    gap: .75rem;
}

.gap-4 {
    gap: 1rem;
}

.w-full {
    width: 100%;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.h-11 {
    height: 2.75rem;
}

.min-h-[80px] {
    min-height: 80px;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-2 {
    margin-bottom: .5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: .25rem;
}

.mt-2 {
    margin-top: .5rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.px-3 {
    padding-left: .75rem;
    padding-right: .75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-2 {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.py-3 {
    padding-top: .75rem;
    padding-bottom: .75rem;
}

.p-4 {
    padding: 1rem;
}

.p-8 {
    padding: 2rem;
}

.rounded-lg {
    border-radius: var(--radius);
}

.rounded-xl {
    border-radius: .75rem;
}

.rounded-md {
    border-radius: calc(var(--radius) - 2px);
}

.border {
    border-width: 1px;
}

.border-input {
    border-color: hsl(var(--input));
}

.border-gray-200 {
    border-color: rgb(229 231 235);
}

.border-red-200 {
    border-color: rgb(254 202 202);
}

.border-yellow-200 {
    border-color: rgb(254 240 138);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
}

.object-contain {
    object-fit: contain;
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}

.space-x-3 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(.75rem * var(--tw-space-x-reverse));
    margin-left: calc(.75rem * calc(1 - var(--tw-space-x-reverse)));
}

.relative {
    position: relative;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .15s;
}

.ring-offset-background {
    --tw-ring-offset-color: hsl(var(--background));
}

.focus-visible\:outline-none:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus-visible\:ring-2:focus-visible {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus-visible\:ring-ring:focus-visible {
    --tw-ring-color: hsl(var(--ring));
}

.focus-visible\:ring-offset-2:focus-visible {
    --tw-ring-offset-width: 2px;
}

.hover\:bg-red-700:hover {
    background-color: rgb(185 28 28);
}

.hover\:bg-gray-50:hover {
    background-color: rgb(249 250 251);
}

.hover\:border-gray-300:hover {
    border-color: rgb(209 213 219);
}

.disabled\:pointer-events-none:disabled {
    pointer-events: none;
}

.disabled\:opacity-50:disabled {
    opacity: .5;
}

.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
}

[&>svg~*]:pl-7 {
    padding-left: 1.75rem;
}

[&>svg+div]:translate-y-\[-3px\] {
    --tw-translate-y: -3px;
    transform: translateY(var(--tw-translate-y));
}

[&>svg]:absolute {
    position: absolute;
}

[&>svg]:left-4 {
    left: 1rem;
}

[&>svg]:top-4 {
    top: 1rem;
}

[&>svg]:text-foreground {
    color: hsl(var(--foreground));
}

[&_p]:leading-relaxed p {
    line-height: 1.625;
}

input[type="radio"] {
    color: rgb(37 99 235);
}

input[type="radio"]:focus {
    --tw-ring-color: rgb(59 130 246);
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.error-message {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.input-error {
    border-color: #dc2626 !important;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.toast {
    padding: 12px 20px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 300px;
    justify-content: center;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.toast-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.toast-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 90%;
    width: 400px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    flex-shrink: 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.modal-body {
    margin-bottom: 24px;
}

.modal-body p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    outline: none;
}

.modal-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.modal-btn-secondary {
    background-color: #f3f4f6;
    color: #4b5563;
}

.modal-btn-secondary:hover {
    background-color: #e5e7eb;
}

.modal-btn-danger {
    background-color: #dc2626;
    color: white;
}

.modal-btn-danger:hover {
    background-color: #b91c1c;
}

.modal-btn-danger:disabled {
    background-color: #ef4444;
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #dc2626;
}

.checkbox-container label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-container label a {
    color: #3b82f6;
    text-decoration: none;
}

.checkbox-container label a:hover {
    text-decoration: underline;
}

#other-reason-input {
    display: none;
    margin-top: 8px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    max-width: 400px;
    transition: border-color 0.2s ease;
}

#other-reason-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

@media (max-width: 640px) {
    .modal-content {
        margin: 16px;
        width: calc(100% - 32px);
    }

    .checkbox-container {
        flex-direction: column;
    }

    .checkbox-container input[type="checkbox"] {
        margin-top: 0;
    }
}