/* Feedback Form Styles */
.feedback-container {
    border-radius: 1rem;
    padding: 2rem;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feedback-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1.5rem 0;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feedback-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .feedback-row {
        grid-template-columns: 1fr 1fr;
    }
}

.feedback-field {
    display: flex;
    flex-direction: column;
}

.feedback-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.feedback-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 1rem;
    color: #111827;
    background-color: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.feedback-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.feedback-input::placeholder {
    color: #9ca3af;
}

.feedback-textarea {
    resize: none;
    font-family: inherit;
    line-height: 1.5;
}

.feedback-submit {
    width: 100%;
    background-color: #2563eb;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.feedback-submit:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feedback-submit:active {
    transform: translateY(0);
}

.feedback-submit:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.feedback-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.feedback-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    display: none;
}

.feedback-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    display: block;
}

.feedback-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: block;
}

/* Loading animation */
.feedback-submit.loading {
    position: relative;
    color: transparent;
}

.feedback-submit.loading::after {
    content: "";
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    top: 50%;
    left: 50%;
    margin-left: -0.625rem;
    margin-top: -0.625rem;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* reCAPTCHA adjustments */
.g-recaptcha {
    display: inline-block;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 639px) {
    .feedback-container {
        padding: 1.5rem;
        border-radius: 0.75rem;
    }

    .feedback-title {
        font-size: 1.25rem;
    }

    .feedback-input {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }

    /* Масштабируем reCAPTCHA на мобильных */
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}
