.wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

.wrapper * {
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.instruction {
    font-size: 14px;
    text-align: right;
    max-width: 400px;
    margin: 0;
}

.form-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.options-grid.material .option-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.options-grid.extra {
    justify-content: stretch;
}

.options-grid.extra > div {
    flex-grow: 1;
}

.options-grid.contacts .input-group input[type="number"],
.options-grid.contacts .input-group input[type="text"],
.options-grid.contacts input[type="tel"] {
    width: 280px;
}

.option-item {
    position: relative;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
    min-width: 120px;
    flex: 1 1 auto;
}

.option-item:hover {
    border-color: #999;
}

.option-item.selected {
    border-color: #4caf50;
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-item .flex-row {
    align-items: center;
    justify-content: flex-start;
}

.option-item .flex-row .option-icon {
    margin: 10px 30px 10px 15px;
    font-size: 24px;
}


.option-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.option-label {
    text-align: center;
    font-size: 14px;
}

.checkmark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #4caf50;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.option-item.selected .checkmark {
    display: flex;
}

.custom-format {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.custom-format input {
    width: 80px;
    padding: 8px;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.density-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    flex-direction: column;
}

.density-input label {
    font-size: 14px;
    white-space: nowrap;
}

.density-input input {
    width: 100%;
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item label {
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: bold;
}

.input-group input[type="number"],
.input-group input[type="text"],
.input-group input[type="tel"],
.input-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.input-group input[type="number"] {
    text-align: center;
}

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

.error-text {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
}

.form-footer {
    display: flex;
    align-self: center;
    margin-left: auto;
    margin-bottom: 20px;
}

.submit-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 32px;
    cursor: pointer;
    transition: background 0.3s;
    height: 63px;
}

.submit-btn:hover {
    background: #333;
}

.disabled-option {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.form-hr {
    border-bottom: 1px solid #ddf7c7;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }

    .instruction {
        text-align: left;
        max-width: 100%;
    }

    .options-grid {
        flex-direction: column;
    }

    .option-item {
        width: 100%;
    }

    .form-footer {
        justify-content: center;
    }
}