.pimq-band {
    --pimq-red: #dc3038;
    --pimq-red-dark: #bb222b;
    --pimq-ink: #1f2833;
    --pimq-muted: #6b747d;
    --pimq-line: #d9dee3;
    width: 100%;
    margin: 0;
    padding: 38px 0 42px;
    scroll-margin-top: 84px;
    background: #fff;
    color: var(--pimq-ink);
}

.pimq-band *,
.pimq-band *::before,
.pimq-band *::after {
    box-sizing: border-box;
}

.pimq-shell {
    width: calc(100% - 40px);
    max-width: 1120px;
    margin: 0 auto;
}

.pimq-panel {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: stretch;
    overflow: visible;
    border: 1px solid #e5e9ec;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(31, 40, 51, 0.09);
}

.pimq-guide {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px 24px 20px;
    border-radius: 3px 0 0 3px;
    background: linear-gradient(145deg, #f2f4f5 0%, #e9edef 100%);
}

.pimq-guide-list {
    display: grid;
    grid-template-rows: repeat(4, minmax(92px, 1fr));
    flex: 1 1 auto;
    gap: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pimq-guide-list li {
    position: relative;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 8px 0;
    margin: 0;
}

.pimq-guide-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: calc(50% + 24px);
    bottom: calc(-50% + 24px);
    left: 23px;
    border-left: 2px dotted #c4cbd0;
}

.pimq-guide-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid #e7eaed;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgba(32, 41, 52, 0.05);
}

.pimq-guide-icon img {
    display: block;
    width: 31px;
    height: 31px;
    max-width: none;
    image-rendering: auto;
}

.pimq-guide-copy {
    display: block;
    min-width: 0;
}

.pimq-guide-copy strong,
.pimq-guide-copy small {
    display: block;
    margin: 0;
    padding: 0;
    letter-spacing: 0;
}

.pimq-guide-copy strong {
    color: #202a35;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.2;
}

.pimq-guide-copy small {
    margin-top: 4px;
    color: #717b84;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.35;
}

.pimq-guide-note {
    flex: 0 0 auto;
    margin: 12px 0 0;
    padding: 15px 0 0;
    border-top: 1px solid #d4dade;
    color: #747e87;
    font-size: 10px;
    line-height: 1.45;
}

.pimq-form-wrap {
    min-width: 0;
    padding: 20px 24px 18px;
    border-radius: 0 3px 3px 0;
    background: #fff;
}

.pimq-form-wrap > .wpcf7,
.pimq-form-wrap .wpcf7-form,
.pimq-form-wrap .pimq-form-fields {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
}

.pimq-form-heading {
    margin: 0 0 11px;
}

.pimq-form-heading h2 {
    margin: 0;
    padding: 0;
    color: var(--pimq-ink);
    font-size: 30px;
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1.08;
}

.pimq-form-heading p {
    margin: 4px 0 0;
    color: var(--pimq-muted);
    font-size: 11px;
    line-height: 1.4;
}

.pimq-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.pimq-full {
    grid-column: 1 / -1;
}

.pimq-field {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #28333e;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
}

.pimq-field em {
    margin-left: 2px;
    color: var(--pimq-red);
    font-style: normal;
}

.pimq-form-wrap .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin-top: 4px;
}

.pimq-field input[type="text"],
.pimq-field input[type="email"],
.pimq-field input[type="number"],
.pimq-field input[type="date"],
.pimq-field select,
.pimq-field textarea {
    display: block;
    width: 100%;
    max-width: none;
    height: 34px;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid var(--pimq-line) !important;
    border-radius: 2px;
    outline: 0;
    background: #fff;
    color: #29333d;
    font-family: inherit;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.3;
}

.pimq-field select {
    padding-right: 26px;
}

.pimq-field textarea {
    height: 52px;
    min-height: 52px;
    resize: vertical;
}

.pimq-field input:focus,
.pimq-field select:focus,
.pimq-field textarea:focus {
    border-color: rgba(220, 48, 56, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(220, 48, 56, 0.08);
}

.pimq-field input::placeholder,
.pimq-field textarea::placeholder {
    color: #99a2aa;
    opacity: 1;
}

.pimq-stage,
.pimq-tooling {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.pimq-stage legend,
.pimq-tooling legend {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0 0 4px;
    color: #28333e;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
}

.pimq-stage .wpcf7-form-control-wrap {
    margin: 0;
}

.pimq-stage .wpcf7-radio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--pimq-line);
    border-radius: 2px;
    background: #fff;
}

.pimq-stage .wpcf7-list-item {
    display: block;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
    border-right: 1px solid var(--pimq-line);
}

.pimq-stage .wpcf7-list-item:last-child {
    border-right: 0;
}

