.ac-form-container,
.ac-query-container {
    max-width: 860px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
}

.ac-section {
    margin-bottom: 32px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.ac-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a73c4;
    border-bottom: 2px solid #e8f0fe;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

.ac-field {
    margin-bottom: 18px;
}

.ac-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.ac-label.ac-required::after {
    content: ' *';
    color: #d32f2f;
}

.ac-input-wrap {
    position: relative;
}

.ac-input,
.ac-select,
.ac-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #c7c7c7;
    border-radius: 4px;
    font-size: 15px;
    color: #333;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}

.ac-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.ac-input:focus,
.ac-select:focus,
.ac-textarea:focus {
    outline: none;
    border-color: #1a73c4;
    box-shadow: 0 0 0 3px rgba(26,115,196,.15);
    background: #fff;
}

.ac-id-org {
    margin-top: 8px;
}

.ac-textarea {
    resize: vertical;
    min-height: 90px;
}

.ac-radio-wrap {
    display: flex;
    gap: 24px;
}

.ac-radio-wrap label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 400;
}

.ac-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
    line-height: 1.5;
}

.ac-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.ac-field-note {
    font-size: 12px;
    color: #888;
    margin: 4px 0 0;
}

.ac-work-item {
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 18px;
    margin-bottom: 16px;
    background: #f7faff;
    position: relative;
}

.ac-work-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-weight: 700;
    color: #1a73c4;
}

.ac-works-actions {
    margin-top: 8px;
}

.ac-upload-zone {
    border: 2px dashed #b0bec5;
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: #fff;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-upload-zone:hover,
.ac-upload-zone.ac-dragover {
    border-color: #1a73c4;
    background: #e8f0fe;
}

.ac-upload-zone.ac-has-file {
    border-style: solid;
    border-color: #43a047;
    background: #f1f8e9;
}

.ac-upload-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 6px;
    color: #90a4ae;
}

.ac-upload-placeholder p {
    margin: 4px 0;
    font-size: 13px;
    color: #666;
}

.ac-upload-preview {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ac-uploaded-name {
    font-size: 14px;
    color: #2e7d32;
    word-break: break-all;
}

.ac-clear-file {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.ac-clear-file:hover { color: #d32f2f; }

.ac-file-input {
    display: none;
}

.ac-btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    text-decoration: none;
}

.ac-btn-primary {
    background: #1a73c4;
    color: #fff;
}

.ac-btn-primary:hover { background: #1558a0; }

.ac-btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.ac-btn-secondary {
    background: #eceff1;
    color: #37474f;
    border: 1px solid #b0bec5;
}

.ac-btn-secondary:hover { background: #cfd8dc; }

.ac-btn-danger {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f48fb1;
    font-size: 13px;
    padding: 5px 12px;
}

.ac-btn-danger:hover { background: #ffcdd2; }

.ac-form-submit {
    text-align: center;
    padding: 10px 0;
}

.ac-messages {
    margin-top: 16px;
}

.ac-msg {
    padding: 12px 18px;
    border-radius: 4px;
    font-size: 15px;
}

.ac-msg-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.ac-msg-error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f48fb1;
}

.ac-query-form {
    max-width: 500px;
}

.ac-query-form .ac-field {
    margin-bottom: 14px;
}

.ac-query-intro {
    margin-bottom: 16px;
    color: #555;
}

.ac-query-result {
    margin-top: 20px;
}

.ac-query-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    padding: 20px 24px;
}

.ac-query-award {
    font-size: 20px;
    color: #bf8700;
    margin: 0 0 8px;
}

.ac-query-msg {
    padding: 12px 18px;
    border-radius: 4px;
}

.ac-query-error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f48fb1;
}

.ac-cert-download-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 20px;
    background: #1a73c4;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.ac-cert-download-btn:hover {
    background: #1558a0;
    color: #fff;
}

@media (max-width: 600px) {
    .ac-section { padding: 16px; }
    .ac-radio-wrap { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
    .ac-work-header { flex-wrap: wrap; gap: 8px; }
}

/* Refined registration and query presentation */
.ac-form-container,
.ac-query-container {
    max-width: 980px;
}

.ac-form-container {
    border: 1px solid rgba(39, 58, 82, 0.10);
    border-radius: 28px;
    box-shadow: 0 22px 60px rgba(23, 43, 70, 0.10);
    padding: 28px;
}

.ac-form-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 24px;
    padding: 22px 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #20364c 0%, #2f5071 100%);
    color: #fff;
}

.ac-form-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: rgba(255,255,255,.82);
    font-size: 13px;
}

.ac-form-kicker code {
    background: rgba(255,255,255,.12);
    color: #fff;
    padding: 3px 8px;
    border-radius: 999px;
}

.ac-form-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
    color: #fff;
}

.ac-form-intro {
    margin: 10px 0 0;
    max-width: 640px;
    color: rgba(255,255,255,.82);
}

.ac-form-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.ac-form-meta-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
}

#ac-registration-form {
    display: grid;
    gap: 20px;
}

.ac-section {
    margin-bottom: 0;
    padding: 26px;
    border-radius: 24px;
    border: 1px solid rgba(39, 58, 82, 0.10);
    box-shadow: 0 10px 28px rgba(28, 47, 74, 0.06);
    background: rgba(255,255,255,.92);
}

.ac-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(32, 54, 76, 0.10);
    color: #20364c;
    font-size: 22px;
}

.ac-section-title::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ce7633 0%, #e4a35d 100%);
    box-shadow: 0 0 0 8px rgba(206, 118, 51, 0.10);
}

.ac-field {
    margin-bottom: 20px;
}

.ac-label {
    margin-bottom: 8px;
    color: #20364c;
    font-size: 14px;
}

.ac-input,
.ac-select,
.ac-textarea {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(53, 74, 98, 0.16);
    background: #fbfcfe;
    color: #1f2f40;
}

.ac-input:focus,
.ac-select:focus,
.ac-textarea:focus {
    border-color: #ce7633;
    box-shadow: 0 0 0 4px rgba(206, 118, 51, 0.14);
}

.ac-radio-wrap {
    gap: 14px;
    flex-wrap: wrap;
}

