:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --gray: #6b7280;
    --border: #e5e7eb;
    --text: #111827;
    --success: #10b981;
    --error: #ef4444;
    --background: #f8fafc;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--background) url('plaha.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text);
    line-height: 1.6;
    padding: 2.5rem 1rem;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 500;
}

.form-body {
    padding: 3rem 2.5rem;
}

.form-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
}

.form-grid.full-width {
    grid-template-columns: 1fr;
}

@media (max-width: 768px) {
    .form-grid,
    .form-grid.full-width {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 2rem;
    }
    .header {
        padding: 2rem 1.5rem;
    }
    .form-body {
        padding: 2rem 1.5rem;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2a44;
    font-size: 1.1rem;
}

.required::after {
    content: " *";
    color: var(--error);
}

input:not([type="radio"]):not([type="file"]),
textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.2s;
    background: var(--white);
    box-sizing: border-box;
}

input:not([type="radio"]):not([type="file"]):focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.suggestions {
    position: absolute;
    background: var(--white);
    border: 2px solid var(--border);
    border-top: none;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-top: -4px;
}

.suggestions div {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.suggestions div:hover {
    background: #f0f7ff;
    color: var(--primary);
}

.suggestions div:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    transition: all 0.2s;
    font-weight: 500;
    font-size: 1rem;
}

.radio-option:hover {
    border-color: var(--primary);
    background: #f0f7ff;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-dot {
    width: 24px;
    height: 24px;
    border: 2px solid #9ca3af;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
}

.radio-option input[type="radio"]:checked ~ .radio-dot {
    border-color: var(--primary);
}

.radio-option input[type="radio"]:checked ~ .radio-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

.radio-option input[type="radio"]:checked ~ span {
    color: var(--primary);
    font-weight: 600;
}

.btn {
    background: var(--primary);
    color: var(--white);
    padding: 1.25rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    width: 100%;
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.result {
    margin-top: 2rem;
    padding: 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
}

.success {
    background: #ecfdf5;
    color: var(--success);
    border: 2px solid #a7f3d0;
}

.error {
    background: #fef2f2;
    color: var(--error);
    border: 2px solid #fecaca;
}

.preview {
    margin-top: 1.25rem;
    max-width: 220px;
    max-height: 160px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-section {
    margin-top: 3.5rem;
    border-top: 2px solid var(--border);
    padding-top: 2.5rem;
}

.faq-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text);
}

.faq-item {
    margin-bottom: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s;
    user-select: none;
}

.faq-question:hover {
    background: #f0f7ff;
    border-color: var(--primary);
}

.faq-question strong {
    color: var(--primary);
    font-weight: 700;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-toggle svg {
    width: 100%;
    height: 100%;
    fill: var(--gray);
}

.faq-question.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    border-top: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.open {
    padding: 1.25rem 1.5rem;
    max-height: 1000px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
}

th,
td {
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: left;
}

th {
    background: #f0f7ff;
    font-weight: 600;
}

.highlight {
    background: #fef3c7;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
    color: #92400e;
    font-size: 1.1rem;
}

.form-grid.full-width .form-group {
    width: 100%;
}

.form-group.vehicle-condition .radio-group,
.form-grid.full-width .radio-group {
    max-width: 100%;
    width: 100%;
}