/* ==========================================================================
   Minimal re-creation of the Ant Design 5 component styles the homepage relies
   on (icons, Typography, Divider, Modal, Form, Input/Select, Button, Alert,
   message toast). Values are antd 5 defaults (token seed: #1677ff primary,
   rgba(0,0,0,.88) text, 6px radius) so the static page renders like the React
   app without shipping the antd bundle. App.css / HomeLanding.css overrides
   still apply on top exactly as in prod.
   ========================================================================== */

/* Prod renders Login/Join and several CTAs as <button>; here they are <a> hand-offs, so undo
   Bootstrap's anchor underline for them. */
a.enp-btn, a.enp-btn:hover, a.hm-btn, a.hm-btn:hover, .enp-nav__panel a, .footer-links a, .social-links a { text-decoration: none; }

/* ---------- Icons ---------- */
.anticon { display: inline-flex; align-items: center; color: inherit; font-style: normal; line-height: 0; text-align: center; text-transform: none; vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
.anticon > svg { display: inline-block; }
.anticon .anticon-svg { width: 1em; height: 1em; }

/* ---------- Typography / Divider ---------- */
h4.ant-typography { margin-bottom: 0.5em; color: rgba(0, 0, 0, 0.88); font-weight: 600; font-size: 20px; line-height: 1.4; }
.ant-typography { color: rgba(0, 0, 0, 0.88); overflow-wrap: break-word; }
.ant-divider-horizontal { display: flex; clear: both; width: 100%; min-width: 100%; margin: 24px 0; border-block-start: 1px solid rgba(5, 5, 5, 0.06); }

/* ---------- Modal ---------- */
body.enp-modal-open { overflow: hidden; }
.enp-modal[hidden] { display: none !important; }
.ant-modal-root { position: relative; }
.ant-modal-mask { position: fixed; inset: 0; z-index: 1000; height: 100%; background-color: rgba(0, 0, 0, 0.45); }
.ant-modal-wrap { position: fixed; inset: 0; z-index: 1000; overflow: auto; outline: 0; -webkit-overflow-scrolling: touch; }
.ant-modal-wrap.ant-modal-centered { text-align: center; padding: 24px 0; }
.ant-modal-wrap.ant-modal-centered::before { display: inline-block; width: 0; height: 100%; vertical-align: middle; content: ''; }
.ant-modal { position: relative; top: 100px; width: auto; max-width: calc(100vw - 32px); margin: 0 auto; padding-bottom: 24px; color: rgba(0, 0, 0, 0.88); font-size: 14px; line-height: 1.5714285714285714; pointer-events: none; box-sizing: border-box; }
.ant-modal-centered .ant-modal { top: 0; display: inline-block; padding-bottom: 0; text-align: start; vertical-align: middle; }
.ant-modal-content { position: relative; padding: 20px 24px; background-color: #fff; background-clip: padding-box; border: 0; border-radius: 8px; box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05); pointer-events: auto; }
.ant-modal-close { position: absolute; top: 17px; inset-inline-end: 17px; z-index: 1010; width: 22px; height: 22px; padding: 0; color: rgba(0, 0, 0, 0.45); font-weight: 600; line-height: 1; text-decoration: none; background: transparent; border-radius: 4px; border: 0; outline: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color 0.2s, background-color 0.2s; }
.ant-modal-close:hover { color: rgba(0, 0, 0, 0.88); background-color: rgba(0, 0, 0, 0.06); }
.ant-modal-close-x { display: flex; font-size: 16px; font-style: normal; line-height: 22px; justify-content: center; }
.ant-modal-header { color: rgba(0, 0, 0, 0.88); background: #fff; border-radius: 8px 8px 0 0; margin-bottom: 8px; padding: 0; border-bottom: none; }
.ant-modal-title { margin: 0; color: rgba(0, 0, 0, 0.88); font-weight: 600; font-size: 16px; line-height: 1.5; word-wrap: break-word; }
.ant-modal-body { font-size: 14px; line-height: 1.5714285714285714; word-wrap: break-word; padding: 0; }
.ant-modal-footer { text-align: end; background: transparent; margin-top: 12px; }
.enq-title-icon { font-size: 20px; color: #1890ff; }
.enq-success-icon { font-size: 24px; color: #52c41a; }

/* ---------- Grid ---------- */
.ant-row { display: flex; flex-flow: row wrap; min-width: 0; }
.ant-col-12 { flex: 0 0 50%; max-width: 50%; display: block; }
@media (max-width: 575px) { .ant-col-12 { flex: 0 0 100%; max-width: 100%; } }

/* ---------- Form ---------- */
.ant-form { color: rgba(0, 0, 0, 0.88); font-size: 14px; line-height: 1.5714285714285714; }
.ant-form-vertical .ant-form-item { margin-bottom: 24px; }
.ant-form-vertical .ant-form-item label { display: inline-flex; align-items: center; height: auto; padding-bottom: 8px; color: rgba(0, 0, 0, 0.88); font-size: 14px; line-height: 1.5714285714285714; margin: 0; }
.ant-form-vertical .ant-form-item label.ant-form-item-required::before { display: inline-block; margin-inline-end: 4px; color: #ff4d4f; font-size: 14px; font-family: SimSun, sans-serif; line-height: 1; content: '*'; }
.ant-form-item-explain-error { min-height: 0; color: #ff4d4f; font-size: 14px; line-height: 1.5714285714285714; transition: color 0.3s; }
.ant-form-item-explain-error:not(:empty) { margin-top: 2px; min-height: 24px; }
.ant-form-item-has-error .ant-input, .ant-form-item-has-error .ant-select { border-color: #ff4d4f; }
.ant-form-item-has-error .ant-input:focus, .ant-form-item-has-error .ant-select:focus { border-color: #ff4d4f; box-shadow: 0 0 0 2px rgba(255, 38, 5, 0.06); }

/* ---------- Input / Select / TextArea ---------- */
.ant-input, .ant-select { box-sizing: border-box; margin: 0; padding: 4px 11px; color: rgba(0, 0, 0, 0.88); font-size: 14px; line-height: 1.5714285714285714; list-style: none; position: relative; display: inline-block; width: 100%; min-width: 0; background-color: #fff; background-image: none; border: 1px solid #d9d9d9; border-radius: 6px; transition: all 0.2s; font-family: inherit; }
.ant-input-lg, .ant-select-lg { padding: 7px 11px; font-size: 16px; line-height: 1.5; border-radius: 8px; }
.ant-input::placeholder { color: rgba(0, 0, 0, 0.25); }
.ant-input:hover, .ant-select:hover { border-color: #4096ff; }
.ant-input:focus, .ant-select:focus { border-color: #1677ff; box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1); outline: 0; }
.ant-select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='64 64 896 896' width='12' height='12' fill='rgba(0,0,0,0.25)'%3E%3Cpath d='M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.ant-select:disabled { color: rgba(0, 0, 0, 0.25); background-color: rgba(0, 0, 0, 0.04); border-color: #d9d9d9; cursor: not-allowed; }
.ant-select option[value=""] { color: rgba(0, 0, 0, 0.25); }
.ant-select:invalid, .ant-select:has(option[value=""]:checked) { color: rgba(0, 0, 0, 0.25); }
textarea.ant-input { max-width: 100%; height: auto; min-height: 32px; line-height: 1.5714285714285714; vertical-align: bottom; transition: all 0.3s, height 0s; resize: vertical; }
.ant-input-textarea-show-count { position: relative; display: block; }
.ant-input-textarea-show-count::after { content: attr(data-count); display: block; color: rgba(0, 0, 0, 0.45); white-space: nowrap; text-align: end; pointer-events: none; font-size: 14px; line-height: 1.5714285714285714; margin-top: 4px; }

/* ---------- Button ---------- */
.ant-btn { outline: none; position: relative; display: inline-flex; gap: 8px; align-items: center; justify-content: center; font-weight: 400; white-space: nowrap; text-align: center; background-image: none; background: transparent; border: 1px solid transparent; cursor: pointer; transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); user-select: none; touch-action: manipulation; color: rgba(0, 0, 0, 0.88); font-size: 14px; line-height: 1.5714285714285714; height: 32px; padding: 4px 15px; border-radius: 6px; font-family: inherit; }
.ant-btn:disabled { cursor: not-allowed; opacity: 0.65; }
.ant-btn-lg { font-size: 16px; height: 40px; padding: 7px 15px; border-radius: 8px; }
.ant-btn-sm { font-size: 14px; height: 24px; padding: 0 7px; border-radius: 4px; }
.ant-btn-block { width: 100%; }
.ant-btn-default { background: #fff; border-color: #d9d9d9; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02); }
.ant-btn-default:not(:disabled):hover { color: #4096ff; border-color: #4096ff; }
.ant-btn-primary { color: #fff; background: #1677ff; box-shadow: 0 2px 0 rgba(5, 145, 255, 0.1); }
.ant-btn-link { color: #1677ff; background: transparent; border-color: transparent; box-shadow: none; }
.ant-btn-link:not(:disabled):hover { color: #69b1ff; }
.ant-btn-text { background: transparent; border-color: transparent; box-shadow: none; }
.ant-btn-text:not(:disabled):hover { background: rgba(0, 0, 0, 0.06); }
.ant-btn-icon-only.ant-btn-sm { width: 24px; padding: 0; }
.ant-btn-loading-icon .anticon { animation: enp-spin 1s linear infinite; }
@keyframes enp-spin { to { transform: rotate(360deg); } }

/* ---------- Alert ---------- */
.ant-alert { box-sizing: border-box; margin: 0; padding: 8px 12px; color: rgba(0, 0, 0, 0.88); font-size: 14px; line-height: 1.5714285714285714; position: relative; display: flex; align-items: center; word-wrap: break-word; border-radius: 8px; }
.ant-alert[hidden] { display: none !important; }
.ant-alert-error { background-color: #fff2f0; border: 1px solid #ffccc7; margin-bottom: 20px; }
.ant-alert-error .ant-alert-icon { color: #ff4d4f; }
.ant-alert-with-description { align-items: flex-start; padding: 20px 24px; }
.ant-alert-with-description .ant-alert-icon { margin-inline-end: 12px; font-size: 24px; line-height: 0; }
.ant-alert-content { flex: 1; min-width: 0; }
.ant-alert-message { color: rgba(0, 0, 0, 0.88); }
.ant-alert-close-icon { margin-inline-start: 8px; padding: 0; overflow: hidden; font-size: 12px; line-height: 12px; background-color: transparent; border: none; outline: none; cursor: pointer; color: rgba(0, 0, 0, 0.45); }
.ant-alert-close-icon:hover { color: rgba(0, 0, 0, 0.88); }

/* ---------- message (toast) ---------- */
.ant-message { position: fixed; top: 8px; left: 0; z-index: 1010; width: 100%; pointer-events: none; color: rgba(0, 0, 0, 0.88); font-size: 14px; line-height: 1.5714285714285714; }
.ant-message[hidden] { display: none !important; }
.ant-message-notice { padding: 8px; text-align: center; }
.ant-message-notice-content { display: inline-block; padding: 9px 12px; background: #fff; border-radius: 8px; box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05); pointer-events: all; }
.ant-message-custom-content { display: inline-flex; align-items: center; gap: 8px; }
.ant-message-success .anticon { color: #52c41a; font-size: 16px; }
