.zodiac-calculator {
    max-width: 500px;
    margin: 20px auto;
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    font-family: 'Arial', sans-serif;
}

.calculator-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: bold;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: bold;
}

.input-group input {
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    text-align: center;
}

.input-group input:focus {
    outline: none;
    border-color: #3498db;
}

.input-group input::placeholder {
    color: #bdc3c7;
    text-align: center;
}

.help-text {
    margin-top: 8px;
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
}

.calculate-btn {
    width: 100%;
    padding: 14px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.calculate-btn:hover {
    background: #c0392b;
}

.result {
    margin-top: 25px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    display: none;
    animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zodiac-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin: 0 auto 20px;
    color: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.zodiac-icon:hover {
    transform: scale(1.05);
}

/* Цвета для каждого знака */
.zodiac-icon.rat { background: linear-gradient(135deg, #8e9eab 0%, #eef2f3 100%); color: #2c3e50; }
.zodiac-icon.ox { background: linear-gradient(135deg, #a8caba 0%, #5d4157 100%); }
.zodiac-icon.tiger { background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%); }
.zodiac-icon.rabbit { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); color: #2c3e50; }
.zodiac-icon.dragon { background: linear-gradient(135deg, #ff6b6b 0%, #ffa8a8 100%); }
.zodiac-icon.snake { background: linear-gradient(135deg, #a8e6cf 0%, #3ca59d 100%); }
.zodiac-icon.horse { background: linear-gradient(135deg, #ffafbd 0%, #ffc3a0 100%); }
.zodiac-icon.goat { background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%); color: #2c3e50; }
.zodiac-icon.monkey { background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%); }
.zodiac-icon.rooster { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); color: #2c3e50; }
.zodiac-icon.dog { background: linear-gradient(135deg, #a3bded 0%, #6991c7 100%); }
.zodiac-icon.pig { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }

.zodiac-sign {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c;
    margin: 10px 0;
}

.zodiac-element {
    text-align: center;
    font-size: 20px;
    color: #3498db;
    margin-bottom: 15px;
}

.zodiac-description {
    color: #2c3e50;
    line-height: 1.6;
    text-align: center;
}

.error {
    color: #e74c3c;
    text-align: center;
    margin-top: 10px;
    display: none;
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .zodiac-calculator {
        margin: 10px;
        padding: 20px;
    }
    
    .calculator-title {
        font-size: 20px;
    }
    
    .zodiac-icon {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .zodiac-sign {
        font-size: 24px;
    }
}