.ac-radio-wrap label,
.ac-checkbox-label {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(53, 74, 98, 0.12);
    background: #fbfcfe;
}

.ac-field-note {
    margin-top: 7px;
    color: #6a7787;
    font-size: 12px;
}

.ac-work-item {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(52, 93, 147, 0.12);
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.ac-work-header {
    margin-bottom: 18px;
    color: #214062;
}

.ac-upload-zone {
    min-height: 160px;
    border-radius: 18px;
    border-color: rgba(52, 93, 147, 0.22);
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8fd 100%);
}

.ac-upload-zone:hover,
.ac-upload-zone.ac-dragover {
    border-color: #ce7633;
    background: #fff4eb;
}

.ac-upload-zone.ac-has-file {
    border-color: #3e8d4f;
    background: #f4fbf4;
}

.ac-upload-icon {
    color: #6e8aaa;
}

.ac-btn {
    padding: 12px 22px;
    border-radius: 999px;
}

.ac-btn-primary {
    background: linear-gradient(135deg, #ce7633 0%, #e49d54 100%);
    box-shadow: 0 14px 26px rgba(206, 118, 51, 0.20);
}

.ac-btn-primary:hover {
    background: linear-gradient(135deg, #b96628 0%, #d78d45 100%);
}

.ac-btn-secondary {
    background: #fff;
    color: #27425e;
    border: 1px solid rgba(39, 66, 94, 0.18);
}

.ac-btn-secondary:hover {
    background: #f5f8fb;
}

.ac-form-submit {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 4px 0 0;
}

.ac-form-draft-note {
    margin: -8px 0 0;
    text-align: center;
    color: #6a7787;
    font-size: 12px;
}

.ac-msg {
    border-radius: 16px;
}

.ac-msg-info {
    background: #eef5ff;
    color: #1e5b9f;
    border: 1px solid #bfdbfe;
}

.ac-query-container {
  
    border: 1px solid rgba(39, 58, 82, 0.10);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(23, 43, 70, 0.08);
    padding: 28px;
}

.ac-query-form {
    max-width: 560px;
}

.ac-query-success,
.ac-query-error {
    border-radius: 18px;
}

@media (max-width: 768px) {
    .ac-form-container,
    .ac-query-container {
        padding: 18px;
        border-radius: 20px;
    }

    .ac-form-hero {
        grid-template-columns: 1fr;
        padding: 18px;
        border-radius: 18px;
    }

    .ac-form-title {
        font-size: 28px;
    }

    .ac-form-meta {
        justify-content: flex-start;
    }

    .ac-section {
        padding: 18px;
        border-radius: 18px;
    }
}

/* User-requested flattening of outer registration wrapper */
.ac-form-container {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Final flat frontend overrides */
.ac-form-container,
.ac-query-container,
#ac-registration-form,
.ac-section,
.ac-work-item,
.ac-upload-zone,
.ac-btn,
.ac-input,
.ac-select,
.ac-textarea {
    border-radius: 0 !important;
}

.ac-form-hero,
.ac-form-kicker,
.ac-form-meta,
.ac-form-meta-item,
.ac-form-title,
.ac-form-intro,
.ac-checkbox-label {
    display: none !important;
}

.ac-form-container {
    max-width: 980px;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

#ac-registration-form {
    display: block !important;
}

.ac-section {
    margin: 0 0 24px !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.ac-section-title {
    display: block !important;
    margin: 0 0 16px !important;
    padding: 0 0 8px !important;
    border-bottom: 2px solid #b02123 !important;
    color: #b02123 !important;
    font-size: 24px !important;
    line-height: 1.25 !important;
}

.ac-section-title::before {
    display: none !important;
}

.ac-field {
    margin-bottom: 16px !important;
}

.ac-label {
    display: block;
    margin: 0 0 6px !important;
    padding: 0 !important;
    color: #222 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    background: none !important;
    border: 0 !important;
}

.ac-input-wrap {
    position: static !important;
}

.ac-input,
.ac-select,
.ac-textarea {
    min-height: 46px !important;
    padding: 10px 12px !important;
    border: 1px solid #c9c9c9 !important;
    background: #fff !important;
    color: #222 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
}

.ac-select {
    height: 46px !important;
    line-height: 24px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    background-position: right 10px center !important;
}

.ac-select option {
    line-height: 1.5;
}

.ac-textarea {
    min-height: 108px !important;
}

.ac-input:focus,
.ac-select:focus,
.ac-textarea:focus {
    border-color: #b02123 !important;
    box-shadow: 0 0 0 1px #b02123 !important;
}

.ac-radio-wrap {
    display: flex !important;
    gap: 18px !important;
    flex-wrap: wrap;
}

.ac-radio-wrap label {
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    font-weight: 400 !important;
}

.ac-field-note,
.ac-form-draft-note {
    color: #666 !important;
}

.ac-work-item {
    margin-bottom: 20px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: static !important;
}

.ac-work-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 12px !important;
    color: #222 !important;
}

.ac-upload-zone {
    min-height: 120px !important;
    border: 1px dashed #b02123 !important;
    background: #fff !important;
}

.ac-upload-zone:hover,
.ac-upload-zone.ac-dragover,
.ac-upload-zone.ac-has-file {
    background: #fff !important;
    border-color: #b02123 !important;
}

.ac-upload-icon {
    color: #b02123 !important;
}

.ac-btn {
    padding: 10px 18px !important;
}

.ac-btn-primary {
    background: #b02123 !important;
    border: 1px solid #b02123 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.ac-btn-primary:hover {
    background: #931b1d !important;
    border-color: #931b1d !important;
}

.ac-btn-secondary,
.ac-btn-danger {
    background: #fff !important;
    border: 1px solid #b02123 !important;
    color: #b02123 !important;
    box-shadow: none !important;
}

.ac-btn-secondary:hover,
.ac-btn-danger:hover {
    background: #fff5f5 !important;
}

.ac-form-submit {
    justify-content: flex-start !important;
    padding: 8px 0 0 !important;
}

.ac-msg,
.ac-query-success,
.ac-query-error,
.ac-cert-download-btn {
    border-radius: 0 !important;
}

.ac-terms-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #222;
    line-height: 1.6;
}

.ac-terms-line input[type="checkbox"] {
    margin-top: 4px;
}

/* Functional + brand color refinements */
.ac-section-title {
    border-bottom-color: #dd5449 !important;
    color: #dd5449 !important;
}

.ac-input:focus,
.ac-select:focus,
.ac-textarea:focus {
    border-color: #dd5449 !important;
    box-shadow: 0 0 0 1px #dd5449 !important;
}

.ac-upload-zone {
    min-height: 148px !important;
    padding: 18px !important;
    border: 2px dashed #dd5449 !important;
    cursor: pointer !important;
}

.ac-upload-zone:hover,
.ac-upload-zone.ac-dragover,
.ac-upload-zone.ac-has-file {
    border-color: #dd5449 !important;
}

.ac-upload-icon {
    color: #dd5449 !important;
    font-size: 30px !important;
    margin-bottom: 8px !important;
}

.ac-upload-placeholder p {
    margin: 3px 0 !important;
}

.ac-upload-trigger {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    border: 1px solid #dd5449;
    color: #dd5449;
    background: #fff;
    line-height: 1;
}

.ac-uploaded-name {
    color: #dd5449 !important;
}

.ac-clear-file {
    color: #dd5449 !important;
}

.ac-btn-primary {
    background: #dd5449 !important;
    border-color: #dd5449 !important;
}

.ac-btn-primary:hover {
    background: #c9483e !important;
    border-color: #c9483e !important;
}

.ac-btn-secondary,
.ac-btn-danger {
    border-color: #dd5449 !important;
    color: #dd5449 !important;
}

.ac-btn-secondary:hover,
.ac-btn-danger:hover {
    background: #fff4f3 !important;
}

.ac-works-actions {
    margin-top: 12px !important;
}

#ac-add-work {
    min-height: 42px;
}

/* Polished flat competition form overrides */
.ac-form-container {
    max-width: 920px;
}

.ac-section {
    margin: 0 0 30px !important;
    padding: 0 0 10px !important;
    border-bottom: 1px solid #ead7d5 !important;
}

.ac-section:last-of-type {
    border-bottom: 0 !important;
}

.ac-section-title {
    margin-bottom: 18px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #dd5449 !important;
    color: #dd5449 !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
}

.ac-field {
    margin-bottom: 18px !important;
}

.ac-label {
    margin-bottom: 8px !important;
    color: #1f1f1f !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.ac-input,
.ac-select,
.ac-textarea {
    border-color: #d8c8c6 !important;
}

.ac-radio-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.ac-radio-wrap label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

.ac-radio-wrap input[type="radio"] {
    margin: 0 !important;
    vertical-align: middle;
}

.ac-work-header {
    padding-bottom: 8px;
    border-bottom: 1px dashed #e2c4c1;
}

.ac-work-number-label {
    font-size: 16px;
    font-weight: 700;
    color: #2b2b2b;
}

.ac-upload-zone {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.ac-upload-placeholder {
    width: 100%;
}

.ac-upload-placeholder p:first-of-type {
    font-size: 16px !important;
    font-weight: 600;
    color: #2a2a2a;
}

.ac-upload-placeholder p:last-of-type {
    font-size: 13px !important;
    color: #7b6664 !important;
}

.ac-upload-trigger {
    font-weight: 600;
}

.ac-works-actions {
    margin-top: 16px !important;
}

#ac-add-work {
    background: #fff !important;
    color: #dd5449 !important;
    border: 2px solid #dd5449 !important;
    font-weight: 700 !important;
}

#ac-add-work:hover {
    background: #fff3f1 !important;
}

.ac-form-submit {
    gap: 10px !important;
}

.ac-form-draft-note {
    margin-top: 8px !important;
}

.ac-terms-line {
    gap: 10px;
    font-size: 14px;
}

/* Final registration-form polish */
.ac-form-container {
    max-width: 980px;
    font-size: 15px;
    line-height: 1.65;
}

#ac-registration-form {
    background: linear-gradient(180deg, #fffdfc 0%, #fff7f6 100%);
    border: 1px solid #edd7d4;
    padding: 28px 28px 18px;
}

.ac-section {
    margin: 0 0 28px !important;
    padding: 0 0 18px !important;
    border-bottom: 1px solid #ecd8d5 !important;
}

.ac-section:last-of-type {
    border-bottom: 0 !important;
    margin-bottom: 20px !important;
}

.ac-section-title {
    margin: 0 0 18px !important;
    padding: 0 0 10px !important;
    border-bottom: 2px solid #dd5449 !important;
    color: #dd5449 !important;
    font-size: 26px !important;
    font-weight: 700 !important;
}

.ac-field {
    margin-bottom: 18px !important;
}

.ac-label {
    margin: 0 0 8px !important;
    color: #232323 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.ac-input,
.ac-select,
.ac-textarea {
    width: 100%;
    min-height: 46px !important;
    padding: 10px 12px !important;
    border: 1px solid #d9c8c5 !important;
    background: #fff !important;
    color: #222 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}

.ac-select {
    height: 46px !important;
    padding-right: 38px !important;
    background-position: right 12px center !important;
}

.ac-textarea {
    min-height: 120px !important;
}

.ac-input:focus,
.ac-select:focus,
.ac-textarea:focus {
    border-color: #dd5449 !important;
    box-shadow: 0 0 0 1px #dd5449 !important;
}

.ac-radio-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
    flex-wrap: wrap;
}

.ac-radio-wrap label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    line-height: 1.2 !important;
}

.ac-radio-wrap input[type="radio"] {
    margin: 0 !important;
}

.ac-field-note,
.ac-form-draft-note {
    color: #786664 !important;
    font-size: 12px !important;
}

.ac-work-item {
    margin-bottom: 18px !important;
    padding: 16px 16px 4px !important;
    border: 1px solid #ead4d1 !important;
    background: #fff !important;
    box-shadow: none !important;
}

.ac-work-header {
    margin: 0 0 14px !important;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e5c4c1;
    color: #232323 !important;
}

.ac-work-number-label {
    font-size: 16px;
    font-weight: 700;
}

.ac-upload-zone {
    min-height: 156px !important;
    padding: 18px !important;
    border: 2px dashed #dd5449 !important;
    background: #fffaf9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    cursor: pointer !important;
}

.ac-upload-zone:hover,
.ac-upload-zone.ac-dragover {
    background: #fff2f0 !important;
    border-color: #dd5449 !important;
}

.ac-upload-zone.ac-has-file {
    background: #fff !important;
    border-style: solid !important;
    border-color: #dd5449 !important;
}

.ac-upload-placeholder {
    width: 100%;
}

.ac-upload-icon {
    display: block;
    margin-bottom: 8px !important;
    color: #dd5449 !important;
    font-size: 28px !important;
}

.ac-upload-placeholder p:first-of-type {
    margin: 0 0 4px !important;
    color: #2b2b2b !important;
    font-size: 16px !important;
    font-weight: 700;
}

.ac-upload-placeholder p:last-of-type {
    margin: 0 !important;
    color: #7d6a68 !important;
    font-size: 12px !important;
}

.ac-upload-trigger {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 18px;
    border: 1px solid #dd5449;
    color: #dd5449;
    background: #fff;
    font-weight: 700;
}

.ac-upload-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.ac-uploaded-name {
    color: #dd5449 !important;
    font-weight: 700;
}

.ac-clear-file {
    color: #dd5449 !important;
}

.ac-btn {
    min-height: 42px;
    padding: 10px 18px !important;
    border: 1px solid #dd5449 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.ac-btn-primary {
    background: #dd5449 !important;
    color: #fff !important;
}

.ac-btn-primary:hover {
    background: #c9483e !important;
    border-color: #c9483e !important;
}

.ac-btn-secondary,
.ac-btn-danger {
    background: #fff !important;
    color: #dd5449 !important;
}

.ac-btn-secondary:hover,
.ac-btn-danger:hover {
    background: #fff2f0 !important;
}

.ac-works-actions {
    margin-top: 14px !important;
}

#ac-add-work {
    border-width: 2px !important;
}

