* {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.feedback-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 1.5rem 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.feedback-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 3.5rem;
    max-width: 700px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.language-switcher {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 100;
}

.language-label {
    font-size: 0.85rem;
    color: #4a5568;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #04ab7b 0%, #028a61 100%);
    transition: 0.4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.slider:hover {
    background: linear-gradient(135deg, #028a61 0%, #026b4a 100%);
    box-shadow: 0 4px 12px rgba(4, 171, 123, 0.3);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider:before {
    transform: translateX(32px);
}

.slider-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    z-index: 1;
    transition: opacity 0.3s;
}

.slider-text-left {
    opacity: 1;
}

.slider-text-right {
    opacity: 0.5;
}

input:checked + .slider .slider-text-left {
    opacity: 0.5;
}

input:checked + .slider .slider-text-right {
    opacity: 1;
}

.logo-container {
    text-align: center;
    margin-bottom: 0.75rem;
    padding-top: 1rem;
}

.logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.form-subtitle {
    color: #718096;
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    font-weight: 400;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.form-label.required::after {
    content: " *";
    color: #fc8181;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 1.5px solid #cbd5e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f7fafc;
    color: #2d3748;
    font-weight: 500;
    box-sizing: border-box;
    max-width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #04ab7b;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(4, 171, 123, 0.1);
}

.form-textarea {
    resize: vertical;
    font-family: inherit;
}

.validation-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.375rem;
    display: block;
    font-weight: 400;
}

.captcha-group {
    background-color: #f7fafc;
    padding: 1.25rem;
    border-radius: 10px;
    border: 1.5px solid #cbd5e0;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.captcha-question {
    flex: 1;
    background-color: white;
    padding: 0.875rem 1.125rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.captcha-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.captcha-input {
    flex: 0 0 120px;
    text-align: center;
}

.submit-button {
    width: 100%;
    max-width: 250px;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #04ab7b 0%, #028a61 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1.5rem auto 0;
    letter-spacing: 0.3px;
    display: block;
    box-sizing: border-box;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(4, 171, 123, 0.4);
    background: linear-gradient(135deg, #028a61 0%, #026b4a 100%);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #04ab7b;
    font-weight: 500;
}

.alert-error {
    background-color: #fff5f5;
    color: #742a2a;
    border: 1px solid #feb2b2;
    font-weight: 500;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #04ab7b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .feedback-container {
        padding: 1rem 0.5rem;
    }

    .feedback-card {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }

    .language-switcher {
        top: 1rem;
        right: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }

    .language-label {
        font-size: 0.85rem;
    }

    .switch {
        width: 55px;
        height: 26px;
    }

    .slider:before {
        height: 18px;
        width: 18px;
    }

    input:checked + .slider:before {
        transform: translateX(29px);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .logo {
        max-width: 150px;
    }

    .form-title {
        font-size: 1.25rem;
        margin-top: 0.5rem;
    }

    .form-subtitle {
        font-size: 0.95rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .submit-button {
        max-width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .captcha-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .captcha-question {
        width: 100%;
        text-align: center;
    }

    .captcha-input {
        flex: 1;
        width: 100%;
    }

    .alert {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .feedback-container {
        padding: 0.75rem 0.25rem;
    }

    .feedback-card {
        padding: 1.25rem 0.875rem;
    }

    .language-switcher {
        top: 0.75rem;
        right: 0.75rem;
    }

    .switch {
        width: 50px;
        height: 24px;
    }

    .slider:before {
        height: 16px;
        width: 16px;
    }

    input:checked + .slider:before {
        transform: translateX(26px);
    }

    .logo {
        max-width: 120px;
    }

    .form-title {
        font-size: 1.15rem;
        margin-top: 0.5rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.65rem 0.75rem;
        font-size: 0.9rem;
    }
}
