/* ============================================================
   home/yeu-cau-them-co-so.css — Trang yêu cầu thêm cơ sở mới
   Palette: navy #0a2d6e | blue #0d5db5 | cyan #29b6f6 | red #e53935
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────── */
.rtm-form-yeu-cau-them-co-so-page {
    background: linear-gradient(160deg, #061b45 0%, #0a2d6e 40%, #0d5db5 100%);
    padding: 48px 16px 64px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Dot texture */
.rtm-form-yeu-cau-them-co-so-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(41, 182, 246, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Glow blob */
.rtm-form-yeu-cau-them-co-so-page::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(41, 182, 246, 0.12), transparent 65%);
    pointer-events: none;
}

.rtm-form-yeu-cau-them-co-so-container {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Page title ──────────────────────────────────────────── */
.rtm-form-yeu-cau-them-co-so-page-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.rtm-form-yeu-cau-them-co-so-page-subtitle {
    margin: 0 0 32px;
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

/* ── Form box ────────────────────────────────────────────── */
.rtm-form-yeu-cau-them-co-so-wrap {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 28px 28px;
    box-sizing: border-box;
    box-shadow: 0 24px 64px rgba(10, 45, 110, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Header inside box ───────────────────────────────────── */
.rtm-form-yeu-cau-them-co-so-header {
    margin-bottom: 24px;
    text-align: center;
}

.rtm-form-yeu-cau-them-co-so-header h2 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
    color: #0a2d6e;
}

.rtm-form-yeu-cau-them-co-so-header p {
    margin: 0;
    font-size: 14px;
    color: #5a6a8a;
    line-height: 1.6;
}

/* ── Form layout ─────────────────────────────────────────── */
.rtm-form-yeu-cau-them-co-so {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rtm-form-yeu-cau-them-co-so-group {
    display: flex;
    flex-direction: column;
}

/* Label */
.rtm-form-yeu-cau-them-co-so-group label {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    color: #0a2d6e;
}

/* Inputs */
.rtm-form-yeu-cau-them-co-so-group input,
.rtm-form-yeu-cau-them-co-so-group select,
.rtm-form-yeu-cau-them-co-so-group textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1.5px solid #c5d8f0;
    border-radius: 12px;
    background: #f8fbff;
    font-size: 14px;
    color: #374151;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.rtm-form-yeu-cau-them-co-so-group textarea {
    min-height: 110px;
    padding: 12px 14px;
    resize: vertical;
}

.rtm-form-yeu-cau-them-co-so-group input::placeholder,
.rtm-form-yeu-cau-them-co-so-group textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.rtm-form-yeu-cau-them-co-so-group input:focus,
.rtm-form-yeu-cau-them-co-so-group select:focus,
.rtm-form-yeu-cau-them-co-so-group textarea:focus {
    background: #fff;
    border-color: #29b6f6;
    box-shadow: 0 0 0 3px rgba(41, 182, 246, 0.12);
}

/* Select */
.rtm-form-yeu-cau-them-co-so-group select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10' fill='none'><path d='M1 1L8 8L15 1' stroke='%2329b6f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 10px;
    cursor: pointer;
}

/* ── Upload ──────────────────────────────────────────────── */
.rtm-form-yeu-cau-them-co-so-upload-wrap input[type="file"] {
    display: none;
}

.rtm-form-yeu-cau-them-co-so-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 220px;
    height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    background: #0d5db5;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(13, 93, 181, 0.3);
    font-family: inherit;
    border: none;
}

.rtm-form-yeu-cau-them-co-so-upload-btn:hover {
    background: #0a4d9b;
    color: #ffffff;
    transform: translateY(-1px);
}

.rtm-form-yeu-cau-them-co-so-upload-name {
    margin-top: 8px;
    font-size: 13px;
    color: #5a6a8a;
}

.rtm-form-yeu-cau-them-co-so-upload-note {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #5a6a8a;
}

.rtm-form-yeu-cau-them-co-so-upload-note a {
    color: #0d5db5;
    text-decoration: none;
    font-weight: 600;
}

.rtm-form-yeu-cau-them-co-so-upload-note a:hover {
    color: #29b6f6;
    text-decoration: underline;
}

/* ── Captcha ─────────────────────────────────────────────── */
.rtm-form-yeu-cau-them-co-so-captcha { margin-top: 4px; }

.rtm-form-yeu-cau-them-co-so-captcha-box {
    width: 304px;
    min-height: 78px;
    padding: 14px 16px;
    border: 1.5px solid #c5d8f0;
    border-radius: 12px;
    background: #f8fbff;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.rtm-form-yeu-cau-them-co-so-captcha-box p {
    margin: 0;
    font-size: 14px;
    color: #5a6a8a;
}

/* ── Policy box ──────────────────────────────────────────── */
.rtm-form-yeu-cau-them-co-so-policy {
    background: #e8f4fd;
    border-radius: 14px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.8;
    color: #374151;
    border: 1px solid #c5d8f0;
}

.rtm-form-yeu-cau-them-co-so-policy p {
    margin: 0 0 6px;
}

.rtm-form-yeu-cau-them-co-so-policy p:last-child { margin-bottom: 0; }

.rtm-form-yeu-cau-them-co-so-policy a {
    color: #0d5db5;
    text-decoration: none;
    font-weight: 600;
}

.rtm-form-yeu-cau-them-co-so-policy a:hover { color: #29b6f6; text-decoration: underline; }

/* ── Submit button — RED ─────────────────────────────────── */
.rtm-form-yeu-cau-them-co-so-submit {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: #e53935;
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.35);
    font-family: inherit;
}

.rtm-form-yeu-cau-them-co-so-submit:hover {
    background: #c62828;
    transform: translateY(-1px);
}

/* ── Response messages ───────────────────────────────────── */
.rtm-form-response {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.rtm-form-response.is-success {
    background: #e8f4fd;
    color: #0a2d6e;
    border: 1px solid #c5d8f0;
}

.rtm-form-response.is-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f9baba;
}

.rtm-field-error {
    min-height: 18px;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.4;
    color: #e53935;
}

/* ── Duplicate hint ──────────────────────────────────────── */
.rtm-duplicate-hint {
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.55;
}

.rtm-duplicate-hint.is-warning {
    background: #fff8e7;
    color: #9a6700;
    border: 1px solid #f3d38a;
}

.rtm-duplicate-hint.is-info {
    background: #e8f4fd;
    color: #0d5db5;
    border: 1px solid #c5d8f0;
}

.rtm-duplicate-hint a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

/* ── Autocomplete dropdown ───────────────────────────────── */
.rtm-autocomplete-wrap { position: relative; }

.rtm-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    background: #ffffff;
    border: 1.5px solid #c5d8f0;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(13, 93, 181, 0.15);
    padding: 8px;
    max-height: 340px;
    overflow-y: auto;
}

.rtm-autocomplete-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    text-align: left;
    border: 0;
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.12s;
}

