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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #2c3e2c;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 15px;
    min-height: 100vh;
}

/* Заголовок та прогрес */
.header {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e0e0e0;
}

.header h1 {
    font-size: 1.8rem;
    color: #2d5f3e;
    margin-bottom: 20px;
    font-weight: 700;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 10px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #e8f5e8;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    z-index: 2;
    position: relative;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8f5e8;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #4a7c59, #2d5f3e);
    color: white;
    box-shadow: 0 4px 12px rgba(45, 95, 62, 0.3);
}

.progress-step.active .step-label {
    color: #2d5f3e;
    font-weight: 600;
}

.progress-step.completed .step-number {
    background: #4a7c59;
    color: white;
}

.progress-step.completed .step-label {
    color: #4a7c59;
}

/* Основний контент */
.step-content {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.step-content.active {
    display: block;
}

.step-content h2 {
    font-size: 1.4rem;
    color: #2d5f3e;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* Сітка опцій */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.option-card {
    background: #f8fdf9;
    border: 2px solid #e8f5e8;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.option-card:hover::before {
    left: 100%;
}

.option-card:hover {
    border-color: #4a7c59;
    background: #e8f5e8;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 124, 89, 0.15);
}

.option-card.selected {
    border-color: #2d5f3e;
    background: linear-gradient(135deg, #f0f7f0, #e8f5e8);
    box-shadow: 0 8px 20px rgba(45, 95, 62, 0.2);
}

.option-card .icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.option-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d5f3e;
}

.option-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Пошук */
.search-container {
    margin-bottom: 20px;
}

.search-container input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8f5e8;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #f8fdf9;
    color: #2c3e2c;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #4a7c59;
    background: white;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.15);
}

.search-container input::placeholder {
    color: #999;
}

/* Алфавітна навігація */
.alphabet-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    justify-content: center;
}

.alphabet-letter {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 2px solid #e8f5e8;
    border-radius: 6px;
    background: #f8fdf9;
    color: #2d5f3e;
    text-align: center;
    line-height: 28px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.alphabet-letter:hover:not(.disabled) {
    border-color: #4a7c59;
    background: #e8f5e8;
    color: #2d5f3e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 124, 89, 0.2);
}

.alphabet-letter.active {
    border-color: #2d5f3e;
    background: linear-gradient(135deg, #4a7c59, #2d5f3e);
    color: white;
    box-shadow: 0 4px 12px rgba(45, 95, 62, 0.3);
}

.alphabet-letter.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Інформація про результати пошуку */
.breeds-results-info {
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
    padding: 8px;
    background: #f8fdf9;
    border-radius: 6px;
}

/* Контейнер порід */
.breeds-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: #4a7c59 #f8fdf9;
}

.breeds-container::-webkit-scrollbar {
    width: 6px;
}

.breeds-container::-webkit-scrollbar-track {
    background: #f8fdf9;
    border-radius: 10px;
}

.breeds-container::-webkit-scrollbar-thumb {
    background: #4a7c59;
    border-radius: 10px;
}

.breeds-container::-webkit-scrollbar-thumb:hover {
    background: #2d5f3e;
}

/* Опція породи */
.breed-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fdf9;
    border: 2px solid #e8f5e8;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.breed-option:hover {
    border-color: #4a7c59;
    background: #e8f5e8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 95, 62, 0.2);
}

.breed-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.breed-info p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.breed-price {
    text-align: right;
}

.breed-price .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2d5f3e;
    margin-bottom: 5px;
}

