/* PMC Publisher Registration -- Complete Utility CSS (replaces Tailwind CDN) */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Vazirmatn', Tahoma, Arial, sans-serif; }

/* === COLORS (matching original tailwind.config) === */
:root {
    --pmc-primary: #003a21;
    --pmc-primary-container: #21503c;
    --pmc-on-primary: #ffffff;
    --pmc-secondary: #006a60;
    --pmc-on-secondary: #ffffff;
    --pmc-surface: #f8f9ff;
    --pmc-on-surface: #0d1c2f;
    --pmc-surface-container-highest: #d5e3fd;
    --pmc-surface-container-low: #eef1f5;
    --pmc-on-surface-variant: #43474e;
    --pmc-outline-variant: #c4c6cf;
    --pmc-error: #ba1a1a;
}

/* === DISPLAY === */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.appearance-none { appearance: none; -webkit-appearance: none; }
.resize-none { resize: none; }
.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

/* === GRID === */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* === GAP === */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-y-6 { row-gap: 1.5rem; }

/* === SPACE BETWEEN CHILDREN === */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* === SIZING === */
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-12 { width: 3rem; }
.h-0\.5 { height: 0.125rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-96 { height: 24rem; }
.min-h-screen { min-height: 100vh; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-900 { max-width: 900px; }

/* === MARGIN === */
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.mx-12 { margin-left: 3rem; margin-right: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }

/* === PADDING === */
.p-2 { padding: 0.5rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-100 { padding-top: 100px; }
.pb-4 { padding-bottom: 1rem; }
.pb-24 { padding-bottom: 6rem; }

/* === TYPOGRAPHY === */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-18 { font-size: 18px; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* === BACKGROUND COLORS === */
.bg-primary { background-color: var(--pmc-primary); }
.bg-primary-container { background-color: var(--pmc-primary-container); }
.bg-surface { background-color: var(--pmc-surface); }
.bg-white { background-color: #ffffff; }
.bg-secondary { background-color: var(--pmc-secondary); }
.bg-surface-container-highest { background-color: var(--pmc-surface-container-highest); }
.bg-surface-container-low { background-color: var(--pmc-surface-container-low); }
[class*="bg-outline-variant/50"] { background-color: rgba(196, 198, 207, 0.5); }
[class*="bg-primary-container/5"] { background-color: rgba(26, 54, 93, 0.05); }
.bg-gradient-to-b { background: linear-gradient(to bottom, rgba(26, 54, 93, 0.1), transparent); }

/* === TEXT COLORS === */
.text-on-primary { color: var(--pmc-on-primary); }
.text-on-surface { color: var(--pmc-on-surface); }
[class*="text-on-surface-variant/60"] { color: rgba(67, 71, 78, 0.6); }
[class*="text-on-surface-variant/40"] { color: rgba(67, 71, 78, 0.4); }
.text-on-surface-variant { color: var(--pmc-on-surface-variant); }
.text-primary-container { color: var(--pmc-primary-container); }
.text-secondary { color: var(--pmc-secondary); }
.text-error { color: var(--pmc-error); }
.text-outline-variant { color: var(--pmc-outline-variant); }
.text-white { color: #ffffff; }
[class*="placeholder:text-outline-variant/50"]::placeholder { color: rgba(196, 198, 207, 0.5); }

/* === BORDER === */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-dashed { border-style: dashed; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-outline-variant { border-color: var(--pmc-outline-variant); }
[class*="border-outline-variant/20"] { border-color: rgba(196, 198, 207, 0.2); }
[class*="border-outline-variant/30"] { border-color: rgba(196, 198, 207, 0.3); }
[class*="border-primary-container/30"] { border-color: rgba(26, 54, 93, 0.3); }

/* === BORDER RADIUS === */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* === SHADOWS === */
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

/* === RING === */
.ring-4 { box-shadow: 0 0 0 4px var(--pmc-surface); }

/* === POSITIONING === */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.left-0 { left: 0; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-z-10 { z-index: -10; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* === OPACITY === */
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }

/* === TRANSITIONS === */
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.duration-300 { transition-duration: 300ms; }

/* === PSEUDO-CLASSES (escaped : as \:) === */
.hover\:bg-primary:hover { background-color: var(--pmc-primary); }
[class*="hover:bg-primary-container/5"]:hover { background-color: rgba(26, 54, 93, 0.05); }
[class*="hover:bg-white/10"]:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:bg-surface-container-low:hover { background-color: var(--pmc-surface-container-low); }
.hover\:text-primary-container:hover { color: var(--pmc-primary-container); }
.focus\:outline-none:focus { outline: none; }
.focus\:border-primary-container:focus { border-color: var(--pmc-primary-container); }
.focus\:ring-1:focus { box-shadow: 0 0 0 1px var(--pmc-primary-container); }
.group:hover .group-hover\:text-primary-container { color: var(--pmc-primary-container); }

/* === STEP-CONTENT (kept from original) === */
.step-content { transition: opacity 0.3s ease, transform 0.3s ease; }
.step-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; position: absolute; visibility: hidden; }
.step-active { opacity: 1; transform: translateY(0); position: relative; visibility: visible; }
.otp-digit-field { transition: border-color 0.2s, box-shadow 0.2s; }

/* === RESPONSIVE: sm (>=640px) === */
@media (min-width: 640px) {
    .sm\:block { display: block; }
}

/* === RESPONSIVE: md (>=768px) === */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2; }
    .md\:p-10 { padding: 2.5rem; }
}

/* === MISC === */
input, select, textarea, button { -webkit-tap-highlight-color: transparent; }
button:active { transform: scale(0.98); }