.rtm-autocomplete-item:hover { background: #f0f7ff; }

.rtm-autocomplete-item__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.rtm-autocomplete-item__badge.is-facility {
    background: #e8f4fd;
    color: #0d5db5;
    border: 1px solid #c5d8f0;
}

.rtm-autocomplete-item__badge.is-request {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f9baba;
}

.rtm-autocomplete-item__name {
    font-size: 14px;
    line-height: 1.45;
    color: #0a2d6e;
    font-weight: 600;
}

.rtm-autocomplete-item__meta {
    font-size: 12px;
    line-height: 1.5;
    color: #5a6a8a;
}

.rtm-autocomplete-item__meta.is-link { color: #0d5db5; }

.rtm-autocomplete-group + .rtm-autocomplete-group {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e8f4fd;
}

.rtm-autocomplete-group__title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.rtm-autocomplete-group__title span { font-weight: 700; color: #c5d8f0; }

.rtm-autocomplete-group__items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767px) {
    .rtm-form-yeu-cau-them-co-so-page { padding: 32px 14px 48px; }
    .rtm-form-yeu-cau-them-co-so-page-title { font-size: 26px; }
    .rtm-form-yeu-cau-them-co-so-wrap { padding: 22px 18px 20px; border-radius: 18px; }
    .rtm-form-yeu-cau-them-co-so-header h2 { font-size: 20px; }
    .rtm-form-yeu-cau-them-co-so-upload-btn { width: 100%; min-width: 100%; }
    .rtm-form-yeu-cau-them-co-so-captcha-box { width: 100%; }
    .rtm-form-yeu-cau-them-co-so-submit { height: 50px; font-size: 15px; }
}

/* ── Login required state ────────────────────────────────── */
.rtm-form-login-required {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 24px;
    gap: 12px;
}

.rtm-form-login-required__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f4fd, #c5d8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 4px;
    box-shadow: 0 4px 16px rgba(13, 93, 181, 0.12);
}

.rtm-form-login-required__title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #0a2d6e;
}

.rtm-form-login-required__desc {
    margin: 0;
    font-size: 14px;
    color: #5a6a8a;
    line-height: 1.7;
    max-width: 360px;
}

.rtm-form-login-required__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 32px;
    border-radius: 12px;
    background: #e53935;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 6px;
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.35);
    transition: background 0.2s, transform 0.2s;
}

.rtm-form-login-required__btn:hover {
    background: #c62828;
    color: #fff;
    transform: translateY(-1px);
}

.rtm-form-login-required__register {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
}

.rtm-form-login-required__register a {
    color: #0d5db5;
    font-weight: 600;
    text-decoration: none;
}

.rtm-form-login-required__register a:hover {
    color: #29b6f6;
    text-decoration: underline;
}