.ac-form-submit {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding-top: 6px !important;
}

.ac-terms-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #232323;
}

@media (max-width: 768px) {
    #ac-registration-form {
        padding: 20px 18px 14px;
    }

    .ac-section-title {
        font-size: 22px !important;
    }
}

/* Final competition registration sheet layout */
.ac-form-container {
    max-width: 1040px;
    margin: 0 auto;
    color: #2f2525;
}

#ac-registration-form {
    background: #fff;
    border: 1px solid #e5c9c6;
    border-top: 6px solid #dd5449;
    padding: 32px 32px 20px;
    box-shadow: 0 12px 36px rgba(126, 36, 30, 0.08);
}

.ac-section {
    margin: 0 0 30px !important;
    padding: 0 0 22px !important;
    border-bottom: 1px solid #ead8d6 !important;
}

.ac-section-title {
    margin: 0 0 18px !important;
    padding: 0 0 10px 14px !important;
    border-bottom: 1px solid #dd5449 !important;
    border-left: 4px solid #dd5449 !important;
    color: #aa332c !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

.ac-field {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 8px 18px;
    align-items: start;
    margin-bottom: 14px !important;
    padding: 10px 0;
    border-bottom: 1px dashed #f0e1df;
}

.ac-section .ac-field:last-child {
    margin-bottom: 0 !important;
}

.ac-label {
    margin: 0 !important;
    padding-top: 11px;
    color: #2f2525 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

.ac-input-wrap {
    width: 100%;
}

.ac-input,
.ac-select,
.ac-textarea {
    width: 100%;
    min-height: 48px !important;
    padding: 11px 14px !important;
    border: 1px solid #d8c2bf !important;
    background: #fffdfa !important;
    color: #2f2525 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    border-radius: 0 !important;
    appearance: none;
    -webkit-appearance: none;
}

.ac-select {
    height: 48px !important;
    line-height: 24px !important;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
    padding-right: 42px !important;
    background-image: linear-gradient(45deg, transparent 50%, #dd5449 50%), linear-gradient(135deg, #dd5449 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.ac-select option {
    line-height: 1.5;
}

.ac-textarea {
    min-height: 132px !important;
    padding-top: 12px !important;
    background: #fff !important;
}

.ac-input:focus,
.ac-select:focus,
.ac-textarea:focus {
    border-color: #dd5449 !important;
    box-shadow: 0 0 0 2px rgba(221, 84, 73, 0.12) !important;
    background: #fff !important;
}

.ac-radio-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 26px !important;
    min-height: 48px;
    padding-top: 1px;
}

.ac-radio-wrap label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1 !important;
    font-weight: 500;
}

.ac-radio-wrap input[type="radio"] {
    margin: 0 !important;
    position: relative;
    top: -1px;
}

.ac-field-note,
.ac-form-draft-note {
    margin: 6px 0 0 !important;
    color: #7c6663 !important;
    font-size: 12px !important;
}

.ac-work-item {
    margin-bottom: 18px !important;
    padding: 18px 18px 6px !important;
    border: 1px solid #e4cdca !important;
    border-left: 4px solid #dd5449 !important;
    background: linear-gradient(180deg, #fffdfd 0%, #fff9f8 100%) !important;
}

.ac-work-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px !important;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecd7d4;
}

.ac-work-number-label {
    color: #aa332c;
    font-size: 17px;
    font-weight: 700;
}

.ac-upload-zone {
    min-height: 164px !important;
    padding: 20px !important;
    border: 2px dashed #dd5449 !important;
    background: repeating-linear-gradient(-45deg, #fff8f7 0, #fff8f7 14px, #fffdfd 14px, #fffdfd 28px) !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ac-upload-zone:hover,
.ac-upload-zone.ac-dragover {
    background: repeating-linear-gradient(-45deg, #fff0ee 0, #fff0ee 14px, #fffaf9 14px, #fffaf9 28px) !important;
    box-shadow: 0 0 0 3px rgba(221, 84, 73, 0.08);
}

.ac-upload-placeholder p:first-of-type {
    margin: 0 0 6px !important;
    color: #8f2f29 !important;
    font-size: 17px !important;
    font-weight: 700;
}

.ac-upload-placeholder p:last-of-type {
    margin: 0 !important;
    color: #846c69 !important;
    font-size: 12px !important;
}

.ac-upload-trigger {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 18px;
    border: 1px solid #dd5449;
    background: #dd5449;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.ac-upload-preview {
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid #ead1ce;
    background: #fff;
}

.ac-btn {
    min-height: 44px;
    padding: 10px 18px !important;
    border-radius: 0 !important;
    border: 1px solid #dd5449 !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
}

.ac-btn-primary {
    background: #dd5449 !important;
    color: #fff !important;
}

.ac-btn-primary:hover {
    background: #c9473d !important;
    border-color: #c9473d !important;
}

.ac-btn-secondary,
.ac-btn-danger {
    background: #fff7f6 !important;
    color: #b23b31 !important;
}

.ac-btn-secondary:hover,
.ac-btn-danger:hover {
    background: #fff0ee !important;
    border-color: #c9473d !important;
    color: #a5332a !important;
}

.ac-works-actions {
    margin-top: 16px !important;
}

#ac-add-work {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    background: #fff7f6 !important;
}

.ac-form-submit {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding-top: 8px !important;
}

.ac-terms-field {
    grid-template-columns: 156px minmax(0, 1fr);
}

.ac-terms-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #e2cecb;
    background: #fffaf9;
}

.ac-terms-line input[type="checkbox"] {
    margin-top: 3px;
}

@media (max-width: 768px) {
    #ac-registration-form {
        padding: 22px 16px 14px;
    }

    .ac-section-title {
        font-size: 21px !important;
        padding-left: 10px !important;
    }

    .ac-field,
    .ac-terms-field {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 8px 0;
    }

    .ac-label {
        padding-top: 0;
    }

    .ac-work-header,
    .ac-form-submit {
        flex-direction: column;
        align-items: stretch;
    }

    #ac-add-work,
    .ac-btn {
        width: 100%;
    }
}

/* Refined premium registration form */
#ac-registration-form {
    border: 1px solid #e9e3df;
    border-top: 1px solid #e9e3df;
    padding: 36px 38px 24px;
    box-shadow: 0 18px 48px rgba(25, 22, 20, 0.06);
}

