.krida-public { background: #f5f3f0; color: #312b28; }
.krida-public [hidden] { display: none !important; }
.krida-container { max-width: 1040px; padding: 24px 16px; margin: auto; }
.krida-public .card { margin-bottom: 24px; border-radius: 12px; box-shadow: 0 3px 16px #402d1910; }
.krida-public .card-body { padding: 32px; }
.krida-header { overflow: hidden; border-top: 5px solid #fe6601; text-align: center; }
.krida-banner-image { display: block; width: 100%; height: auto; }
.krida-public .krida-header-content { padding: 11px 16px; background: #fffaf5; border-top: 1px solid #f1dfd0; }
.krida-registration-title { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; color: #663a25; font-size: 15px; font-weight: 600; }
.krida-title-separator { color: #fe6601; }
.krida-public h2 { font-size: 23px; color: #663a25; margin: 0 0 18px; }
.krida-public p { line-height: 1.6; }
.krida-form-section + .krida-form-section { margin-top: 32px; padding-top: 32px; border-top: 1px solid #e8ded5; }
.krida-form-section.is-disabled, .krida-details.is-disabled { opacity: .55; pointer-events: none; }
.krida-public label { display: block; font-weight: 600; margin-bottom: 8px; line-height: 1.5; }
.krida-public label > span[aria-hidden] { color: #b53c22; }
.krida-public label small { font-weight: 400; color: #6a635e; }
.krida-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.krida-size-charts { grid-column: 1 / -1; border: 1px solid #dfd4cb; border-radius: 8px; padding: 12px; }
.krida-size-charts summary { color: #663a25; font-size: 14px; font-weight: 600; cursor: pointer; }
.krida-size-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
.krida-size-chart-grid figure { margin: 0; }
.krida-size-chart-grid img { display: block; width: 100%; height: auto; border-radius: 6px; }
@media (max-width: 640px) {
    .krida-size-chart-grid { grid-template-columns: 1fr; }
}
.krida-lookup { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.krida-lookup > div { flex: 1; min-width: 200px; }
.krida-public .form-control, .krida-public .form-select { width: 100%; min-height: 46px; font-size: 16px; border: 1px solid #d9d2cb; border-radius: 6px; background-color: white; padding: 10px 12px; }
.krida-public input:read-only, .krida-public input:disabled, .krida-public select:disabled { background: #f4f1ee; color: #51483f; opacity: 1; }
.krida-public .form-select { padding-right: 32px; }
.krida-public .form-select.select2-hidden-accessible,
.krida-public .select2-selection--single { background-image: none; }
.krida-public :focus-visible { outline: 3px solid #c55414; outline-offset: 3px; }
.krida-public .form-control:focus,
.krida-public .form-select:focus,
.krida-public .select2-search__field:focus,
.krida-public .select2-container .select2-selection--single:focus {
    outline: none;
    box-shadow: none;
    border-color: #c55414;
}
.krida-public [aria-invalid="true"] { border-color: #b42318; }
.krida-details { border: 1px solid #dfd4cb; padding: 24px; border-radius: 8px; margin-top: 28px; }
.krida-public .section-header { position: static; font-size: 18px; margin: 0 0 20px; color: #663a25; }
.krida-error { min-height: 18px; font-size: 13px; margin-top: 5px; color: #b42318; }
.krida-hint { color: #6a635e; font-size: 14px; }
.krida-venue-note { display: inline-flex; align-items: center; width: fit-content; margin: 16px 0 0; padding: 7px 11px; border: 1px solid #f2c49f; border-radius: 18px; background: #fff7ef; color: #663a25; font-size: 14px; font-weight: 600; }
.krida-venue-note::before { content: "\1F4CD"; margin-right: 6px; font-size: 13px; }
.krida-venue-note:empty { display: none; }
.krida-section-hint { margin: -8px 0 18px; color: #6a635e; font-size: 13px; line-height: 1.45; white-space: nowrap; }
.krida-section-hint span { color: #847870; }
.krida-message { border: 1px solid #edc2b8; background: #fff3ee; border-radius: 6px; padding: 14px; margin-bottom: 20px; color: #8c3020; }
.krida-types { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.krida-types label { display: flex; align-items: center; gap: 16px; cursor: pointer; border: 1px solid #d9d2cb; padding: 24px; border-radius: 8px; font-size: 20px; }
.krida-types label:has(input:checked) { border-color: #fe6601; background: #fff6ee; }
.krida-types input { width: 20px; height: 20px; accent-color: #d75600; }
.krida-types strong { display: block; font-size: 16px; font-weight: 400; margin-top: 4px; }
.krida-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 28px; }
.krida-public .btn { min-height: 44px; white-space: normal; }
.krida-public .btn-light { background: #eee8e2; color: #51483f; }
.krida-public button:disabled { opacity: .6; cursor: wait; }
.krida-aadhaar-preview { position: relative; width: fit-content; max-width: 100%; margin-top: 12px; }
.krida-public .krida-aadhaar-preview .krida-photo-remove { position: absolute; top: 6px; right: 6px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; min-width: 0; padding: 0; border: 1px solid #dfd4cb; border-radius: 50%; background: #fff; color: #51483f; font-size: 22px; line-height: 1; box-shadow: 0 1px 4px rgb(0 0 0 / 15%); cursor: pointer; }
.krida-public .krida-aadhaar-preview .krida-photo-remove:hover { background: #f4f1ee; }
.krida-aadhaar-preview img { display: block; max-width: 100%; width: auto; max-height: 180px; object-fit: contain; border: 1px solid #dfd4cb; border-radius: 6px; padding: 4px; }
.krida-public .select2-container { max-width: 100%; }
.krida-public .select2-container .select2-selection--single { position: relative; min-height: 48px; display: flex; align-items: center; border: 1px solid #dfd4cb; border-radius: 6px; }
.krida-public .select2-container .select2-selection__rendered { padding-left: 12px; padding-right: 56px; }
.krida-public .select2-container .select2-selection--multiple { min-height: 48px; border: 1px solid #dfd4cb; border-radius: 6px; padding: 4px 8px; }
.krida-public .select2-container .select2-selection--multiple .select2-selection__rendered { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; }
.krida-public .select2-container .select2-selection--multiple .select2-selection__choice { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 4px 8px; border: 1px solid #f2c49f; border-radius: 5px; background: #fff0e3; color: #923c08; }
.krida-public .select2-container .select2-selection--multiple .select2-selection__choice__remove { display: inline-flex; align-items: center; justify-content: center; float: none; width: 16px; min-width: 16px; height: 20px; margin: 0; padding: 0; border-right: 0 !important; color: #923c08; font-size: 19px; font-weight: 700; line-height: 1; transform: translateY(2px); }
.krida-public .select2-container .select2-selection--multiple .select2-selection__choice__remove:hover { color: #6d2900; }
.krida-category-selection-label { margin-left: 7px; overflow-wrap: anywhere; }
.krida-public .select2-container .select2-selection--multiple .select2-search__field { min-height: 28px; margin: 0; color: #51483f; }
.krida-public .select2-container .select2-selection--single .select2-selection__clear { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); float: none; margin: 0; padding: 0; width: 20px; height: 24px; line-height: 24px; color: #7a7068; }
.krida-public .select2-container .select2-selection__arrow { height: 100%; }
.krida-public select[aria-invalid="true"] + .select2-container .select2-selection { border-color: #b42318; }
.krida-public .select2-container--disabled .select2-selection { background: #f4f1ee; }
.krida-public .select2-dropdown { background: #fff; border: 1px solid #dfd4cb; border-radius: 8px; box-shadow: 0 8px 24px rgb(81 72 63 / 14%); overflow: hidden; }
.krida-public .select2-search--dropdown { padding: 10px; }
.krida-public .select2-search--dropdown .select2-search__field { min-height: 40px; padding: 8px 12px; border: 1px solid #dfd4cb; border-radius: 6px; background: #fff; color: #51483f; }
.krida-public .select2-results > .select2-results__options { max-height: 240px; overflow-y: auto; }
.krida-public .select2-results__option { padding: 10px 12px; overflow-wrap: anywhere; }
.krida-public .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: #fff0e3; color: #923c08; }
.krida-category-dropdown .select2-results__option { position: relative; padding-right: 42px; }
.krida-category-dropdown .select2-results__option--selected { background: #fff; color: #51483f; }
.krida-category-dropdown .select2-results__option--highlighted.select2-results__option--selectable { background: #fff0e3; color: #923c08; }
.krida-category-dropdown .select2-results__option::after { content: "✓"; position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: #c55414; font-size: 18px; font-weight: 700; opacity: 0; pointer-events: none; }
.krida-category-dropdown .select2-results__option[aria-selected="true"]::after,
.krida-category-dropdown .select2-results__option--selected::after { opacity: 1; }
.krida-captcha { max-width: 620px; margin-top: 24px; }
.krida-captcha-row { display: flex; align-items: stretch; gap: 12px; }
.krida-captcha-input { position: relative; flex: 1; min-width: 0; }
.krida-captcha-input > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: #8b624a; pointer-events: none; }
.krida-public .krida-captcha-input .form-control { padding-left: 46px; }
.krida-captcha-challenge { display: flex; align-items: center; gap: 8px; padding: 2px 6px; background: #fff; border: 1px solid #d9d2cb; border-radius: 6px; }
.krida-captcha-challenge img { display: block; width: 120px; height: 40px; border-radius: 4px; }
.krida-captcha-refresh { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 50%; background: transparent; color: #b74700; cursor: pointer; transition: background-color .15s ease; }
.krida-captcha-refresh:hover { background: #ffe7d4; }
.krida-captcha-refresh svg { display: block; width: 20px; height: 20px; }
.krida-captcha-help { margin: 8px 0 0; color: #6a635e; font-size: 12px; }
@media (max-width: 480px) {
    .krida-captcha-row { flex-wrap: wrap; }
    .krida-captcha-input { flex-basis: 100%; }
}
.krida-success { text-align: center; }
.krida-success-event { margin: 0 0 16px; color: #663a25; font-size: 15px; font-weight: 600; }
.krida-registration-number-row { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 10px 14px; border: 1px solid #f2c49f; border-radius: 8px; background: #fff6ee; color: #51483f; font-size: 14px; }
.krida-success .krida-registration-number-row strong { overflow-wrap: anywhere; color: #663a25; font-size: 19px; }
.krida-success-note { margin: 10px 0 0; color: #786d66; font-size: 12px; }
.krida-success-actions .krida-action-game { border: 1px solid #c65312; background: #fff1e8; color: #c65312; font-weight: 700; }
.krida-success-actions .krida-action-game:hover, .krida-success-actions .krida-action-game:focus { border-color: #c65312; background: #fbe0cf; color: #c65312; }
.krida-success-actions .krida-action-person { border: 1px solid #4f46a5; background: #eeeeff; color: #4f46a5; font-weight: 700; }
.krida-success-actions .krida-action-person:hover, .krida-success-actions .krida-action-person:focus { border-color: #4f46a5; background: #ddddf8; color: #4f46a5; }
.krida-receipt-download { display: block; width: fit-content; min-height: 40px; margin: 28px auto 0; padding: 8px 16px; border: 1px solid #3e7c35; border-radius: 8px; background: #eaf7e7; color: #3e7c35; font-size: 13px; font-weight: 700; cursor: pointer; }
.krida-receipt-download:hover, .krida-receipt-download:focus { border-color: #3e7c35; background: #d8eed4; color: #3e7c35; }
.krida-receipt-download:disabled { cursor: wait; opacity: .65; }
.krida-success .krida-actions { justify-content: center; }
.krida-actions.krida-success-actions { margin-top: 20px; }
.krida-actions.krida-success-actions .btn { flex: 0 1 auto; min-height: 38px; padding: 7px 14px; font-size: 13px; }
@media (max-width: 640px) {
    .krida-container { padding: 12px; }
    .krida-public .card-body { padding: 22px 16px; }
    .krida-public .krida-header-content { padding: 10px 12px; }
    .krida-grid, .krida-types { grid-template-columns: 1fr; }
    .krida-details { padding: 18px 12px; }
    .krida-form-section + .krida-form-section { margin-top: 24px; padding-top: 24px; }
    .krida-lookup > div { flex-basis: 100%; }
    .krida-types label { padding: 18px; }
    .krida-actions .btn { flex: 1; }
    .krida-section-hint { white-space: normal; }
}