.breed-option.selected {
    border-color: #2d5f3e;
    background: linear-gradient(135deg, #f0f7f0, #e8f5e8);
    color: white;
}

.trimming-options {
    margin-top: 8px;
    font-size: 0.8rem;
}

.trimming-options div {
    margin: 2px 0;
}

/* Стилі для котів */
.cat-services {
    margin-top: 8px;
    font-size: 0.8rem;
}

.cat-services div {
    margin: 2px 0;
}

/* Додаткові послуги */
.additional-info {
    background: #f0f7f0;
    border: 2px solid #e8f5e8;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
}

.additional-info h4 {
    color: #2d5f3e;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.additional-info p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.additional-info strong {
    color: #2d5f3e;
}

/* Підсумок вибору */
.selection-summary {
    background: linear-gradient(135deg, #f0f7f0, #e8f5e8);
    border: 2px solid #d0e0d0;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #d0e0d0;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-item .label {
    font-weight: 600;
    color: #2d5f3e;
}

.summary-item .value {
    color: #4a7c59;
    font-weight: 500;
}

.price-item {
    background: white;
    margin: 15px -5px -5px;
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid #4a7c59;
}

.total-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2d5f3e;
}

/* Опції бронювання */
.booking-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

/* Навігація */
.navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

/* Кнопки */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, #4a7c59, #2d5f3e);
    color: white;
    border-color: #2d5f3e;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(45, 95, 62, 0.3);
}

.btn-secondary {
    background: #f8fdf9;
    color: #2d5f3e;
    border-color: #e8f5e8;
}

.btn-secondary:hover:not(:disabled) {
    background: #e8f5e8;
    border-color: #4a7c59;
}

.btn-viber {
    background: linear-gradient(135deg, #665CAC, #7360b8);
    color: white;
    border-color: #665CAC;
}

.btn-viber:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 92, 172, 0.3);
}

.btn-back {
    background: #f8fdf9;
    color: #2d5f3e;
    border-color: #e8f5e8;
}

.btn-back:hover:not(:disabled) {
    background: #e8f5e8;
    border-color: #4a7c59;
}

.btn-next {
    background: linear-gradient(135deg, #4a7c59, #2d5f3e);
    color: white;
    border-color: #2d5f3e;
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(45, 95, 62, 0.3);
}

/* Модальні вікна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.modal-header {
    margin-bottom: 25px;
    text-align: center;
}

.modal-header h3 {
    color: #2d5f3e;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Форма */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #2d5f3e;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8f5e8;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #f8fdf9;
    color: #2c3e2c;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a7c59;
    background: white;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.booking-summary {
    background: #f0f7f0;
    border: 2px solid #e8f5e8;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.booking-summary h4 {
    color: #2d5f3e;
    margin-bottom: 10px;
    font-size: 1rem;
}

.booking-summary p {
    margin-bottom: 5px;
    color: #4a7c59;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.modal-actions .btn {
    flex: 1;
}

/* Мобільна версія */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .step-content {
        padding: 20px 15px;
    }
    
    .progress-step {
        transform: scale(0.9);
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .option-card {
        padding: 15px;
    }
    
    .option-card .icon {
        font-size: 2rem;
    }
    
    .alphabet-navigation {
        gap: 3px;
        padding: 0 5px;
        justify-content: center;
        overflow-x: auto;
        scrollbar-width: thin;
    }
    
    .alphabet-letter {
        width: 26px;
        height: 26px;
        line-height: 22px;
        font-size: 0.75rem;
        flex-shrink: 0;
        min-width: 26px;
    }
    
    .breeds-container {
        max-height: 300px;
    }
    
    .breed-option {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .booking-options {
        gap: 10px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.85rem;
        flex: 1;
        min-width: 0;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }
    
    .navigation {
        gap: 8px;
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .header {
        padding: 12px;
    }
    
    .header h1 {
        font-size: 1.4rem;
    }
    
    .step-content {
        padding: 15px 12px;
    }
    
    .option-card .icon {
        font-size: 1.8rem;
    }
    
    .breed-option {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .breed-price {
        text-align: center;
    }
    
    .modal-content {
        padding: 20px;
        margin: 10px;
        max-width: 95%;    
        width: 95%;        
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .booking-options .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* Анімації */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content.active {
    animation: fadeIn 0.3s ease-out;
}

.option-card:hover {
    animation: pulse 0.3s ease-in-out;
}

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

/* Висока контрастність */
@media (prefers-contrast: high) {
    .option-card {
        border-width: 3px;
    }
    
    .btn {
        border-width: 3px;
    }
    
    .alphabet-letter {
        border-width: 3px;
    }
}

/* Зменшені анімації */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}