.ac-section {
    margin: 0 0 34px !important;
    padding: 0 0 24px !important;
    border-bottom: 1px solid #efe9e5 !important;
}

.ac-section-title {
    margin: 0 0 20px !important;
    padding: 0 0 12px !important;
    border: 0 !important;
    border-bottom: 1px solid #d8d1cc !important;
    color: #1f1a17 !important;
    font-size: 23px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}

.ac-field {
    gap: 10px 22px;
    padding: 12px 0;
    border-bottom: 1px solid #f4efec;
}

.ac-label {
    color: #403734 !important;
    font-weight: 500 !important;
}

.ac-input,
.ac-select,
.ac-textarea,
.ac-terms-line {
    border: 1px solid #ddd6d1 !important;
    background: #fff !important;
    color: #201b18 !important;
}

.ac-input,
.ac-select,
.ac-textarea {
    min-height: 50px !important;
    padding: 12px 14px !important;
}

.ac-select {
    background-image: linear-gradient(45deg, transparent 50%, #8f8680 50%), linear-gradient(135deg, #8f8680 50%, transparent 50%);
}

.ac-input:focus,
.ac-select:focus,
.ac-textarea:focus {
    border-color: #b9ada6 !important;
    box-shadow: 0 0 0 3px rgba(76, 60, 52, 0.08) !important;
}

.ac-field-note,
.ac-form-draft-note {
    color: #8a7f79 !important;
}

.ac-work-item {
    margin-bottom: 20px !important;
    padding: 0 !important;
    border: 1px solid #ebe4df !important;
    border-left: 1px solid #ebe4df !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(34, 27, 22, 0.04);
}

.ac-work-header {
    margin: 0 !important;
    padding: 16px 18px !important;
    border-bottom: 1px solid #f0ebe7;
    background: #fcfbfa;
}

.ac-work-number-label {
    color: #241f1c;
    font-size: 16px;
    font-weight: 600;
}

.ac-work-item .ac-field {
    margin: 0 18px !important;
}

.ac-work-item .ac-field:first-of-type {
    margin-top: 6px !important;
}

.ac-work-item .ac-field:last-child {
    margin-bottom: 14px !important;
}

.ac-upload-zone {
    min-height: 158px !important;
    border: 1px dashed #cfc5bf !important;
    background: #fcfbfa !important;
    box-shadow: none !important;
}

.ac-upload-zone:hover,
.ac-upload-zone.ac-dragover,
.ac-upload-zone.ac-has-file {
    border-color: #b8aba4 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(64, 55, 52, 0.04) !important;
}

.ac-upload-icon {
    color: #8d817b !important;
}

.ac-upload-placeholder p:first-of-type {
    color: #2b2522 !important;
    font-size: 16px !important;
    font-weight: 600;
}

.ac-upload-placeholder p:last-of-type {
    color: #91857f !important;
}

.ac-upload-trigger {
    border: 1px solid #d8d0ca;
    background: #fff;
    color: #2f2926;
}

.ac-upload-preview {
    border: 1px solid #ece5e0;
    background: #fff;
}

.ac-uploaded-name,
.ac-clear-file {
    color: #2f2926 !important;
}

.ac-btn {
    min-height: 46px;
    padding: 11px 20px !important;
    border: 1px solid #d7cec8 !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
}

.ac-btn-primary {
    background: #24201d !important;
    border-color: #24201d !important;
    color: #fff !important;
}

.ac-btn-primary:hover {
    background: #161311 !important;
    border-color: #161311 !important;
}

.ac-btn-secondary,
.ac-btn-danger,
#ac-add-work {
    background: #fff !important;
    color: #2d2724 !important;
    border-color: #d7cec8 !important;
}

