* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    -webkit-tap-highlight-color: transparent; 
}

html {
    font-size: 16px;
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

body {
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 16px;
    color: #333;
}

.container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 600px;
    padding: 24px 20px;
}

h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.6rem;
    font-weight: 600;
}

.question {
    margin-bottom: 1.8rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.question h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    margin: 2px 0;
}

label:active {
    background-color: #e6e6e6;
    transform: scale(0.98);
}

input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.submit-btn {
    background-color: #1da1f2;
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(29, 161, 242, 0.3);
    margin-top: 10px;
    -webkit-appearance: none; 
    appearance: none; 
}

.submit-btn:active {
    background-color: #0d8ecf;
    transform: translateY(2px);
    box-shadow: 0 1px 3px rgba(29, 161, 242, 0.2);
}

.result {
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.success {
    background-color: #ffffff;
    color: #333333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
    max-width: 550px;
    margin: 0 auto;
}

.success-content {
    padding: 0;
}

.success-header {
    background: linear-gradient(135deg, #4481eb, #04befe);
    padding: 20px;
    color: white;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    color: #FFD700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.task-steps {
    padding: 25px 20px;
    background-color: white;
}

.task-intro {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    color: #555;
    font-weight: 500;
}

ol {
    list-style: none;
    counter-reset: task-counter;
    padding: 0;
    margin: 0;
}

ol li {
    position: relative;
    margin-bottom: 25px;
    padding-left: 45px;
    counter-increment: task-counter;
    display: flex;
    align-items: flex-start;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    background-color: #4481eb;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(68, 129, 235, 0.3);
}

.step-text {
    line-height: 1.5;
}

ul {
    padding-left: 20px;
    margin: 10px 0;
}

ul li {
    padding-left: 0;
    margin-bottom: 8px;
}

.highlight {
    font-weight: 600;
    color: #4481eb;
}

.action-button {
    display: inline-block;
    background-color: #4481eb;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 30px;
    margin-top: 8px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(68, 129, 235, 0.3);
    transition: all 0.3s ease;
}

.action-button:hover, 
.action-button:active {
    background-color: #3370d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(68, 129, 235, 0.4);
}

.hotel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.contact-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    text-align: center;
}

.contact-heading {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

.telegram-button {
    background-color: #0088cc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.telegram-button:hover,
.telegram-button:active {
    background-color: #0077b5;
}

.telegram-icon {
    width: 20px;
    height: 20px;
}

.task-footer {
    padding: 15px 20px;
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    background-color: white;
    border-top: 1px solid #eee;
}

.failure {
    background-color: #f8d7da;
    color: #721c24;
    box-shadow: 0 2px 10px rgba(114, 28, 36, 0.1);
    padding: 20px;
    border-radius: 16px;
    max-width: 550px;
    margin: 0 auto;
    text-align: center;
}

.success h2, .failure h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.success p, .failure p {
    font-size: 1rem;
}

.hidden {
    display: none;
}

.options label {
    user-select: none;
    -webkit-user-select: none;
}

.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: none;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    min-width: 250px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    color: #999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.close-button:active {
    background-color: #f0f0f0;
    color: #333;
    transform: scale(0.95);
}

.spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(29, 161, 242, 0.2);
    border-top-color: #1da1f2;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 14px;
    color: #333;
    margin-top: 10px;
    text-align: center;
}

@supports (padding-top: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}
