.cnctq-band {
    --cnctq-red: #d92d35;
    --cnctq-red-dark: #b92029;
    --cnctq-ink: #202936;
    --cnctq-muted: #69747e;
    --cnctq-line: #d5dce2;
    width: 100%;
    padding: 30px 0 36px;
    margin: 0;
    scroll-margin-top: 84px;
    background: #fff;
    color: var(--cnctq-ink);
}

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

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

.cnctq-panel {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    align-items: stretch;
    overflow: visible;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(29, 39, 50, 0.08);
}

.cnctq-guide {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px 24px 18px;
    border-radius: 4px 0 0 4px;
    background: linear-gradient(145deg, #f2f4f6 0%, #e9edf0 100%);
}

.cnctq-guide h2 {
    margin: 0;
    padding: 0;
    color: #202936;
    font-size: 23px;
    font-weight: 750;
    line-height: 1.15;
}

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

.cnctq-guide-list li {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cnctq-icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(34, 45, 56, 0.05);
}

.cnctq-guide-list img {
    display: block;
    width: 46px;
    height: 46px;
}

.cnctq-guide-list span:last-child {
    display: block;
    color: #2f3a45;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.cnctq-guide-note {
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px solid #d2d8dd;
    color: #77818b;
    font-size: 9px;
    line-height: 1.45;
}

.cnctq-form-wrap {
    min-width: 0;
    padding: 16px 22px 14px 24px;
    background: #fff;
}

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

.cnctq-form-heading {
    margin: 0 0 9px;
}

.cnctq-form-heading h2 {
    margin: 0;
    padding: 0;
    color: #202936;
    font-size: 28px;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.08;
}

.cnctq-form-heading h2 span {
    color: var(--cnctq-red);
}

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

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

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

.cnctq-field {
    display: block;
    min-width: 0;
    margin: 0;
    color: #26313c;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.25;
}

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

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

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

.cnctq-field textarea {
    height: 54px;
    min-height: 54px;
    resize: vertical;
}

.cnctq-field input:focus,
.cnctq-field textarea:focus {
    border-color: rgba(217, 45, 53, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(217, 45, 53, 0.08);
}

.cnctq-field input::placeholder,
.cnctq-field textarea::placeholder {
    color: #98a1aa;
    opacity: 1;
}

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

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

.cnctq-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;
}

.cnctq-upload .codedropz-upload-handler {
    display: block !important;
    width: 100%;
    min-height: 82px;
    padding: 0;
    margin: 0;
    border: 1px dashed #bfc7ce;
    border-radius: 3px;
    background: #fbfcfd;
}

.cnctq-upload .codedropz-upload-container {
    padding: 0;
}

.cnctq-upload .codedropz-upload-inner {
    position: relative;
    padding: 10px 10px 25px;
    text-align: center;
}

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

.cnctq-upload-title {
    position: absolute;
    z-index: 3;
    top: 35px;
    right: 10px;
    left: 10px;
    color: #27313b;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
    pointer-events: none;
}

.cnctq-upload .codedropz-upload-inner > div:first-child,
.cnctq-upload .codedropz-upload-inner > span {
    display: none;
}

.cnctq-upload .codedropz-btn-wrap,
.cnctq-upload .codedropz-btn-wrap a {
    display: block;
    margin: 13px 0 0;
    color: #6f7881;
    font-size: 8px;
    line-height: 1.3;
}

.cnctq-upload .codedropz-btn-wrap a {
    margin: 0;
    color: var(--cnctq-red);
    font-weight: 700;
}

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

.cnctq-upload-help {
    display: block;
    position: relative;
    z-index: 2;
    margin: -24px 12px 0;
    color: #818a93;
    font-size: 8px;
    line-height: 1.3;
    text-align: center;
    pointer-events: none;
}

.cnctq-upload:not(:has(.codedropz-upload-handler)) {
    min-height: 82px;
    border: 1px dashed #bfc7ce;
    border-radius: 3px;
    background: #fbfcfd;
}

.cnctq-upload:not(:has(.codedropz-upload-handler))::before {
    content: "\f0ee";
    display: block;
    margin-top: 10px;
    color: var(--cnctq-red);
    font-family: FontAwesome;
    font-size: 25px;
    line-height: 1;
    text-align: center;
}

.cnctq-upload:not(:has(.codedropz-upload-handler)) .wpcf7-form-control-wrap {
    position: absolute;
    z-index: 4;
    inset: 0;
    margin: 0;
}

.cnctq-upload:not(:has(.codedropz-upload-handler)) .wpcf7-drag-n-drop-file {
    display: block !important;
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    opacity: 0;
    clip: auto !important;
    cursor: pointer;
}

.cnctq-upload:not(:has(.codedropz-upload-handler)) .cnctq-upload-help {
    position: absolute;
    top: 52px;
    right: 10px;
    left: 10px;
    margin: 0;
}

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

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

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

.cnctq-form-wrap .wpcf7-spinner {
    position: absolute;
}

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

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

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

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

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

    .cnctq-guide {
        display: grid;
        grid-template-columns: minmax(155px, 0.38fr) minmax(0, 1fr);
        column-gap: 24px;
        padding: 22px 24px;
        border-radius: 4px 4px 0 0;
    }

    .cnctq-guide h2 {
        align-self: center;
    }

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

    .cnctq-guide-note {
        grid-column: 1 / -1;
        margin-top: 15px;
    }

    .cnctq-form-wrap {
        padding: 20px 22px 16px;
    }
}

@media (max-width: 620px) {
    .totop {
        display: none !important;
    }

    .cnctq-band {
        padding: 24px 0 30px;
    }

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

    .cnctq-guide {
        display: block;
        padding: 21px 18px 19px;
    }

    .cnctq-guide-list {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 16px 0;
    }

    .cnctq-guide-list li {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .cnctq-icon {
        width: 52px;
        height: 52px;
    }

    .cnctq-guide-list img {
        width: 43px;
        height: 43px;
    }

    .cnctq-form-wrap {
        padding: 18px 14px 14px;
    }

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

    .cnctq-form-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

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

    .cnctq-upload .codedropz-upload-handler,
    .cnctq-upload:not(:has(.codedropz-upload-handler)) {
        min-height: 92px;
    }

    .cnctq-upload-title {
        top: 39px;
    }

    .cnctq-upload-help {
        margin-top: -28px;
    }

    .cnctq-upload:not(:has(.codedropz-upload-handler)) .cnctq-upload-help {
        top: 58px;
        margin: 0;
    }
}