.pimq-stage .wpcf7-list-item label {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.pimq-stage input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.pimq-stage .wpcf7-list-item-label {
    display: flex;
    width: 100%;
    min-height: 31px;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    background: #fff;
    color: #38434d;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.pimq-stage input[type="radio"]:checked + .wpcf7-list-item-label {
    background: var(--pimq-red);
    color: #fff;
}

.pimq-stage input[type="radio"]:focus + .wpcf7-list-item-label {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.pimq-tooling {
    padding: 10px 12px 11px;
    border-radius: 3px;
    background: #fff0f1;
}

.pimq-tooling legend {
    float: left;
    margin-bottom: 6px;
    color: var(--pimq-red);
    font-size: 11px;
    font-weight: 750;
}

.pimq-tooling legend + * {
    clear: both;
}

.pimq-tooling-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    width: 100%;
}

.pimq-upload {
    position: relative;
    min-width: 0;
}

.pimq-upload .wpcf7-form-control-wrap {
    margin-top: 0;
}

.pimq-upload .wpcf7-drag-n-drop-file {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.pimq-upload .codedropz-upload-handler {
    display: block !important;
    width: 100%;
    min-height: 82px;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px dashed #b9c2c9 !important;
    border-radius: 2px;
    background: #fcfdfe !important;
}

.pimq-upload .codedropz-upload-container {
    padding: 0 !important;
    margin: 0 !important;
}

.pimq-upload .codedropz-upload-inner {
    position: relative !important;
    min-height: 80px;
    padding: 10px 10px 8px !important;
    overflow: hidden !important;
    text-align: center;
}

.pimq-upload .codedropz-upload-inner::before {
    content: "\f0ee";
    display: block;
    margin: 0 0 3px;
    color: var(--pimq-red);
    font-family: FontAwesome;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
}

.pimq-upload-title {
    position: absolute;
    z-index: 3;
    top: 34px;
    right: 10px;
    left: 10px;
    display: block !important;
    margin: 0 !important;
    color: #29343e;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    pointer-events: none;
}

.pimq-upload .codedropz-upload-inner > h3,
.pimq-upload .codedropz-upload-inner > span {
    display: none !important;
}

.pimq-upload .codedropz-btn-wrap {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: block !important;
    margin: 0 !important;
}

.pimq-upload .codedropz-btn-wrap a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: transparent !important;
    font-size: 0 !important;
    text-decoration: none;
}

.pimq-upload .dnd-upload-counter {
    display: none !important;
}

.pimq-upload-help {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 8px;
    left: 12px;
    display: block !important;
    margin: 0 !important;
    color: #818b93;
    font-size: 8px;
    line-height: 1.3;
    text-align: center;
    pointer-events: none;
}

.pimq-submit {
    margin-top: 1px;
}

.pimq-submit .wpcf7-submit {
    display: block;
    width: 100%;
    height: 36px;
    padding: 0 16px;
    border: 0 !important;
    border-radius: 2px;
    background: var(--pimq-red);
    color: #fff;
    font-family: inherit;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
}

.pimq-submit .wpcf7-submit:hover,
.pimq-submit .wpcf7-submit:focus {
    background: var(--pimq-red-dark);
}

.pimq-form-wrap .wpcf7-spinner,
.pimq-form-wrap .ajax-loader {
    position: absolute;
}

.pimq-form-wrap .wpcf7-not-valid-tip {
    margin-top: 3px;
    color: var(--pimq-red);
    font-size: 9px;
    line-height: 1.3;
}

.pimq-form-wrap .wpcf7-response-output {
    position: relative;
    z-index: 4;
    clear: both;
    width: 100%;
    margin: 10px 0 0 !important;
    padding: 8px 10px !important;
    border-width: 1px !important;
    border-radius: 2px;
    background: #f8fafb;
    color: #33404c;
    font-size: 10px;
    line-height: 1.4;
}

.pimq-form-wrap form.invalid .wpcf7-response-output,
.pimq-form-wrap form.unaccepted .wpcf7-response-output,
.pimq-form-wrap form.failed .wpcf7-response-output {
    border-color: var(--pimq-red) !important;
    background: #fff4f4;
    color: #8d1820;
}

.pimq-form-wrap form.sent .wpcf7-response-output {
    border-color: #2f8f57 !important;
    background: #f1fbf5;
    color: #246b43;
}

@media (max-width: 900px) {
    .pimq-panel {
        grid-template-columns: 1fr;
    }

    .pimq-guide {
        padding: 22px 24px 18px;
        border-radius: 3px 3px 0 0;
    }

    .pimq-guide-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: none;
        flex: none;
        gap: 12px;
    }

    .pimq-guide-list li {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 9px;
    }

    .pimq-guide-list li:not(:last-child)::after {
        display: none;
    }

    .pimq-guide-icon {
        width: 44px;
        height: 44px;
    }

    .pimq-guide-icon img {
        width: 29px;
        height: 29px;
    }

    .pimq-guide-copy strong {
        font-size: 13px;
    }

    .pimq-guide-note {
        margin-top: 14px;
    }

    .pimq-form-wrap {
        padding: 20px 22px 18px;
        border-radius: 0 0 3px 3px;
    }
}

@media (max-width: 680px) {
    .pimq-band {
        padding: 26px 0 30px;
    }

    .pimq-shell {
        width: calc(100% - 24px);
    }

    .pimq-guide {
        padding: 20px 17px 17px;
    }

    .pimq-guide-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 14px;
    }

    .pimq-form-wrap {
        padding: 19px 14px 15px;
    }

    .pimq-form-heading h2 {
        font-size: 24px;
    }

    .pimq-form-grid,
    .pimq-tooling-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pimq-full {
        grid-column: auto;
    }

    .pimq-tooling {
        padding: 11px;
    }

    .pimq-stage .wpcf7-list-item-label {
        min-height: 35px;
        padding: 7px 5px;
        font-size: 9px;
    }

    .pimq-upload .codedropz-upload-handler {
        min-height: 92px;
    }

    .pimq-upload .codedropz-upload-inner {
        min-height: 90px;
        padding-top: 13px;
    }

    .pimq-upload-title {
        top: 38px;
    }

    .pimq-upload-help {
        bottom: 10px;
    }
}

@media (max-width: 430px) {
    .pimq-guide-list {
        grid-template-columns: 1fr;
    }

    .pimq-stage .wpcf7-radio {
        grid-template-columns: 1fr;
    }

    .pimq-stage .wpcf7-list-item {
        border-right: 0;
        border-bottom: 1px solid var(--pimq-line);
    }

    .pimq-stage .wpcf7-list-item:last-child {
        border-bottom: 0;
    }
}
