/* Светлая тема — стили Telegram отключены, только свои цвета */

/* Переопределение переменных Telegram — всегда светлая тема */
:root {
  --tg-theme-bg-color: #f4f4f5;
  --tg-theme-secondary-bg-color: #ffffff;
  --tg-theme-text-color: #111111;
  --tg-theme-hint-color: #666666;
  --tg-theme-link-color: #2481cc;
  --tg-theme-button-color: #2481cc;
  --tg-theme-button-text-color: #ffffff;
  --tg-theme-header-bg-color: #ffffff;
  --tg-theme-accent-text-color: #2481cc;
  --tg-theme-section-bg-color: #f4f4f5;
  --tg-theme-section-header-text-color: #111111;
  --tg-theme-subtitle-text-color: #666666;
  --tg-theme-destructive-text-color: #ec3942;
  --tg-theme-bottom-bar-bg-color: #ffffff;
  color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    display: flex;
    justify-content: center;
    background: #f4f4f5 !important;
    min-height: 100vh;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f4f4f5 !important;
    color: #111111 !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    min-width: 320px;
    max-width: 400px;
}

/* Cards */
.card {
    background: #ffffff !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.card-body {
    padding: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-text {
    font-size: 14px;
    line-height: 1.4;
}

/* Step Number Badge */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #2481cc;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
}

/* Step Blocks */
.step-block {
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}

.step-block.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.step-block.hiding {
    opacity: 0;
    transform: translateY(-10px);
}

.form-control {
    background: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #2481cc;
    box-shadow: 0 0 0 3px rgba(36, 129, 204, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: #666666;
}

/* Suggestions Dropdown */
.suggestions-dropdown,
#breed-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #111111 !important;
}

.suggestions-dropdown.show,
#breed-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff !important;
    color: #111111 !important;
}

.suggestion-item:hover,
.suggestion-item:focus {
    background: #f4f4f5 !important;
    color: #111111 !important;
}

.suggestion-item:first-child {
    border-radius: 10px 10px 0 0;
}

.suggestion-item:last-child {
    border-radius: 0 0 10px 10px;
}

.suggestion-item:only-child {
    border-radius: 10px;
}

.suggestion-breed {
    font-weight: 500;
    color: #111111 !important;
}

.suggestion-fur {
    font-size: 12px;
    color: #666666 !important;
    background: #f4f4f5 !important;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 14px;
    background: #f4f4f5 !important;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin: 0;
}

.radio-option:active {
    transform: scale(0.98);
}

.radio-option input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #c4c4c4;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: border-color 0.2s ease;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked {
    border-color: #2481cc;
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #2481cc;
    border-radius: 50%;
}

.radio-option.selected {
    background: rgba(36, 129, 204, 0.1);
}

.radio-label {
    font-size: 15px;
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background: #2481cc;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background: #2481cc;
    opacity: 0.9;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.6;
}

/* Bootstrap overrides — светлая тема всегда */
.btn-outline-primary {
    background: transparent !important;
    color: #2481cc !important;
    border: 1px solid #2481cc !important;
}
.btn-outline-primary:hover {
    background: rgba(36, 129, 204, 0.1) !important;
    color: #2481cc !important;
    border-color: #2481cc !important;
}
.btn-outline-secondary {
    background: transparent !important;
    color: #6c757d !important;
    border: 1px solid #6c757d !important;
}
.btn-outline-secondary:hover {
    background: rgba(108, 117, 125, 0.1) !important;
    color: #6c757d !important;
    border-color: #6c757d !important;
}
.text-secondary {
    color: #6c757d !important;
}
.text-muted {
    color: #666666 !important;
}
.bg-light {
    background: #f8f9fa !important;
}

/* Success Icon */
.success-icon {
    width: 64px;
    height: 64px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

/* Loading Spinner */
.spinner-border {
    width: 40px;
    height: 40px;
}

/* Scrollbar */
.suggestions-dropdown::-webkit-scrollbar {
    width: 4px;
}

.suggestions-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.suggestions-dropdown::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 4px;
}

/* Fur type cards (step 2.1) */
.fur-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fur-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #ffffff !important;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    margin: 0;
    color: #111111 !important;
    -webkit-tap-highlight-color: rgba(36, 129, 204, 0.15);
}

.fur-card:hover {
    background: #f8f9fa !important;
    border-color: #c4c4c4;
}

.fur-card:active {
    transform: scale(0.99);
}

.fur-card.selected {
    background: rgba(36, 129, 204, 0.08) !important;
    border: 2px solid #2481cc;
    box-shadow: 0 0 0 1px rgba(36, 129, 204, 0.2);
}

.fur-card.suggested {
    background: rgba(36, 129, 204, 0.08) !important;
    border: 2px solid #2481cc;
    box-shadow: 0 0 0 1px rgba(36, 129, 204, 0.2);
}

.fur-card.suggested .fur-card-check {
    display: inline-block !important;
    background: transparent !important;
    border-color: #2481cc !important;
    box-shadow: none !important;
}

.fur-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fur-card-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #c4c4c4;
    border-radius: 50%;
    margin-top: 2px;
    transition: border-color 0.2s, background 0.2s;
}

.fur-card.selected .fur-card-check {
    border-color: #2481cc;
    background: #2481cc;
    box-shadow: inset 0 0 0 3px #ffffff;
}

.fur-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.fur-card-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: #111111 !important;
}

.fur-card-desc {
    font-size: 13px;
    color: #666666 !important;
    line-height: 1.4;
    background: transparent !important;
}

/* Result block */
.result-products,
.result-steps,
.result-tips {
    font-size: 14px;
    line-height: 1.5;
}

.result-product {
    margin-bottom: 8px;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-direction: column;
}

.result-product-text {
    flex: 1;
}

.result-product-link {
    white-space: nowrap;
    width: 100%;
}

.result-product-link--disabled {
    opacity: 0.65;
    pointer-events: none;
}

.result-step {
    margin-bottom: 8px;
    padding-left: 0;
}

.result-tip {
    padding: 10px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    font-size: 13px;
}

/* Instruction header */
.result-steps-title {
    display: block;
    font-size: 18px;
}

/* Progress bar */
.progress-bar {
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: #2481cc;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Back button */
#back-btn {
    text-decoration: none;
    font-size: 14px;
}

/* Saved pets */
.saved-pets-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.saved-pet-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff !important;
    border-radius: 10px;
    border: 1px solid #e0e0e0 !important;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #111111 !important;
}

.saved-pet-card:active {
    opacity: 0.9;
}

.saved-pet-card:hover {
    background: #f4f4f5 !important;
    color: #111111 !important;
}

.saved-pet-icon {
    font-size: 28px;
    line-height: 1;
}

.saved-pet-info {
    flex: 1;
}

.saved-pet-name {
    font-weight: 600;
    color: #111111 !important;
    font-size: 15px;
}

.saved-pet-breed {
    font-size: 13px;
    color: #666666 !important;
}

.pet-icon {
    font-size: 32px;
    line-height: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}
