514 lines
12 KiB
CSS
514 lines
12 KiB
CSS
/**
|
||
* iOS / miniapp тема: светлая, карточки 16px, фон #F2F3F7, системный шрифт
|
||
*/
|
||
|
||
:root {
|
||
--ios-bg: #F2F3F7;
|
||
--ios-card-bg: #ffffff;
|
||
--ios-card-radius: 16px;
|
||
--ios-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
|
||
--ios-card-border: 1px solid rgba(0, 0, 0, 0.06);
|
||
--ios-spacing: 16px;
|
||
--ios-text: #1c1c1e;
|
||
--ios-text-secondary: #8e8e93;
|
||
--ios-primary: #007AFF;
|
||
--ios-success: #34C759;
|
||
--ios-danger: #FF3B30;
|
||
--ios-chip-success: #34C759;
|
||
--ios-chip-progress: #007AFF;
|
||
--ios-chip-neutral: #8e8e93;
|
||
--ios-navbar-height: 56px;
|
||
--ios-bottom-bar-height: 72px;
|
||
--ios-safe-bottom: env(safe-area-inset-bottom, 0);
|
||
--ios-safe-top: env(safe-area-inset-top, 0);
|
||
}
|
||
|
||
/* Обёртка страницы */
|
||
body:has(.ios-wrap) {
|
||
background: var(--ios-bg);
|
||
}
|
||
.ios-wrap {
|
||
min-height: 100vh;
|
||
background: var(--ios-bg);
|
||
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
|
||
color: var(--ios-text);
|
||
padding-bottom: calc(var(--ios-bottom-bar-height) + var(--ios-safe-bottom));
|
||
}
|
||
|
||
/* Навбар iOS */
|
||
.ios-navbar {
|
||
position: sticky;
|
||
top: 0;
|
||
z-index: 100;
|
||
height: calc(var(--ios-navbar-height) + var(--ios-safe-top));
|
||
padding-top: var(--ios-safe-top);
|
||
background: var(--ios-bg);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding-left: 8px;
|
||
padding-right: 8px;
|
||
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
|
||
}
|
||
.ios-navbar__back {
|
||
position: absolute;
|
||
left: 8px;
|
||
top: 50%;
|
||
transform: translateY(calc(-50% + var(--ios-safe-top) / 2));
|
||
padding: 8px 12px;
|
||
color: var(--ios-primary);
|
||
font-size: 17px;
|
||
text-decoration: none;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
}
|
||
.ios-navbar__back:before {
|
||
content: "←";
|
||
font-size: 20px;
|
||
}
|
||
.ios-navbar__title {
|
||
font-size: 17px;
|
||
font-weight: 600;
|
||
text-align: center;
|
||
}
|
||
|
||
/* Контент под навбаром */
|
||
.ios-page {
|
||
padding: 12px var(--ios-spacing) 24px;
|
||
max-width: 560px;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
/* Карточка */
|
||
.ios-card {
|
||
background: var(--ios-card-bg);
|
||
border-radius: var(--ios-card-radius);
|
||
box-shadow: var(--ios-card-shadow);
|
||
border: var(--ios-card-border);
|
||
padding: var(--ios-spacing);
|
||
margin-bottom: 12px;
|
||
}
|
||
.ios-card:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
.ios-card__title {
|
||
font-size: 17px;
|
||
font-weight: 600;
|
||
margin: 0 0 12px;
|
||
color: var(--ios-text);
|
||
}
|
||
|
||
/* Лейблы и поля внутри карточек */
|
||
.ios-card .form-item__label,
|
||
.form-step.active .form-item__label {
|
||
font-size: 15px;
|
||
font-weight: 500;
|
||
color: var(--ios-text);
|
||
margin-bottom: 6px;
|
||
display: block;
|
||
}
|
||
.ios-card .form-item__sublabel,
|
||
.form-step.active .form-item__sublabel {
|
||
font-size: 13px;
|
||
color: var(--ios-text-secondary);
|
||
margin-bottom: 8px;
|
||
}
|
||
.ios-card .form-item,
|
||
.form-step.active .form-item {
|
||
margin-bottom: 16px;
|
||
}
|
||
.ios-card .form-item:last-child,
|
||
.form-step.active .form-item:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
/* Инпуты в стиле iOS */
|
||
.ios-card .form-input,
|
||
.form-step.active .form-input,
|
||
.ios-card .form-input--textarea,
|
||
.form-step.active .form-input--textarea {
|
||
width: 100%;
|
||
height: 48px;
|
||
padding: 0 14px;
|
||
font-size: 16px;
|
||
border-radius: 10px;
|
||
border: 1px solid rgba(0, 0, 0, 0.12);
|
||
background: #f9f9f9;
|
||
color: var(--ios-text);
|
||
font-family: inherit;
|
||
-webkit-appearance: none;
|
||
appearance: none;
|
||
}
|
||
.ios-card .form-input--textarea,
|
||
.form-step.active .form-input--textarea {
|
||
height: auto;
|
||
min-height: 88px;
|
||
padding: 12px 14px;
|
||
}
|
||
.ios-card .form-input:focus,
|
||
.form-step.active .form-input:focus {
|
||
border-color: var(--ios-primary);
|
||
background: #fff;
|
||
outline: none;
|
||
}
|
||
.ios-card select.form-input,
|
||
.form-step.active select.form-input {
|
||
cursor: pointer;
|
||
padding-right: 36px;
|
||
}
|
||
|
||
/* Чипы статусов */
|
||
.ios-chip {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
padding: 4px 10px;
|
||
border-radius: 12px;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
}
|
||
.ios-chip--success {
|
||
background: rgba(52, 199, 89, 0.15);
|
||
color: var(--ios-chip-success);
|
||
}
|
||
.ios-chip--progress {
|
||
background: rgba(0, 122, 255, 0.15);
|
||
color: var(--ios-chip-progress);
|
||
}
|
||
.ios-chip--neutral {
|
||
background: rgba(142, 142, 147, 0.2);
|
||
color: var(--ios-chip-neutral);
|
||
}
|
||
|
||
/* Сообщения об успехе под полями */
|
||
.form-item__warning--success {
|
||
color: var(--ios-success) !important;
|
||
font-size: 13px;
|
||
margin-top: 6px;
|
||
}
|
||
.form-item__warning:not(.form-item__warning--success) {
|
||
color: var(--ios-danger);
|
||
font-size: 13px;
|
||
margin-top: 6px;
|
||
}
|
||
|
||
/* Нижняя панель (fixed) */
|
||
.ios-bottom-bar {
|
||
position: fixed;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
z-index: 99;
|
||
padding: 12px var(--ios-spacing) calc(12px + var(--ios-safe-bottom));
|
||
background: var(--ios-bg);
|
||
border-top: 1px solid rgba(0, 0, 0, 0.06);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 12px;
|
||
max-width: 560px;
|
||
margin: 0 auto;
|
||
box-sizing: border-box;
|
||
}
|
||
.ios-progress {
|
||
font-size: 13px;
|
||
color: var(--ios-text-secondary);
|
||
flex-shrink: 0;
|
||
}
|
||
.ios-bottom-bar .btn {
|
||
flex: 1;
|
||
max-width: 160px;
|
||
height: 48px;
|
||
border-radius: 14px;
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 6px;
|
||
text-decoration: none;
|
||
border: none;
|
||
cursor: pointer;
|
||
transition: opacity 0.2s;
|
||
font-family: inherit;
|
||
}
|
||
.ios-bottom-bar .btn:disabled,
|
||
.ios-bottom-bar .btn.disabled {
|
||
opacity: 0.5;
|
||
cursor: not-allowed;
|
||
}
|
||
.ios-bottom-bar .btn--prev,
|
||
.ios-bottom-bar .js-btn-prev {
|
||
background: #e5e5ea;
|
||
color: var(--ios-text);
|
||
}
|
||
.ios-bottom-bar .btn--next,
|
||
.ios-bottom-bar .js-btn-next {
|
||
background: var(--ios-primary);
|
||
color: #fff;
|
||
}
|
||
.ios-bottom-bar .btn--submit,
|
||
.ios-bottom-bar .t-submit {
|
||
background: var(--ios-primary);
|
||
color: #fff;
|
||
max-width: none;
|
||
}
|
||
.ios-bottom-bar .btn--submit.d-none {
|
||
display: none !important;
|
||
}
|
||
|
||
/* Интро-текст в карточке */
|
||
.ios-card.form-text-card {
|
||
font-size: 15px;
|
||
line-height: 1.45;
|
||
color: var(--ios-text-secondary);
|
||
}
|
||
|
||
/* Кнопка "Проверить наличие полиса" / "Отправить смс" в стиле iOS */
|
||
.ios-card .btn.js-check-in,
|
||
.ios-card .btn.js-send-sms {
|
||
width: 100%;
|
||
height: 48px;
|
||
border-radius: 14px;
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
background: var(--ios-primary);
|
||
color: #fff;
|
||
margin-top: 8px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.ios-card .btn.js-check-in:disabled,
|
||
.ios-card .btn.js-send-sms.disabled {
|
||
opacity: 0.5;
|
||
}
|
||
|
||
/* Чекбоксы и радио */
|
||
.ios-card .checkbox-item label,
|
||
.form-step.active .checkbox-item label {
|
||
font-size: 15px;
|
||
color: var(--ios-text);
|
||
padding-left: 32px;
|
||
}
|
||
.ios-card .checkbox-item .form-checkbox + label:after,
|
||
.form-step.active .checkbox-item .form-checkbox + label:after {
|
||
width: 22px;
|
||
height: 22px;
|
||
border-radius: 6px;
|
||
border: 2px solid rgba(0, 0, 0, 0.3);
|
||
left: 0;
|
||
top: -1px;
|
||
}
|
||
.ios-card .checkbox-item .form-checkbox:checked + label:after,
|
||
.form-step.active .checkbox-item .form-checkbox:checked + label:after {
|
||
border-color: var(--ios-primary);
|
||
background: var(--ios-primary);
|
||
}
|
||
.ios-card .checkbox-item .form-checkbox:checked + label:before,
|
||
.form-step.active .checkbox-item .form-checkbox:checked + label:before {
|
||
left: 5px;
|
||
top: 3px;
|
||
color: #fff;
|
||
opacity: 1;
|
||
}
|
||
|
||
/* Файлы: кнопка загрузки */
|
||
.ios-card .form-item input[type="file"] + label,
|
||
.form-step.active .form-item input[type="file"] + label {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
height: 44px;
|
||
padding: 0 20px;
|
||
border-radius: 12px;
|
||
background: var(--ios-primary);
|
||
color: #fff;
|
||
font-size: 15px;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
border: none;
|
||
}
|
||
.ios-card .form-item input[type="file"].disabled + label,
|
||
.form-step.active .form-item input[type="file"].disabled + label {
|
||
background: #e5e5ea;
|
||
color: var(--ios-text-secondary);
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
/* Форма: убираем старые отступы под навбаром */
|
||
.ios-wrap .form {
|
||
padding-top: 0;
|
||
max-width: 100%;
|
||
}
|
||
.ios-wrap .form__warning {
|
||
border-radius: 12px;
|
||
margin: 0 0 12px;
|
||
font-size: 15px;
|
||
padding: 12px 16px;
|
||
min-height: auto;
|
||
}
|
||
.ios-wrap .form-note {
|
||
margin-top: 12px;
|
||
padding: 0 var(--ios-spacing);
|
||
font-size: 13px;
|
||
color: var(--ios-text-secondary);
|
||
text-align: center;
|
||
}
|
||
.ios-wrap .form-note a {
|
||
color: var(--ios-primary);
|
||
}
|
||
|
||
/* Секция выбора типа обращения — карточка */
|
||
.ios-cards-area {
|
||
margin-bottom: 0;
|
||
}
|
||
.ios-cards-area .form-step.active {
|
||
display: block;
|
||
background: var(--ios-card-bg);
|
||
border-radius: var(--ios-card-radius);
|
||
box-shadow: var(--ios-card-shadow);
|
||
border: var(--ios-card-border);
|
||
padding: var(--ios-spacing);
|
||
margin-bottom: 12px;
|
||
}
|
||
.form-branch-avia .form-step.active,
|
||
.form-branch-hotel .form-step.active {
|
||
background: var(--ios-card-bg);
|
||
border-radius: var(--ios-card-radius);
|
||
box-shadow: var(--ios-card-shadow);
|
||
border: var(--ios-card-border);
|
||
padding: var(--ios-spacing);
|
||
margin: 0 0 12px 0;
|
||
}
|
||
.js-step-common-applicant.form-step.active,
|
||
.js-step-common-final.form-step.active {
|
||
background: var(--ios-card-bg);
|
||
border-radius: var(--ios-card-radius);
|
||
box-shadow: var(--ios-card-shadow);
|
||
border: var(--ios-card-border);
|
||
padding: var(--ios-spacing);
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
/* Панель «вперед/назад» — сразу под контентом, при прокрутке липнет к низу экрана */
|
||
.ios-wrap .form__action {
|
||
position: sticky;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
margin-top: 24px;
|
||
padding: 12px var(--ios-spacing) calc(12px + var(--ios-safe-bottom));
|
||
background: var(--ios-bg);
|
||
border-top: 1px solid rgba(0,0,0,0.06);
|
||
z-index: 99;
|
||
max-width: 560px;
|
||
margin-left: auto;
|
||
margin-right: auto;
|
||
display: flex !important;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 12px;
|
||
box-sizing: border-box;
|
||
}
|
||
.ios-wrap .form__action .progress-row {
|
||
position: static;
|
||
}
|
||
.ios-wrap .form__action .span-progress {
|
||
font-size: 13px;
|
||
color: var(--ios-text-secondary);
|
||
opacity: 1;
|
||
}
|
||
.ios-wrap .form__action .btn {
|
||
flex: 1;
|
||
max-width: 160px;
|
||
height: 48px;
|
||
border-radius: 14px;
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
margin: 0;
|
||
}
|
||
.ios-wrap .form__action .btn--submit {
|
||
max-width: none;
|
||
}
|
||
.ios-wrap .form__action .btn--prev,
|
||
.ios-wrap .form__action .js-btn-prev {
|
||
background: #e5e5ea;
|
||
color: var(--ios-text);
|
||
}
|
||
.ios-wrap .form__action .btn--next,
|
||
.ios-wrap .form__action .js-btn-next,
|
||
.ios-wrap .form__action .btn--submit {
|
||
background: var(--ios-primary);
|
||
color: #fff;
|
||
}
|
||
|
||
/* Результат проверки полиса — как чип */
|
||
.ios-card .js-result {
|
||
margin-top: 10px;
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
padding: 6px 0;
|
||
}
|
||
.ios-card .js-result.form-item__warning--success {
|
||
color: var(--ios-success);
|
||
}
|
||
.ios-card .select-wrap:after {
|
||
border-color: var(--ios-text-secondary) transparent transparent transparent;
|
||
}
|
||
.ios-card .select-wrap {
|
||
border-radius: 10px;
|
||
overflow: hidden;
|
||
}
|
||
.ios-card .select-wrap select.form-input {
|
||
background: #f9f9f9;
|
||
}
|
||
|
||
/* J: SMS-попап в стиле iOS */
|
||
#confirm_sms .ios-card--sms-modal {
|
||
margin: 0;
|
||
max-width: 100%;
|
||
}
|
||
#confirm_sms .form-input--sms-code {
|
||
border-radius: 10px;
|
||
height: 48px;
|
||
padding: 0 14px;
|
||
font-size: 16px;
|
||
text-align: center;
|
||
letter-spacing: 4px;
|
||
}
|
||
#confirm_sms .btn--ios-primary,
|
||
#confirm_sms .btn--ios-secondary {
|
||
display: block;
|
||
width: 100%;
|
||
height: 48px;
|
||
line-height: 48px;
|
||
padding: 0 20px;
|
||
border-radius: 14px;
|
||
font-size: 17px;
|
||
font-weight: 600;
|
||
text-align: center;
|
||
border: none;
|
||
cursor: pointer;
|
||
-webkit-appearance: none;
|
||
appearance: none;
|
||
}
|
||
#confirm_sms .btn--ios-primary {
|
||
background: var(--ios-primary);
|
||
color: #fff;
|
||
}
|
||
#confirm_sms .btn--ios-secondary {
|
||
background: #e5e5ea;
|
||
color: var(--ios-text);
|
||
}
|
||
#confirm_sms .sms-countdown {
|
||
margin-top: 12px;
|
||
font-size: 13px;
|
||
color: var(--ios-text-secondary);
|
||
text-align: center;
|
||
}
|
||
#confirm_sms .sms-countdown .time {
|
||
font-weight: 600;
|
||
color: var(--ios-text);
|
||
}
|