/* ============================================================
   Mango Market Transfer — стили гостевой части
   ============================================================ */

:root {
    --color-bg: #f1f5f9;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-border-focus: #f59e0b;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-soft: #94a3b8;
    --color-accent: #f59e0b;
    --color-accent-hover: #d97706;
    --color-navy: #1e3a5f;
    --color-navy-hover: #152b45;
    --color-success: #10b981;
    --color-success-bg: #ecfdf5;
    --color-danger: #dc2626;
    --color-danger-bg: #fef2f2;
    --color-warn-bg: #fef3c7;
    --color-warn-border: #fde68a;
    --color-warn-text: #92400e;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 12px rgba(0, 0, 0, 0.06);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.55;
    min-height: 100vh;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ============================================================
   Контейнер
   ============================================================ */

.container {
    max-width: 460px;
    width: 100%;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    margin-top: 24px;
}

.container.centered {
    text-align: center;
}

/* ============================================================
   Заголовки
   ============================================================ */

h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 13px;
    color: var(--color-text-soft);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ============================================================
   Переключатель языка
   ============================================================ */

.lang-switch {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.lang-btn {
    padding: 4px 16px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-surface);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: all 0.15s;
    font-family: inherit;
}

.lang-btn:hover {
    border-color: var(--color-text-soft);
}

.lang-btn.active {
    background: var(--color-navy);
    color: #fff;
    border-color: var(--color-navy);
}

/* ============================================================
   Блок «Проверить статус»
   ============================================================ */

.status-check {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 16px;
}

.status-check h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-check-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.status-check .status-check-row input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 16px;
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-align: center;
    text-transform: uppercase;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    margin: 0;
    width: auto;
}

.status-check .status-check-row input::placeholder {
    color: var(--color-text-soft);
    font-weight: 500;
}

.status-check .status-check-row input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.status-check .status-check-row button {
    width: auto;
    margin: 0;
    padding: 12px 20px;
    background: var(--color-navy);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.status-check .status-check-row button:hover {
    background: var(--color-navy-hover);
}

.status-error {
    margin-top: 10px;
    font-size: 13px;
    color: var(--color-danger);
    text-align: center;
}

/* ============================================================
   Блок контактов поддержки
   ============================================================ */

.support-contacts {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.support-contacts a {
    flex: 1;
    min-width: 130px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.15s;
}

.support-contacts a.whatsapp {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.support-contacts a.whatsapp:hover {
    background: #d1fae5;
}

.support-contacts a.viber {
    background: #f5f3ff;
    color: #4c1d95;
    border: 1px solid #ddd6fe;
}

.support-contacts a.viber:hover {
    background: #ede9fe;
}
.support-contacts a.phone {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.support-contacts a.phone:hover {
    background: #dbeafe;
}
/* ============================================================
   Форма
   ============================================================ */

form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-top: 14px;
    margin-bottom: 5px;
}

input[type="text"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--color-text);
    background: #f8fafc;
    font-family: inherit;
    transition: all 0.15s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-border-focus);
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

input:disabled,
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   Поле поиска отеля
   ============================================================ */

.hotel-search-wrapper {
    position: relative;
}

.hotel-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 240px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: none;
}

.hotel-search-results.open {
    display: block;
}

.hotel-search-results .item {
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
}

.hotel-search-results .item:last-child {
    border-bottom: none;
}

.hotel-search-results .item:hover,
.hotel-search-results .item.active {
    background: #fffbeb;
}

.hotel-search-results .empty {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--color-text-soft);
    text-align: center;
}

.no-hotel-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--color-text-muted);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.no-hotel-link:hover {
    color: var(--color-text);
}

/* ============================================================
   Слоты (радио-кнопки)
   ============================================================ */

.slots-title {
    font-weight: 600;
    color: #334155;
    font-size: 13px;
    margin-top: 16px;
    margin-bottom: 8px;
}

.slot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
}

.slot-item:hover {
    border-color: var(--color-accent);
    background: #fffbeb;
}

.slot-item input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: var(--color-accent);
}

.slot-item.selected {
    border-color: var(--color-accent);
    background: #fffbeb;
}

.options-hint {
    font-size: 12px;
    color: var(--color-warn-text);
    background: #fffbeb;
    border: 1px solid var(--color-warn-border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-top: 8px;
    line-height: 1.5;
}

/* ============================================================
   Чекбокс подтверждения
   ============================================================ */

.checkbox-block {
    margin: 18px 0;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid var(--color-warn-border);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: #78350f;
    line-height: 1.55;
}

.checkbox-block label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    color: inherit;
}

