.rustend-brief {
    max-width: 1040px;
    margin: 0 auto;
    color: #151a22;
}

.rustend-brief fieldset {
    margin: 0 0 28px;
    padding: 34px;
    border: 1px solid #dce1e4;
    border-radius: 18px;
    background: #fff;
}

.rustend-brief legend {
    padding: 0 12px 0 0;
    color: #151a22;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.rustend-brief legend span {
    width: 38px;
    height: 38px;
    margin-right: 10px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: #10141b;
    font-size: 11px;
    letter-spacing: .05em;
    vertical-align: middle;
}

.rustend-stage__intro {
    max-width: 720px;
    margin: 2px 0 26px;
    color: #65707d;
    font-size: 16px;
    line-height: 1.6;
}

.rustend-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
}

.rustend-brief label {
    display: grid;
    gap: 9px;
    color: #343c47;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
}

.rustend-brief input,
.rustend-brief select,
.rustend-brief textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #bdc5cc;
    border-radius: 10px;
    outline: 0;
    color: #151a22;
    background: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.rustend-brief input:not([type="checkbox"]):not([type="file"]),
.rustend-brief select { height: 50px; min-height: 50px; }
.rustend-brief textarea { min-height: 124px; resize: vertical; line-height: 1.55; }
.rustend-brief input::placeholder,.rustend-brief textarea::placeholder { color: #9aa2ab; opacity: 1; }
.rustend-brief input:focus,.rustend-brief select:focus,.rustend-brief textarea:focus { border-color: #ff5a36; box-shadow: 0 0 0 4px rgba(255,90,54,.1); }

.rustend-checks {
    margin: 22px 0 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.rustend-checks label {
    min-height: 58px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #dfe3e5;
    border-radius: 11px;
    background: #f8f9f7;
    cursor: pointer;
    font-size: 14px;
}

.rustend-checks input,
.rustend-consent input {
    width: 19px;
    height: 19px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: #ff5a36;
}

.rustend-file {
    margin-top: 4px;
    padding: 20px;
    border: 1px dashed #bfc7cd;
    border-radius: 12px;
    background: #fafbf9;
}
.rustend-file input { padding: 0; border: 0; background: transparent; }
.rustend-file small { color: #68727e; font-size: 13px; font-weight: 500; }

.rustend-more {
    margin-top: 22px;
    padding: 0 20px;
    border: 1px solid #dfe3e5;
    border-radius: 12px;
    background: #fafbf9;
}
.rustend-more summary {
    padding: 19px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    list-style: none;
}
.rustend-more summary::-webkit-details-marker { display: none; }
.rustend-more summary span { color: #ff5a36; font-size: 22px; }
.rustend-more[open] { padding-bottom: 22px; }
.rustend-more[open] summary { margin-bottom: 22px; border-bottom: 1px solid #e0e4e5; }
.rustend-more > label { margin-top: 20px; }
.rustend-technical-label { margin: 24px 0 10px; color: #343c47; font-size: 14px; font-weight: 800; }
.rustend-checks--technical { margin: 0 0 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rustend-form-footer {
    padding: 28px;
    border-radius: 18px;
    background: #f1f3ef;
}
.rustend-consent {
    padding: 18px 20px;
    display: flex !important;
    align-items: flex-start;
    gap: 12px !important;
    border: 1px solid #d9ded9;
    border-radius: 12px;
    background: #fff;
    font-size: 15px !important;
    font-weight: 550 !important;
    line-height: 1.58 !important;
}
.rustend-consent input { margin-top: 2px; }
.rustend-consent a { color: #ad351d; border-bottom: 1px solid #df9b8c; font-weight: 750; }

.rustend-submit-row {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 26px;
}
.rustend-submit {
    min-height: 54px;
    padding: 0 25px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 10px;
    background: #ff5a36;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(255,90,54,.2);
}
.rustend-submit-row p {
    max-width: 650px;
    margin: 0;
    color: #616c78;
    font-size: 14px;
    line-height: 1.55;
}

.rustend-brief-error,
.rustend-brief-success {
    margin: 0 0 24px;
    padding: 20px 22px;
    border-radius: 12px;
}
.rustend-brief-error { border: 1px solid #d63638; background: #fff2f2; }
.rustend-brief-success { border: 1px solid #2e7d32; background: #effaf0; }

.rustend-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 760px) {
    .rustend-brief fieldset { padding: 25px 20px; }
    .rustend-grid,.rustend-checks { grid-template-columns: 1fr; }
    .rustend-stage__intro { margin-bottom: 22px; }
    .rustend-form-footer { padding: 18px; }
    .rustend-submit-row { align-items: stretch; flex-direction: column; gap: 14px; }
    .rustend-submit { width: 100%; }
}
