/* Economy portal: responsive animated job-search mockup and register form polish. */
.ep,
.ep *,
.ep *::before,
.ep *::after {
    box-sizing: border-box;
}

.ep .ep-hero {
    padding: clamp(52px, 6vw, 78px) 0 42px;
    background:
        radial-gradient(circle at 88% 18%, #6ee7b726 0 2px, transparent 3px) 0 0 / 23px 23px,
        linear-gradient(125deg, #032f2a 0%, #064e3b 58%, #047857 100%);
}

.ep .ep-hero::before {
    background: radial-gradient(circle, #a7f3d033 0 2px, transparent 3px);
    background-size: 22px 22px;
}

.ep .ep-hero-grid {
    grid-template-columns: minmax(0, .92fr) minmax(490px, 1.08fr);
    gap: clamp(36px, 5vw, 68px);
}

.ep .ep-hero-copy h1 {
    letter-spacing: -.025em;
}

.ep .ep-hero-copy p {
    line-height: 1.8;
}

.ep .ep-hero-visual {
    min-height: 390px;
    overflow: visible;
    border: 0;
    border-radius: 30px;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.ep .ep-hero-visual::before {
    width: 82%;
    height: 86%;
    inset: 10% auto auto 10%;
    border-radius: 36px;
    background: linear-gradient(145deg, #ffffff18, #34d39924);
    border: 1px solid #ffffff20;
    filter: none;
    transform: rotate(5deg);
}

.ep .ep-hero-visual::after {
    width: 150px;
    height: 150px;
    left: -20px;
    bottom: -18px;
    background: #10b9813d;
    filter: blur(12px);
}

.ep-job-window {
    position: absolute;
    z-index: 2;
    inset: 8px 0 8px 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ffffff4d;
    border-radius: 25px;
    background: #f8fafc;
    color: #0f172a;
    box-shadow: 0 28px 70px #022c226b, inset 0 1px 0 #fff;
    animation: epWindowFloat 6s ease-in-out infinite;
}

.ep-job-window__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 0 15px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.ep-job-window__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fb7185;
}

.ep-job-window__dot:nth-child(2) { background: #fbbf24; }
.ep-job-window__dot:nth-child(3) { background: #34d399; }

.ep-job-window__url {
    min-width: 0;
    margin-left: 8px;
    padding: 5px 12px;
    flex: 1;
    border-radius: 8px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
}

.ep-job-app {
    display: grid;
    grid-template-columns: 80px 1fr;
    min-height: 0;
    flex: 1;
}

.ep-job-sidebar {
    padding: 18px 13px;
    background: #064e3b;
    color: #fff;
}

.ep-job-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 27px;
    font: 700 11px Kanit, sans-serif;
}

.ep-job-logo i {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #34d399;
    color: #064e3b;
}

.ep-job-nav {
    display: grid;
    gap: 10px;
}

.ep-job-nav span {
    height: 8px;
    border-radius: 10px;
    background: #ffffff26;
}

.ep-job-nav span:first-child { width: 100%; background: #ffffffb3; }
.ep-job-nav span:nth-child(2) { width: 76%; }
.ep-job-nav span:nth-child(3) { width: 88%; }
.ep-job-nav span:nth-child(4) { width: 64%; }

.ep-job-content {
    min-width: 0;
    padding: 20px 21px 18px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.ep-job-kicker {
    color: #059669;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}

.ep-job-heading {
    margin: 2px 0 11px;
    font: 700 19px/1.25 Kanit, sans-serif;
}

.ep-job-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 14px;
}

.ep-job-search__field,
.ep-job-search__button {
    display: flex;
    align-items: center;
    min-height: 38px;
    border-radius: 11px;
}

.ep-job-search__field {
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #dbe4ec;
    background: #fff;
    color: #64748b;
    font-size: 10px;
    box-shadow: 0 4px 12px #0f172a08;
}

.ep-job-search__field i { color: #059669; }

.ep-job-search__typing {
    position: relative;
    display: inline-block;
    width: 102px;
    white-space: nowrap;
    overflow: hidden;
    animation: epTyping 5s steps(16, end) infinite;
}

.ep-job-search__typing::after {
    content: "";
    display: inline-block;
    height: 11px;
    margin-left: 2px;
    border-right: 1px solid #059669;
    vertical-align: -2px;
    animation: epCursor .75s step-end infinite;
}

.ep-job-search__button {
    padding: 0 15px;
    border: 0;
    background: #059669;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 7px 16px #0596693d;
    animation: epSearchPulse 5s ease-in-out infinite;
}

.ep-job-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 9px;
}

.ep-job-summary strong { color: #0f172a; font-size: 11px; }

.ep-job-cards { display: grid; gap: 8px; }

.ep-job-card {
    position: relative;
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 15px #0f172a08;
    opacity: 0;
    animation: epJobIn 6s ease-in-out infinite;
}

.ep-job-card:nth-child(2) { animation-delay: .35s; }
.ep-job-card:nth-child(3) { animation-delay: .7s; }

.ep-job-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 25%, #d1fae555 50%, transparent 75%);
    transform: translateX(-120%);
    animation: epCardShine 6s ease-in-out infinite 2s;
}

.ep-job-card__icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #d1fae5;
    color: #047857;
    font-size: 13px;
}

.ep-job-card:nth-child(2) .ep-job-card__icon { background: #ffedd5; color: #c2410c; }
.ep-job-card:nth-child(3) .ep-job-card__icon { background: #dbeafe; color: #2563eb; }

.ep-job-card__body { display: block; min-width: 0; }
.ep-job-card__title { display: block; font-size: 10px; font-weight: 800; }
.ep-job-card__meta { display: block; margin-top: 2px; color: #94a3b8; font-size: 8px; }

.ep-job-card__tag {
    padding: 4px 7px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 7px;
    font-weight: 800;
}

.ep-job-live {
    position: absolute;
    z-index: 3;
    right: -12px;
    bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid #ffffff8c;
    border-radius: 13px;
    background: #fff;
    color: #334155;
    box-shadow: 0 12px 28px #022c2247;
    font-size: 9px;
    font-weight: 700;
    animation: epLiveFloat 4.5s ease-in-out infinite .7s;
}

.ep-job-live i { color: #10b981; animation: epLiveBlink 1.4s ease-in-out infinite; }

/* Dashboard cards and message form */
.ep-view-dashboard .ep-main {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.ep-view-dashboard .ep-card,
.ep-view-dashboard .ep-item,
.ep-view-dashboard .ep-item-head > div {
    min-width: 0;
}

.ep-view-dashboard .ep-main .ep-shell > .ep-card {
    padding: clamp(20px, 3vw, 30px);
    overflow: hidden;
}

.ep-view-dashboard .ep-main .ep-shell > .ep-card > h2 {
    margin: 0 0 18px;
    font-size: clamp(23px, 2.5vw, 29px);
}

.ep-view-dashboard .ep-list {
    gap: 18px;
}

.ep-view-dashboard .ep-item {
    padding: clamp(16px, 2.5vw, 22px);
    border-color: #dbe4ec;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 9px 24px #0f172a08;
}

.ep-view-dashboard .ep-item-head h3,
.ep-view-dashboard .ep-item-head .ep-meta,
.ep-view-dashboard .ep-alert,
.ep-view-dashboard .ep-chat p {
    overflow-wrap: anywhere;
}

.ep-view-dashboard .ep-item-head .ep-badge {
    flex: 0 0 auto;
}

.ep-view-dashboard .ep-chat {
    gap: 10px;
    margin-top: 16px;
}

.ep-view-dashboard .ep-chat p {
    width: fit-content;
    max-width: min(86%, 760px);
    padding: 11px 14px;
    line-height: 1.65;
}

.ep-view-dashboard .ep-item > .ep-form {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: stretch;
    gap: 10px;
    margin-top: 16px !important;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.ep-view-dashboard .ep-item > .ep-form input[name="message"] {
    width: 100%;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 11px 15px;
    border-radius: 13px;
    background: #fbfdff;
}

.ep-view-dashboard .ep-item > .ep-form .ep-btn {
    min-width: 78px;
    height: 48px;
    padding: 11px 20px;
    border-radius: 13px;
    color: #fff;
}

/* Registration form */
.ep-view-register .ep-main {
    position: relative;
    padding: clamp(42px, 6vw, 74px) 0 90px;
    background:
        radial-gradient(circle at 8% 8%, #d1fae566 0 2px, transparent 3px) 0 0 / 24px 24px,
        linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.ep-view-register .ep-main .ep-card {
    position: relative;
    max-width: 1000px !important;
    padding: clamp(26px, 4vw, 48px);
    overflow: hidden;
    border: 1px solid #dce8e4;
    border-radius: 30px;
    box-shadow: 0 24px 70px #0f172a12, inset 0 1px 0 #fff;
}

.ep-view-register .ep-main .ep-card::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    top: -105px;
    right: -80px;
    border-radius: 50%;
    background: linear-gradient(145deg, #10b98126, #f9731624);
    pointer-events: none;
}

.ep-view-register .ep-main .ep-card > h2 {
    position: relative;
    margin: 0 0 5px;
    padding-left: 54px;
    font-size: clamp(26px, 3vw, 34px);
    letter-spacing: -.02em;
}

.ep-view-register .ep-main .ep-card > h2::before {
    content: "\f2bb";
    position: absolute;
    left: 0;
    top: 50%;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #d1fae5, #a7f3d0);
    color: #047857;
    font: 900 18px/1 "Font Awesome 6 Free";
    transform: translateY(-50%);
}

.ep-view-register .ep-main .ep-card > .ep-meta {
    margin: 0 0 26px;
    padding-left: 54px;
    color: #64748b;
    font-size: 14px;
}

.ep-register-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 28px;
}

.ep-register-benefit {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid #dbe7e3;
    border-radius: 13px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.ep-register-benefit i { color: #059669; }

.ep-view-register .ep-form {
    column-gap: 22px;
    row-gap: 19px;
}

.ep-view-register .ep-form label {
    position: relative;
    color: #27364a;
    font-size: 14px;
    font-weight: 700;
}

.ep-view-register .ep-form input:not([type="checkbox"]),
.ep-view-register .ep-form select,
.ep-view-register .ep-form textarea {
    min-height: 51px;
    border: 1px solid #d4dee7;
    border-radius: 13px;
    background-color: #fbfdff;
    box-shadow: inset 0 1px 2px #0f172a08;
    transition: border-color .2s, box-shadow .2s, background-color .2s, transform .2s;
}

.ep-view-register .ep-form textarea { min-height: 104px; resize: vertical; }

.ep-view-register .ep-form input:hover,
.ep-view-register .ep-form select:hover,
.ep-view-register .ep-form textarea:hover {
    border-color: #94a3b8;
    background-color: #fff;
}

.ep-view-register .ep-form input:focus,
.ep-view-register .ep-form select:focus,
.ep-view-register .ep-form textarea:focus {
    border-color: #10b981;
    background-color: #fff;
    box-shadow: 0 0 0 4px #10b9811f, 0 8px 20px #0f172a0a;
    transform: translateY(-1px);
}

.ep-view-register .ep-form label.ep-consent-row {
    grid-template-columns: auto 1fr !important;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid #a7f3d0;
    border-radius: 14px;
    background: #ecfdf5;
    color: #386052;
    font-weight: 500;
}

.ep-view-register .ep-form input[type="checkbox"] {
    width: 20px !important;
    height: 20px;
    margin-top: 2px !important;
    accent-color: #059669;
}

.ep-view-register .ep-form > .ep-btn {
    min-height: 54px;
    margin-top: 2px;
    border-radius: 15px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    font-size: 16px;
    box-shadow: 0 14px 28px #05966938;
    transition: transform .2s, box-shadow .2s;
}

.ep-view-register .ep-form > .ep-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px #05966948;
}

.ep-view-register .ep-form > .ep-btn::after {
    content: "\f061";
    font: 900 13px/1 "Font Awesome 6 Free";
}

@keyframes epWindowFloat {
    0%, 100% { transform: translateY(0) rotate(-.35deg); }
    50% { transform: translateY(-8px) rotate(.2deg); }
}

@keyframes epTyping {
    0%, 12% { width: 0; }
    45%, 82% { width: 102px; }
    94%, 100% { width: 0; }
}

@keyframes epCursor { 50% { border-color: transparent; } }

@keyframes epSearchPulse {
    0%, 48%, 100% { transform: scale(1); }
    53% { transform: scale(.95); }
    57% { transform: scale(1.03); }
}

@keyframes epJobIn {
    0%, 10% { opacity: 0; transform: translateY(8px); }
    20%, 88% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes epCardShine {
    0%, 35% { transform: translateX(-120%); }
    60%, 100% { transform: translateX(120%); }
}

@keyframes epLiveFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes epLiveBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.8); }
}

.ep .ep-btn:disabled {
    cursor: wait;
    opacity: .62;
    transform: none;
}

.ep-upload-status {
    display: none;
    margin-top: 8px;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.ep-upload-status.is-processing,
.ep-upload-status.is-ready,
.ep-upload-status.is-error { display: block; }
.ep-upload-status.is-processing { background: #eff6ff; color: #1d4ed8; }
.ep-upload-status.is-ready { background: #ecfdf5; color: #047857; }
.ep-upload-status.is-error { background: #fef2f2; color: #b91c1c; }

@media (max-width: 1040px) {
    .ep .ep-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr); gap: 32px; }
    .ep .ep-hero-visual { min-height: 360px; }
}

@media (max-width: 900px) {
    .ep .ep-hero-grid { grid-template-columns: 1fr; }
    .ep .ep-hero-copy { max-width: 680px; }
    .ep .ep-hero-visual { width: min(620px, 96%); min-height: 390px; margin: 8px auto 0; }
}

@media (max-width: 640px) {
    .ep .ep-hero { padding-top: 42px; }
    .ep .ep-hero-visual { width: 100%; min-height: 345px; }
    .ep-job-window { inset: 4px 0; border-radius: 20px; }
    .ep-job-app { grid-template-columns: 58px 1fr; }
    .ep-job-sidebar { padding: 16px 10px; }
    .ep-job-logo span { display: none; }
    .ep-job-content { padding: 16px 13px; }
    .ep-job-heading { font-size: 17px; }
    .ep-job-search__button { padding: 0 11px; }
    .ep-job-card { grid-template-columns: 32px minmax(0, 1fr); }
    .ep-job-card__tag { display: none; }
    .ep-job-live { right: 8px; bottom: 14px; }
    .ep-register-benefits { grid-template-columns: 1fr; }
    .ep-view-register .ep-main .ep-card > h2,
    .ep-view-register .ep-main .ep-card > .ep-meta { padding-left: 0; }
    .ep-view-register .ep-main .ep-card > h2 { padding-top: 58px; }
    .ep-view-register .ep-main .ep-card > h2::before { top: 0; transform: none; }
    .ep-view-dashboard .ep-item-head { align-items: flex-start; }
    .ep-view-dashboard .ep-chat p { max-width: 94%; }
    .ep-view-dashboard .ep-item > .ep-form {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .ep-view-dashboard .ep-item > .ep-form .ep-btn { width: 100%; }
}

@media (max-width: 430px) {
    .ep .ep-hero-visual { min-height: 330px; }
    .ep-job-window__bar { height: 36px; }
    .ep-job-content { padding: 13px 10px; }
    .ep-job-search { margin-bottom: 9px; }
    .ep-job-search__field, .ep-job-search__button { min-height: 34px; }
    .ep-job-cards { gap: 6px; }
    .ep-job-card { padding: 7px; }
    .ep-job-card__icon { width: 31px; height: 31px; }
    .ep-job-live { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .ep-job-window,
    .ep-job-search__typing,
    .ep-job-search__typing::after,
    .ep-job-search__button,
    .ep-job-card,
    .ep-job-card::after,
    .ep-job-live,
    .ep-job-live i {
        animation: none !important;
    }
    .ep-job-card { opacity: 1; }
}

/* Registration hints: visually separate examples from entered information. */
html body main.ep.ep-view-register form.ep-form input::placeholder,
html body main.ep.ep-view-register form.ep-form textarea::placeholder {
 color: #94a3b8 !important; -webkit-text-fill-color: #94a3b8 !important; opacity: 1 !important;
}
html body main.ep.ep-view-register form.ep-form select[name="account_type"] {
 color: #94a3b8 !important; -webkit-text-fill-color: #94a3b8 !important;
}
html body main.ep.ep-view-register form.ep-form select[name="account_type"] option {
 color: #334155 !important; -webkit-text-fill-color: #334155 !important; background:#fff;
}