.checkbox-block input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--color-accent);
}

/* ============================================================
   Кнопки
   ============================================================ */

button[type="submit"],
.btn-primary {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    display: block;
    text-align: center;
    text-decoration: none;
}

button[type="submit"]:hover,
.btn-primary:hover {
    background: var(--color-accent-hover);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-outline {
    display: block;
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    background: #fff;
    transition: all 0.15s;
}

.btn-outline:hover {
    border-color: var(--color-text-soft);
    color: var(--color-text);
}

.btn-danger {
    display: block;
    padding: 10px 16px;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-danger);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    background: #fff;
    transition: all 0.15s;
}

.btn-danger:hover {
    background: var(--color-danger-bg);
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

/* ============================================================
   Информационные блоки
   ============================================================ */

.icon-success {
    width: 56px;
    height: 56px;
    background: var(--color-success-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: var(--color-success);
}

.info-box {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.7;
}

.info-box p {
    margin: 0 0 6px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box strong {
    color: var(--color-text);
    font-weight: 600;
}

.notice {
    background: var(--color-warn-bg);
    border: 1px solid var(--color-warn-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 13px;
    color: var(--color-warn-text);
    margin: 12px 0;
    line-height: 1.6;
}

.notice p {
    margin: 0 0 8px;
}

.notice p:last-child {
    margin-bottom: 0;
}

.notice.success {
    background: var(--color-success-bg);
    border-color: #a7f3d0;
    color: #065f46;
}

.contact-hint {
    font-size: 11px;
    color: var(--color-text-soft);
    margin-top: 4px;
    margin-bottom: 8px;
    line-height: 1.45;
}

/* ============================================================
   Блок кода брони
   ============================================================ */

.booking-code {
    background: var(--color-navy);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 18px 16px;
    text-align: center;
    margin: 16px 0;
}

.booking-code .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.75;
    margin-bottom: 6px;
}

.booking-code .value {
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.booking-code .hint {
    font-size: 11px;
    opacity: 0.75;
    margin-top: 8px;
}

/* ============================================================
   Прогресс (stepper)
   ============================================================ */

.stepper {
    display: flex;
    justify-content: space-between;
    margin: 24px 0;
    position: relative;
}

.stepper::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.stepper .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.stepper .dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-soft);
    transition: all 0.2s;
}

.stepper .step.done .dot {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
}

.stepper .step.active .dot {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.stepper .caption {
    font-size: 11px;
    color: var(--color-text-soft);
    text-align: center;
    margin-top: 6px;
    line-height: 1.3;
    padding: 0 2px;
}

.stepper .step.done .caption,
.stepper .step.active .caption {
    color: var(--color-text);
    font-weight: 500;
}

/* ============================================================
   Баннер завершённой заявки
   ============================================================ */

.archived-banner {
    background: #f1f5f9;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
}

.archived-banner strong {
    color: var(--color-text);
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    .container {
        padding: 20px 16px;
        margin-top: 8px;
        border-radius: var(--radius-md);
    }
    h1 {
        font-size: 20px;
    }
    .stepper .caption {
        font-size: 10px;
    }
    .booking-code .value {
        font-size: 26px;
    }
    .status-check .status-check-row input {
        font-size: 18px;
        padding: 10px 12px;
        letter-spacing: 0.15em;
    }
    .status-check .status-check-row button {
        padding: 10px 14px;
        font-size: 13px;
    }
}
/* Approved guest mockup: spacious form with all existing fields retained. */
body{background:#f3f5f8;color:#20344f;font-size:15px}
.container{max-width:680px;padding:32px;margin-top:24px;border:1px solid #dce3ec;box-shadow:0 5px 22px #1c2b4512}
.container h1{font-size:27px;line-height:1.3}
.container input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.container select{min-height:44px;font-size:15px}
@media(max-width:600px){.container{padding:24px 20px;margin-top:8px}.container h1{font-size:24px}}

.container input:not([type=checkbox]):not([type=radio]),.container select,.container textarea{background:white;border-color:#bac7d7}
.container label{font-weight:550}
.container .status-check{margin-top:28px;border-top:1px solid #dce3ec;padding-top:22px}