.ac-btn-secondary:hover,
.ac-btn-danger:hover,
#ac-add-work:hover {
    background: #faf8f7 !important;
    color: #1f1a17 !important;
    border-color: #bdb2ab !important;
}

.ac-terms-line {
    min-height: 50px;
    background: #fff !important;
}

@media (max-width: 768px) {
    #ac-registration-form {
        padding: 24px 16px 16px;
    }

    .ac-section-title {
        font-size: 20px !important;
    }

    .ac-work-header {
        padding: 14px 14px !important;
    }

    .ac-work-item .ac-field {
        margin: 0 14px !important;
    }
}

/* Aligned registration field grid */
.ac-field {
    display: grid !important;
    grid-template-columns: 148px minmax(0, 1fr) !important;
    column-gap: 24px !important;
    row-gap: 8px !important;
    align-items: center !important;
}

.ac-label {
    grid-column: 1 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    min-height: 50px;
    display: flex !important;
    align-items: center !important;
    line-height: 1.45 !important;
}

.ac-input-wrap {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100%;
    min-width: 0;
}

.ac-field-note {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: -2px 0 0 !important;
    line-height: 1.55 !important;
}

.ac-radio-wrap {
    min-height: 50px;
    gap: 28px !important;
    padding-top: 0 !important;
}

