
* {
    box-sizing: border-box;
    font-family: 'Uni Sans', Roboto, Arial, sans-serif;
}
body {
    background-color: #333232;
    padding: 15px;
    margin: 0;
    color: #ffffff;
    line-height: 1.5;
    @media (max-width: 480px) {
        font-size: 10px;
    }
}
.container {
    @media (max-width: 480px) {
        padding: 8px !important;
    }
}
.nav-group, .taste-group {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.nav-group {
    display: none;
}
.nav-item, .taste-item {
    width: 19%;
    padding: 4px;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    @media (max-width: 480px) {
        font-size: 10px;
    }
}
.nav-item--active, .taste-item--active {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;;
}
.nav-item > span, .taste-item > span{
    font-size: 8px !important;
}
.taste-group {
    flex-wrap: wrap;
}
.taste-item {
    flex: 1 0 33%;
    padding: 10px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.survey__body {}
.survey__block, .taste__block {
    display: none;
    flex-direction: column;
    min-height: 100vh;
}
.survey__block h2, .taste__block h2{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    background: #000000;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
form {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
h1 {
    text-align: center;
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 25px;
}
#pointTitle {
    display: none;
    margin: 0 !important;
}
.form-group {
    margin-bottom: 20px;
}

.form-hint {
    color: #aaa;
    font-size: 14px;
    margin: 5px 0 15px 0;
    font-style: italic;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background-color: #1a1a1a;
    border: 2px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label:hover {
    background-color: #252525;
    border-color: #666;
}

.radio-label input[type="radio"] {
    margin-right: 12px;
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked {
    accent-color: #4CAF50;
}

.radio-label:has(input[type="radio"]:checked) {
    background-color: #2a2a2a;
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.radio-text {
    flex: 1;
    color: #fff;
}

.radio-text strong {
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
    color: #fff;
}

.radio-text small {
    font-size: 13px;
    color: #aaa;
    line-height: 1.4;
}

.d-flex {
    display: flex;
}
.align-items-center {
    align-items: center;
}
.align-items-center > label {
    margin-bottom: 0;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    @media (max-width: 480px) {
        font-size: 14px;
    }
}
input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fafafa;
}

/* Уменьшение прозрачности плейсхолдеров */
input::placeholder,
textarea::placeholder {
    opacity: 0.3;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    opacity: 0.3;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    opacity: 0.3;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    opacity: 0.3;
}
.error {
    border: 1px solid red;
    background-color: rgba(255, 0, 0, 0.25);
}
textarea {
    min-height: 100px;
    resize: vertical;
}
.file-input {
    padding: 10px;
    background: #f8f9fa;
    color: #000000;
    border: 1px dashed #ccc;
    text-align: center;
    cursor: pointer;
}
.next-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 2rem;
}
.next-btn:hover {
    background: #ffffff;
    color: #000000;
}
.submit-btn {
    float: right;
    margin-bottom: 20px;
    background: #4CAF50;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}
.submit-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.6);
}
.submit-btn:active {
    transform: translateY(0);
}

/* Кнопка геолокации */
.location-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #666;
    border-radius: 8px;
    background: #444;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.location-btn:hover {
    background: #555;
    border-color: #777;
    color: #aaa;
}

.location-btn.active {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.location-btn.active:hover {
    background: #45a049;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.6);
}

.location-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.location-btn i {
    font-size: 18px;
}

/* Кастомное модальное окно подтверждения */
.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.custom-modal-overlay.active {
    display: flex;
}

.custom-modal {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    border: 2px solid #333;
}

.custom-modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.custom-modal-icon {
    font-size: 32px;
}

.custom-modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

.custom-modal-body {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.custom-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.custom-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-modal-btn-cancel {
    background: #555;
    color: #ffffff;
}

.custom-modal-btn-cancel:hover {
    background: #666;
}

.custom-modal-btn-confirm {
    background: #4CAF50;
    color: #ffffff;
}

.custom-modal-btn-confirm:hover {
    background: #45a049;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.required::after {
    content: " *";
    color: red;
}
.back {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #ffffff;
    text-decoration: none;
    display: none;
}
.row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}
.row > .col {
    margin: 0 1rem;
}


.switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #4CAF50 0%, #4CAF50 50%, #ff6b6b 50%, #ff6b6b 100%);
    /* background: linear-gradient(to right, #ff6b6b 0%, #ff6b6b 50%, #4CAF50 50%, #4CAF50 100%); */
    background-size: 200% 100%;
    background-position: right bottom;
    transition: all 0.4s;
    border-radius: 34px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.slider-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    transition: opacity 0.3s;
    z-index: 2;
}

.label-no {
    left: 10px;
    opacity: 1;
}

.label-yes {
    right: 10px;
    opacity: 0.7;
}

.slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 3;
}

input:checked + .slider {
    background-position: left bottom;
}

input:checked + .slider:before {
    transform: translateX(46px);
}

input:checked + .slider .label-no {
    opacity: 0.7;
}

input:checked + .slider .label-yes {
    opacity: 1;
}

input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
}

