.qs-section *, .qs-section *::before, .qs-section *::after {
    box-sizing: border-box;
}

.qs-section {
    padding: 50px 20px 70px;
    margin: 0;
}

.qs-wrap {
    max-width: 1060px;
    margin: 0 auto;
}

.qs-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.qs-alert--success {
    background:#d4edda;
    border:1px solid #c3e6cb;
    color:#155724;
}

.qs-alert--danger {
    background:#f8d7da;
    border:1px solid #f5c6cb;
    color:#721c24;
}

.qs-grid {
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 24px;
    align-items: start;
}

.qs-card {
    background: #fff;
    border: 1px solid #ddd3c8;
    border-radius: 10px;
    padding: 30px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.qs-block + .qs-block {
    border-top: 1px solid #ede5dc;
    padding-top: 24px;
    margin-top: 24px;
}

.qs-section .qs-block__title {
    font-size: 15px;
    font-weight: 700;
    color: #1e0f06;
    margin: 0 0 20px 0;
    padding: 0;
    line-height: 1.4;
    font-family: inherit;
    text-transform: none;
    letter-spacing: normal;
    border: none;
    background: none;
}

.qs-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 22px;
}

.qs-fg {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.qs-fg--full {
    grid-column: 1 / -1;
}

.qs-section label.qs-label,
.qs-section .qs-fg > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    cursor: default;
    position: static;
    transform: none;
    top: auto;
    left: auto;
    background: transparent;
    width: auto;
    text-align: left;
}

.qs-section input.qs-input,
.qs-section textarea.qs-textarea {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d0c4b8;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    background: #fff;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s, box-shadow .2s;
    margin: 0;
    line-height: 1.5;
    height: auto;
}

.qs-section input.qs-input:focus,
.qs-section textarea.qs-textarea:focus {
    border-color: #000051;
    box-shadow: 0 0 0 3px rgba(123,63,30,.12);
    outline: none;
}

.qs-section textarea.qs-textarea {
    resize: vertical;
    min-height: 90px;
    height: auto;
}

.qs-sel {
    position: relative;
    display: block;
}

.qs-section .qs-sel select {
    display: block;
    width: 100%;
    padding: 9px 32px 9px 12px;
    border: 1px solid #d0c4b8;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    margin: 0;
    line-height: 1.5;
    height: auto;
    transition: border-color .2s;
}

.qs-section .qs-sel select:focus {
    border-color: #000051;
    box-shadow: 0 0 0 3px rgba(123,63,30,.12);
}

.qs-section .qs-sel select option {
    background: #fff;
    color: #333;
}

.qs-sel::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-60%) rotate(45deg);
    width: 7px;
    height: 7px;
    border-right: 2px solid #888;
    border-bottom: 2px solid #888;
    pointer-events: none;
}

.qs-file {
    display: flex;
    align-items: center;
    border: 1px solid #d0c4b8;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    height: 38px;
    margin: 0;
}

.qs-file input[type="file"] {
    display: none;
}

.qs-section label.qs-file__btn {
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    height: 100%;
    background: #e6ebe6;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    border-right: 1px solid #d0c4b8;
    border-radius: 0;
    margin: 0;
    position: static;
    transform: none;
    transition: background .2s;
    flex-shrink: 0;
}

.qs-section label.qs-file__btn:hover {
    background: #d5dad5;
}

.qs-file__name {
    font-size: 12px;
    color: #aaa;
    padding: 0 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qs-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #ede5dc;
    text-align: left;
    display: block;
}

.qs-section button.qs-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffd700;
    color: #000051;
    border: none;
    padding: 13px 42px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: background .2s, transform .15s;
    margin: 0;
    line-height: 1;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.qs-section button.qs-btn-submit:hover {
    background-color: #c6a700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.qs-sidebar {
    background: #000051;
    border-radius: 10px;
    padding: 24px 20px;
    color: #fff;
    position: sticky;
    top: 100px;
}

.qs-section .qs-sidebar__title {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin: 0 0 18px 0;
    padding: 0 0 16px 0;
    border: none;
    border-bottom: 1px solid #c6a700;
    line-height: 1.4;
    font-family: inherit;
    text-transform: none;
    letter-spacing: normal;
    background: none;
}

.qs-summary {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
}

.qs-summary__item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 0;
    border-bottom: 1px solid #c6a700;
    margin: 0;
}

.qs-summary__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.qs-summary__item--row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.qs-summary__label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.75);
    display: block;
    margin: 0;
}

.qs-summary__val {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.qs-section button.qs-sidebar__submit {
    display: block;
    width: 100%;
    padding: 12px;
    background: #ffd700;
    color: #000051;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
    margin: 0;
    box-shadow: none;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

.qs-section button.qs-sidebar__submit:hover {
    background-color: #c6a700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

@media (max-width: 860px) {
    .qs-grid { grid-template-columns: 1fr; }
    .qs-sidebar { position: static; order: -1; }
}

@media (max-width: 600px) {
    .qs-two-col { grid-template-columns: 1fr; }
    .qs-card { padding: 20px 16px; }
    .qs-section { padding: 30px 14px 50px; }
}