.ac-radio-wrap label {
    min-height: 50px;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.ac-radio-wrap input[type="radio"] {
    top: 0;
    flex: 0 0 auto;
}

.ac-work-item .ac-field {
    grid-template-columns: 148px minmax(0, 1fr) !important;
}

.ac-terms-field {
    grid-template-columns: 148px minmax(0, 1fr) !important;
    align-items: start !important;
}

.ac-terms-field .ac-label {
    align-items: flex-start !important;
    padding-top: 14px !important;
}

@media (max-width: 768px) {
    .ac-field,
    .ac-work-item .ac-field,
    .ac-terms-field {
        grid-template-columns: 1fr !important;
        row-gap: 6px !important;
        align-items: start !important;
    }

    .ac-label,
    .ac-input-wrap,
    .ac-field-note {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .ac-label {
        min-height: auto;
        display: block !important;
    }

    .ac-radio-wrap {
        min-height: auto;
        gap: 16px !important;
        flex-wrap: wrap;
    }

    .ac-radio-wrap label {
        min-height: auto;
    }

    .ac-field-note {
        margin-top: 0 !important;
    }
}

/* Native date input and refined select icon */
.ac-select {
    padding-right: 44px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M12 6L8 10L4 6' stroke='%23BBBBBB' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
}

.ac-input[type="date"],
.ac-input-date {
    position: relative;
}

.ac-input[type="date"]::-webkit-calendar-picker-indicator,
.ac-input-date::-webkit-calendar-picker-indicator {
    opacity: 1;
    cursor: pointer;
}

.ac-input[type="date"]::-webkit-date-and-time-value,
.ac-input-date::-webkit-date-and-time-value {
    text-align: left;
}


/* Validation highlight */
#ac-registration-form .ac-invalid {
    border-color: #d63638 !important;
    box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.12) !important;
}
#ac-registration-form .ac-invalid-group {
    border-color: #d63638 !important;
    box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.10) !important;
}
#ac-registration-form .ac-radio-wrap.ac-invalid-group,
#ac-registration-form .ac-terms-line.ac-invalid-group,
#ac-registration-form .ac-upload-zone.ac-invalid-group {
    border-radius: 14px;
}


/* Unified query panels */
.ac-query-container {
    max-width: 960px;
}

.ac-query-panel {
    border-radius: 22px;
    border: 1px solid rgba(19, 51, 87, 0.10);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(28, 51, 84, 0.08);
}

.ac-query-panel .ac-section-title {
    margin-bottom: 12px;
}

.ac-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.ac-query-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 24px;
}

.ac-query-intro {
    margin: 0 0 18px;
    color: #6d7b8e;
    font-size: 14px;
    line-height: 1.75;
}

.ac-query-result {
    margin-top: 20px;
}

.ac-query-results {
    display: grid;
    gap: 16px;
}

.ac-query-card {
    border: 1px solid rgba(19, 51, 87, 0.10);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(28, 51, 84, 0.06);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
}

.ac-query-card-summary {
    list-style: none;
    cursor: pointer;
}

.ac-query-card-summary::-webkit-details-marker {
    display: none;
}

.ac-query-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 6px;
}

.ac-query-card-head h4 {
    margin: 4px 0 0;
    color: #213547;
    font-size: 22px;
    line-height: 1.3;
}

.ac-query-summary-line {
    margin: 8px 0 0;
    color: #6d7b8e;
    font-size: 13px;
    line-height: 1.7;
}

.ac-query-kicker {
    margin: 0;
    color: #9d551f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.ac-query-status,
.ac-query-entry {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(196, 106, 45, 0.10);
    color: #9b531e;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.ac-query-card-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px 16px;
    color: #6d7b8e;
    font-size: 13px;
}

.ac-query-toggle-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    display: inline-block;
}

/* hide legacy pseudo-elements (we now use inline SVG) */
.ac-query-toggle-icon::before,
.ac-query-toggle-icon::after {
    display: none;
}

.ac-query-toggle-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.2s ease;
}

.ac-query-card[open] .ac-query-toggle-icon svg {
    transform: rotate(180deg);
}

.ac-query-card-body {
    border-top: 1px solid rgba(33, 53, 71, 0.07);
}

.ac-query-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ac-query-meta p {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 16px 20px;
    border-top: 1px solid rgba(33, 53, 71, 0.07);
}

.ac-query-meta p:nth-child(-n+2) {
    border-top: 0;
}

.ac-query-meta strong {
    color: #65748a;
    font-size: 12px;
}

.ac-query-meta span {
    color: #213547;
    font-size: 15px;
    line-height: 1.65;
    word-break: break-word;
}

.ac-query-subsection {
    padding: 0 20px 20px;
}

.ac-query-subsection h5 {
    margin: 0;
    padding-top: 16px;
    color: #213547;
    font-size: 14px;
}

.ac-query-subsection-awarded h5 {
    color: #9b531e;
}

.ac-query-work-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.ac-query-work-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid rgba(27, 59, 95, 0.10);
    border-radius: 14px;
    background: #fff;
}

.ac-query-work-item.is-awarded {
    border-color: rgba(196, 106, 45, 0.30);
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
}

