* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #fafafa;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}*/

.container {
    max-width: 800px;
    width: var(--reduced-width);
    margin: 0 auto;
    background: #ffffff;
    border-radius: 0px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e8e8e8;
    font-size: var(--fontSizeB);    
}

.header {
    background: #ffffff;
    color: #333;
    padding: 24px 30px 30px;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
}

.header-logo {
    display: block;
    margin: 0 auto 16px;
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.header h1 {
    font-size: 1.5em;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.subtitle {
    font-size: 0.95em;
    color: #666;
}

.info-section {
    padding: 15px 30px 20px;
    background: #fafafa;
    border-top: 1px solid #e8e8e8;
}

.info-section h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 0.95em;
    font-weight: 500;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.info-item {
    padding: 8px 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

.info-item p {
    margin: 0;
    line-height: 1.4;
    color: #666;
    font-size: 0.85em;
}

.registration-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.required {
    color: #999;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #333;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 150px;
}

.radio-label:hover {
    border-color: #999;
    background: #fafafa;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    background: #666;
    border-color: #666;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 1px solid #999;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.radio-text {
    font-weight: 500;
    color: #333;
}

.date-picker-wrapper {
    position: relative;
    display: flex;
    gap: 8px;
}

.date-picker-wrapper input[type="text"] {
    flex: 1;
    cursor: pointer;
}

.calendar-toggle-btn {
    padding: 12px 16px;
    background: #fafafa;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    color: #333;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.calendar-toggle-btn:hover {
    background: #f0f0f0;
    border-color: #999;
}

.calendar-picker {
    margin-top: 12px;
    padding: 20px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.35s ease-out, opacity 0.25s ease-out, transform 0.25s ease-out;
    pointer-events: none;
}

.calendar-picker.calendar-picker--open {
    max-height: 80vh;
    min-height: 320px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-nav-btn {
    background: #fafafa;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.9em;
    color: #333;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background: #f0f0f0;
    border-color: #999;
}

.calendar-nav-btn--disabled,
.calendar-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.calendar-month-year {
    font-weight: 500;
    color: #333;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
    background: white;
}

.calendar-day:hover {
    background: #fafafa;
    border-color: #999;
}

.calendar-day.available {
    background: #e8f5e9;
    border-color: #81c784;
    font-weight: 500;
    color: #2e7d32;
}

.calendar-day.available:hover {
    background: #c8e6c9;
    border-color: #66bb6a;
}

.calendar-day.selected {
    background: #333;
    color: white;
    border-color: #333;
}

.calendar-day.other-month {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.disabled {
    color: #ddd;
    cursor: not-allowed;
    background: #fafafa;
}

.submit-btn, .preSubmit-btn {
    width: 100%;
    padding: 14px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: #444;
}

.submit-btn:active {
    transform: translateY(0);
    color: red;    
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    color: white;    
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #d0d0d0;
}

.form-message.info {
    background: #709070;
    color: #ffffff;
    border: 1px solid #d0d0d0;
}

.form-message.error {
    background: #f5f5f5;
    color: #000000;
    border: 1px solid #d0d0d0;
}

.success-view {
    padding: 40px 30px;
    text-align: center;
}

.success-content {
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #709070;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    margin: 0 auto 20px;
    font-weight: 300;
}

.success-content h2 {
    color: #333;
    font-size: 1.8em;
    font-weight: 500;
    margin-bottom: 15px;
}

.success-message {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.success-details {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 25px;
    margin: 30px 0;
}
.success-details p {
    font-size: 1.2em;
    margin: 10px 0;
    color: #333;
}
.success-date {
    font-size: 1.2em;
    font-weight: 500;
    color: #333;
    margin: 15px 0 !important;
}
.success-time {
    color: #666;
    font-size: 1.2em;
    margin-top: 10px !important;
}
.success-note {
    color: #666;
    font-size: 0.9em;
    margin-top: 20px;
}

.dragonAnimDisplay {
    background: #d0d0d0;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    touch-action: none;
 }
@media /*(max-width: 768px)*/ {
/*    .header h1 {          // that's the only thing we do not
        font-size: 2em;     // use from Evgeny
    }*/

    .registration-form {
        padding: 30px 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
    }

    .radio-label {
        min-width: 100%;
    }
}