.slider:hover:before {
    transform: scale(1.1);
    box-shadow: 0 3px 7px rgba(0,0,0,0.3);
}

input:checked + .slider:hover:before {
    transform: translateX(46px) scale(1.1);
}

/* Зеленый цвет для switch в секциях лимиток и новинок при активации */
.flavor-limit-section .switch input:checked + .slider,
.flavor-new-section .switch input:checked + .slider {
    background: linear-gradient(to right, #4CAF50 0%, #4CAF50 50%, #4CAF50 50%, #4CAF50 100%);
    background-size: 200% 100%;
    background-position: left bottom;
}

.me-2 {
    margin-right: 1rem;
}
.button-group {
    display: flex;
    gap: 8px;
    padding: 0;
    border-radius: 8px;
}
h5 {
    display: flex;
    align-items: center;
    @media (max-width: 480px) {
        font-size: 14px;
    }
    &.spoiler_title {
        margin: 0;
    }
}
.option-button {
    padding: 10px 20px;
    background-color: #e0e0e0;
    color: #000000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.option-button:hover {
    background-color: #d0d0d0;
}

.option-button.active {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-color: #ff7e5f;
    color: #000000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    
}

.option-button:focus {
    outline: 2px solid #2a70c0;
    outline-offset: 2px;
}
.flavors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.flavor-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 5px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.flavor-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: #ff7e5f;
}

.flavor-item.selected {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-color: #ff7e5f;
}

input[type="checkbox"] {
    appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid #6c757d;
    border-radius: 6px;
    margin-right: 5px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

input[type="checkbox"]:checked {
    background-color: #ff7e5f;
    border-color: #ff7e5f;
}

input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    /* font-size: 18px; */
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.flavor-name {
    font-weight: 600;
    color: #343a40;
    word-break: break-word;
    margin-bottom: 0;
    font-size: 14px;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

button {
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

button:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.spoiler {
    display: none;
    flex-direction: column;
    overflow-x: auto;
    margin-bottom: 20px;
}
.spoiler--show { display: flex; }
.spoiler-btn {background: transparent; margin-left: auto;}
.spoiler > div{
    display: flex;
}
.spoiler-item {
    border: 1px solid #ffffff;
    padding: 4px 8px;
    min-width: 150px;
    margin: 5px;
    font-size: 12px;
    cursor: pointer;
}
.spoiler-item--active {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-color: #ff7e5f;
    color: #000000;
}

/* ============================================
   ОФЛАЙН РЕЖИМ - ИНДИКАТОР СТАТУСА
   ============================================ */

.offline-status-indicator {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 10000;
    background: rgba(51, 50, 50, 0.95);
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 14px;
}

.offline-status-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.offline-status-indicator.online .offline-status-content i {
    color: #4caf50;
}

.offline-status-indicator.offline .offline-status-content i {
    color: #f44336;
}

.offline-status-text {
    font-weight: 500;
}

.offline-pending-count {
    display: none;
    background: #ff9800;
    color: #ffffff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.offline-status-indicator.has-pending .offline-pending-count {
    display: inline-block;
}

@media (max-width: 480px) {
    .offline-status-indicator {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .offline-status-text {
        display: none;
    }
}

/* ============================================
   ОФЛАЙН РЕЖИМ - УВЕДОМЛЕНИЯ О СИНХРОНИЗАЦИИ
   ============================================ */

.offline-sync-notification {
    position: fixed;
    top: 80px;
    right: 15px;
    z-index: 9999;
    background: rgba(51, 50, 50, 0.95);
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    min-width: 250px;
    max-width: 350px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.offline-sync-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.offline-sync-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 14px;
}

.offline-sync-content i {
    font-size: 18px;
    color: #2196f3;
}

.offline-sync-content.success i {
    color: #4caf50;
}

.offline-sync-content .fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .offline-sync-notification {
        top: 60px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
}