.ac-query-work-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ac-query-work-item strong {
    color: #213547;
    font-size: 15px;
}

.ac-query-work-item span {
    color: #6d7b8e;
    font-size: 13px;
}

.ac-query-work-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(196, 106, 45, 0.12);
    color: #9b531e !important;
    font-size: 12px !important;
    font-weight: 700;
    white-space: nowrap;
}

.ac-query-actions {
    padding: 0 20px 20px;
}

.ac-query-msg,
.ac-query-success,
.ac-query-error {
    border-radius: 16px;
}

@media (max-width: 782px) {
    .ac-field-grid,
    .ac-query-meta {
        grid-template-columns: 1fr;
    }

    .ac-query-card-head,
    .ac-query-work-main,
    .ac-query-card-toggle {
        flex-direction: column;
        align-items: flex-start;
    }

    .ac-query-meta p:nth-child(2) {
        border-top: 1px solid rgba(33, 53, 71, 0.07);
    }
}


/* Final query form alignment */
.ac-query-container,
.ac-form-container {
    max-width: 960px;
}

.ac-query-container .ac-query-panel,
.ac-form-container .ac-section {
    border: 1px solid rgba(19, 51, 87, 0.10);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(28, 51, 84, 0.08);
}

.ac-query-container .ac-section-title,
.ac-form-container .ac-section-title {
    color: #213547;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    border-bottom: 1px solid rgba(33, 53, 71, 0.08);
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.ac-query-container .ac-query-form {
    max-width: none;
    width: 100%;
}

.ac-query-container .ac-field-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.ac-query-container .ac-field {
    margin-bottom: 18px;
}

.ac-query-container .ac-label,
.ac-form-container .ac-label {
    margin-bottom: 8px;
    color: #213547;
    font-size: 14px;
    font-weight: 700;
}

.ac-query-container .ac-input,
.ac-query-container .ac-select,
.ac-query-container .ac-textarea,
.ac-form-container .ac-input,
.ac-form-container .ac-select,
.ac-form-container .ac-textarea {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(27, 59, 95, 0.16);
    border-radius: 14px;
    background: #fff;
    color: #213547;
    font-size: 15px;
    box-shadow: none;
}

.ac-query-container .ac-textarea,
.ac-form-container .ac-textarea {
    min-height: 120px;
    padding: 14px 16px;
}

.ac-query-container .ac-input:focus,
.ac-query-container .ac-select:focus,
.ac-query-container .ac-textarea:focus,
.ac-form-container .ac-input:focus,
.ac-form-container .ac-select:focus,
.ac-form-container .ac-textarea:focus {
    border-color: rgba(196, 106, 45, 0.55);
    box-shadow: 0 0 0 4px rgba(196, 106, 45, 0.12);
}

.ac-query-container .ac-query-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 24px;
}

.ac-query-container .ac-query-actions .ac-btn,
.ac-form-container .ac-form-submit .ac-btn {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
}

.ac-query-container .ac-query-intro {
    margin: 0 0 20px;
    color: #6d7b8e;
    font-size: 14px;
    line-height: 1.75;
}

@media (max-width: 782px) {
    .ac-query-container,
    .ac-form-container {
        max-width: 100%;
    }

    .ac-query-container .ac-query-panel,
    .ac-form-container .ac-section {
        border-radius: 18px;
    }
}

/* Terms links: keep underline for clarity */
.ac-form-container .ac-terms-line a {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.ac-form-container .ac-terms-line a:hover {
    text-decoration-thickness: 2px;
}

.ac-query-card-registration .ac-query-subsection {
    padding-top: 4px;
}

.ac-query-work-accordion {
    border: 1px solid rgba(27, 59, 95, 0.10);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.ac-query-work-accordion + .ac-query-work-accordion {
    margin-top: 24px;
    position: relative;
}

.ac-query-work-accordion + .ac-query-work-accordion::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 16px;
    right: 16px;
    height: 1px;
    background: rgba(33, 53, 71, 0.07);
}

.ac-query-work-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.ac-query-work-summary::-webkit-details-marker {
    display: none;
}

.ac-query-work-summary-text {
    color: #6d7b8e;
    font-size: 13px;
    line-height: 1.6;
    margin-left: auto;
}

.ac-query-work-panel {
    border-top: 1px solid rgba(33, 53, 71, 0.07);
}

.ac-query-meta-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ac-query-meta-compact p:nth-child(-n+2) {
    border-top: 0;
}

@media (max-width: 782px) {
    .ac-query-work-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .ac-query-work-summary-text {
        margin-left: 0;
    }

    .ac-query-meta-compact {
        grid-template-columns: 1fr;
    }

    .ac-query-meta-compact p:nth-child(2) {
        border-top: 1px solid rgba(33, 53, 71, 0.07);
    }
}
/* Query theme tweaks (kicker/entry/awarded) */
.ac-query-container .ac-query-kicker,
.ac-query-container .ac-query-subsection h5,
.ac-query-container .ac-query-subsection-awarded h5 {
    color: #000;
}

.ac-query-container .ac-query-entry,
.ac-query-container .ac-query-status {
    background: #ffdc40;
    color: #000;
}

.ac-query-container .ac-query-work-item.is-awarded {
    background: #fff;
    border-color: #ffdc40;
}

.ac-query-container .ac-query-work-badge {
    background: #ffdc40;
    color: #000 !important;
}

/* Work accordion divider (12px vertical spacing) */
.ac-query-container .ac-query-subsection .ac-query-work-accordion + .ac-query-work-accordion {

    position: relative;
}
.ac-query-container .ac-query-subsection .ac-query-work-accordion + .ac-query-work-accordion::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 0;
    height: 1px;
    background: rgba(33, 53, 71, 0.10);
}

/* Query header/work summary layout refinements */
.ac-query-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ac-query-card-title-stack {
    display: grid;
    gap: 4px;
}

.ac-query-work-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ac-query-work-summary-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.ac-query-work-summary-text {
    margin-left: 0;
    text-align: left;
}

