.vote-section {
    padding: 60px 20px;
    text-align: center;
}

.vote-section h2 {
    color: #000;
    font-size: 36px;
    margin-bottom: 10px;
  
    letter-spacing: 1px;
}

.vote-section p.subtitle {
    color: #000;
    font-size: 24px;
    margin-bottom: 40px;
	font-weight:600;
}

.counter {
    text-align: center;
    margin: 20px 0;
    font-size: 20px;
    color: #fff;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
    padding: 10px 30px;
    border-radius: 30px;
}

/* Сетка 4 ряда по 3 */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    gap: 20px;
    justify-content: center;
    margin: 0 auto 40px;
    max-width: 1000px;
}

@media (max-width: 950px) {
    .gallery {
        grid-template-columns: repeat(2, 300px);
    }
}

@media (max-width: 650px) {
    .gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(12, 300px);
    }
    .item img {
        height: 100%;
    }
}

/* Карточка */
.item {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    width: 300px;
    height: 300px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.item.selected {
    border-color: #fdb00e;
    transform: scale(1.02);
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: opacity 0.3s;
}

.item.selected .title {
    opacity: 1;
    background: #fdb00e;
    color: #000;
}

/* Галочка */
.check {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fdb00e;
    color: #000;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0);
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.item.selected .check {
    opacity: 1;
    transform: scale(1);
}

/* Кнопка */
.submit-btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(180deg, #f1c569, #ffad00);
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 173, 0, 0.4);
    letter-spacing: 1px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 173, 0, 0.6);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #ccc;
}

/* Варианты фонов */
.bg-blue { background: #fff; }
.bg-green { background: #859d7f; }
.bg-brown { background: #955e61; }
.bg-dark { background: #23201f; }
.bg-orange { background: #f8a802; }
.bg-grey { background: #5b687b; }

/* Поле имени и капча */
.vote-form-fields {
    max-width: 400px;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vote-form-fields input[type="text"] {
    padding: 12px 15px;
    font-size: 16px;
/*
    border: 2px solid rgba(255,255,255,0.3);
*/
    border: 2px solid #ced4da;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-family: 'Raleway', sans-serif;
}

.vote-form-fields input[type="text"]::placeholder {
    color: #888;
}

.vote-form-fields input[type="text"]:focus {
    outline: none;
    border-color: #fdb00e;
}

.captcha-wrapper {
    display: flex;
    justify-content: center;
}

.error-message {
    color: #ff6b6b;
    font-size: 14px;
    min-height: 20px;
    margin-top: -8px;
}

/* Стиль для сообщения об ошибке капчи */
.g-text-danger {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}
