/* style.css - GoStockUp Brand Colors */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rating-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    background: #ffffff;
    border-radius: 32px;
    padding: 40px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.logo {
    margin-bottom: 32px;
}

.logo img {
    max-width: 200px;
    height: auto;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

/* Звезды */
.stars {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.star {
    font-size: 64px;
    cursor: pointer;
    color: #d1d5db;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1;
    min-width: 70px;
    text-align: center;
}

/* Mobile touch target size >= 64x64 */
@media (max-width: 480px) {
    .star {
font-size: 46px;
        min-width: 44px;
    }
    .stars {
        gap: 8px;
    }
}

.star:hover,
.star.active {
    transform: scale(1.05);
}

/* Активные звезды — фирменный светло-зеленый */
.star.hover-gold,
.star.active-gold {
    color: #a0dc2c !important;
}

/* Благодарность */
.thanks {
    font-size: 14px;
    color: #666;
    margin-bottom: 32px;
}

.heart {
    display: inline-block;
    margin-left: 6px;
    animation: pulse 1.5s ease infinite;
    color: #1cb141;
}

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

/* Back link */
.back-link {
    margin-top: 24px;
}

.back-link a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.back-link a:hover {
    color: #a0dc2c;
}

/* ========== Стили для формы feedback ========== */
.feedback-container {
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 32px;
    padding: 40px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feedback-container h1 {
    font-size: 28px;
    margin-bottom: 12px;
    color: #212121;
}

/* Алерт-бокс */
.alert-box {
    background: #f7f7f7;
    border-left: 4px solid #898989;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.alert-box p {
    margin: 0;
    color: #212121;
    font-size: 14px;
    line-height: 1.5;
}

.alert-box p strong {
    color: #002008;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #212121;
    font-size: 14px;
}

.form-group label .required {
    color: #b9b9b9;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a0dc2c;
    box-shadow: 0 0 0 3px rgba(160, 220, 44, 0.2);
}

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

/* Кнопка отправки — фирменный светло-зеленый */
.submit-btn {
    width: 100%;
    background: #a0dc2c;
    color: #212121;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: #1cb141;
    color: white;
    transform: translateY(-1px);
}

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

/* Навигация назад */
.feedback-back {
    text-align: center;
    margin-top: 24px;
}

/* Сообщения об ошибках и успехе */
.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.success-message {
    background: #f0f9e8;
    color: #1cb141;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.success-message a {
    color: #1cb141;
    font-weight: 600;
    text-decoration: none;
}

.success-message a:hover {
    text-decoration: underline;
}

/* Дополнительные акценты */
.rating-container a,
.feedback-container a {
    color: #1cb141;
    text-decoration: none;
}

.rating-container a:hover,
.feedback-container a:hover {
    color: #a0dc2c;
}

/* Иконка в алерте */
.alert-box .emoji {
    font-size: 18px;
    margin-right: 8px;
}