@media (max-width: 768px) {
    .ac-query-work-item.is-awarded .ac-query-work-main {
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .ac-query-work-item.is-awarded .ac-query-work-main strong,
    .ac-query-work-item.is-awarded .ac-query-work-badge {
        flex: 0 1 auto;
    }
}
/* Query layout refinements */
.ac-query-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ac-query-card-title-stack {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.ac-query-card-head > .ac-query-summary-line {
    margin: 8px 0 0;
}

.ac-query-work-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ac-query-work-summary-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.ac-query-work-summary-text {
    margin-left: 0;
    text-align: left;
    flex: 0 1 auto;
}

@media (max-width: 768px) {
    .ac-query-card-title-row {
        align-items: flex-start;
    }

    .ac-query-work-item.is-awarded .ac-query-work-main {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        width: 100%;
    }

    .ac-query-work-item.is-awarded .ac-query-work-badge {
        margin-left: 12px;
        flex: 0 0 auto;
    }
}

/* Query alignment overrides */
.ac-query-card-head {
    display: grd;
    gap: 8px;
}

.ac-query-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ac-query-card-title-stack {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.ac-query-work-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ac-query-work-summary-content {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}

.ac-query-work-summary-text {
    margin-left: 0;
    text-align: left;
}

.ac-query-actions .ac-cert-download-btn {
    justify-content: center;
    text-align: center;
}

@media (max-width: 768px) {
    .ac-query-card-title-row,
    .ac-query-card-toggle,
    .ac-query-work-summary {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .ac-query-card-toggle {
        gap: 12px;
    }

    .ac-query-actions .ac-cert-download-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .ac-query-work-item.is-awarded .ac-query-work-main {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        flex-wrap: nowrap;
    }

    .ac-query-work-item.is-awarded .ac-query-work-main strong {
        flex: 1 1 auto;
        min-width: 0;
    }

    .ac-query-work-item.is-awarded .ac-query-work-badge {
        margin-left: auto;
        flex: 0 0 auto;
    }
}
/* Query final alignment fixes */
.ac-query-card-title-row {
    width: 100%;
}

.ac-query-card-title-stack {
    margin-right: auto;
}

.ac-query-entry {
    margin-left: auto;
}

.ac-query-work-accordion + .ac-query-work-accordion::before,
.ac-query-container .ac-query-subsection .ac-query-work-accordion + .ac-query-work-accordion::before {
    display: none;
}

@media (max-width: 768px) {
    .ac-query-work-item.is-awarded .ac-query-work-main {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .ac-query-work-item.is-awarded .ac-query-work-main strong {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
    }

    .ac-query-work-item.is-awarded .ac-query-work-badge {
        flex: 0 0 auto;
        margin-left: auto;
    }
}

/* Query hard overrides */
.ac-query-actions {
    padding: 0;
}

.ac-query-card-head > .ac-query-card-title-row {
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.ac-query-card-head > .ac-query-card-title-row .ac-query-card-title-stack {
    flex: 1 1 auto;
    min-width: 0;
}

.ac-query-card-head > .ac-query-card-title-row .ac-query-entry {
    margin-left: auto;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .ac-query-work-item.is-awarded .ac-query-work-main {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        gap: 12px;
    }

    .ac-query-work-item.is-awarded .ac-query-work-main strong {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
    }

    .ac-query-work-item.is-awarded .ac-query-work-badge {
        margin-left: auto !important;
        flex: 0 0 auto;
    }
}

/* Query summary-outside-header and mobile awarded row */
.ac-query-card-summary > .ac-query-summary-line {
    display: block;
    margin: 8px 20px 0;
}

@media (max-width: 768px) {
    .ac-query-work-item.is-awarded .ac-query-work-main {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 12px !important;
        flex-wrap: nowrap !important;
    }

    .ac-query-work-item.is-awarded .ac-query-work-main strong {
        display: block;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        white-space: normal;
    }

    .ac-query-work-item.is-awarded .ac-query-work-main .ac-query-work-badge {
        display: inline-flex !important;
        margin-left: auto !important;
        flex: 0 0 auto !important;
        align-self: center !important;
    }
}

/* Query final mobile/header hard lock */
.ac-query-card-head {
    display: block !important;
    width: 100% !important;
}

.ac-query-card-head > .ac-query-card-title-row {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.ac-query-card-head > .ac-query-card-title-row .ac-query-card-title-stack {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.ac-query-card-head > .ac-query-card-title-row .ac-query-entry {
    margin-left: auto !important;
    flex: 0 0 auto !important;
}

.ac-query-card + .ac-query-summary-line,
.ac-query-card-summary + .ac-query-summary-line,
.ac-query-card-head + .ac-query-summary-line {
    display: block !important;
    width: 100% !important;
    margin: 0px 0px 0px 20px !important
}

@media (max-width: 768px) {
    .ac-query-work-item.is-awarded {
        display: block !important;
        width: 100% !important;
    }

    .ac-query-work-item.is-awarded .ac-query-work-main {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
        flex-wrap: nowrap !important;
    }

    .ac-query-work-item.is-awarded .ac-query-work-main strong {
        display: block !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .ac-query-work-item.is-awarded .ac-query-work-main .ac-query-work-badge,
    .ac-query-work-item.is-awarded .ac-query-work-badge {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
        white-space: nowrap !important;
        align-self: center !important;
    }
}


/* Query meta mobile two-column alignment */
@media (max-width: 768px) {
    .ac-query-meta p,
    .ac-query-meta.ac-query-meta-compact p {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 10px 10px;

    }
.ac-query-meta p {
 
        padding: 10px 10px;
}
    .ac-query-meta p strong,
    .ac-query-meta.ac-query-meta-compact p strong {
        flex: 0 0 35% !important;
        max-width: 35% !important;
        min-width: 0 !important;
        text-align: left !important;
    }

    .ac-query-meta p span,
    .ac-query-meta.ac-query-meta-compact p span {
        flex: 1 1 0 !important;
        max-width: none !important;
        min-width: 0 !important;
        text-align: right !important;
        margin-left: 0 !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    
}


/* Query subsection title divider (h5 only) */
.ac-query-subsection > h5 {
    border-bottom: 1px solid rgba(33, 53, 71, 0.10);
    padding-bottom: 12px;
    margin-bottom: 12px;
}
