.ber-wrap {
    --ber-accent: #176b4d;
    max-width: 920px;
    margin: 32px auto;
    color: #17211d;
}

.ber-wrap *, .ber-wrap *::before, .ber-wrap *::after { box-sizing: border-box; }

.ber-card {
    background: var(--ber-bg, #fff);
    border: 1px solid #dde5e1;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(23, 48, 37, 0.08);
    overflow: hidden;
}

.ber-header {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 30px 34px;
    color: #fff;
    background: linear-gradient(135deg, var(--ber-accent), var(--ber-secondary, #244c3d));
}

.ber-logo {
    width: auto;
    max-width: 150px;
    max-height: 72px;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
}

.ber-header h2 { color: #fff; margin: 0 0 8px; font-size: clamp(25px, 4vw, 38px); line-height: 1.2; }
.ber-header p { margin: 0; max-width: 700px; opacity: .92; line-height: 1.55; }

.ber-form { padding: 32px 34px 36px; }
.ber-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ber-span-2 { grid-column: span 2; }

.ber-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 650;
    font-size: 14px;
}
.ber-field label span { color: #b42318; }

.ber-field input,
.ber-field select,
.ber-field textarea {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #bdc9c3;
    border-radius: 8px;
    background: #fff;
    color: #17211d;
    font: inherit;
    box-shadow: none;
}
.ber-field textarea { min-height: 92px; resize: vertical; }
.ber-field input[type="file"] { min-height: auto; padding: 10px; background: #f8faf9; }
.ber-field input:focus,
.ber-field select:focus,
.ber-field textarea:focus { outline: 3px solid color-mix(in srgb, var(--ber-accent) 18%, transparent); border-color: var(--ber-accent); }
.ber-field small { display: block; margin-top: 7px; color: #63726a; line-height: 1.45; }

.ber-consent { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0; font-size: 13px; line-height: 1.5; color: #4f5e56; }
.ber-consent input { margin-top: 4px; flex: 0 0 auto; }

.ber-fee-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border: 1px solid #dbe4df;
    border-radius: 12px;
    background: #f7faf8;
}
.ber-fee-row span { display: block; color: #64736b; font-size: 13px; }
.ber-fee-row strong { display: block; margin-top: 3px; font-size: 23px; color: var(--ber-accent); }

.ber-submit {
    min-width: 175px;
    min-height: 48px;
    padding: 11px 22px;
    border: 0;
    border-radius: 9px;
    background: var(--ber-accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}
.ber-submit:hover { transform: translateY(-1px); color: #fff; }
.ber-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.ber-message { display: none; margin-top: 18px; padding: 12px 14px; border-radius: 8px; line-height: 1.5; }
.ber-message:not(:empty) { display: block; }
.ber-message-info { background: #eaf3ff; color: #184e87; }
.ber-message-error { background: #fdecec; color: #8d1d1d; }
.ber-message-warning { background: #fff4d7; color: #755000; }
.ber-alert { margin: 24px 34px 0; padding: 12px 14px; border-radius: 8px; }
.ber-alert-warning { background: #fff4d7; color: #755000; }
.ber-is-busy { opacity: .88; }

.ber-success-card {
    margin: 32px;
    padding: 42px 28px;
    text-align: center;
    border: 1px solid #d8e7df;
    border-radius: 14px;
    background: #f7fbf9;
}
.ber-success-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--ber-accent);
    color: #fff;
    font-size: 34px;
    font-weight: 700;
}
.ber-success-card h3 { margin: 0 0 12px; font-size: 28px; }
.ber-success-card p { margin: 6px 0; color: #53645b; }
.ber-roll-number { margin: 12px 0 18px; color: var(--ber-accent); font-size: clamp(28px, 6vw, 44px); font-weight: 800; letter-spacing: 1px; }
.ber-success-note { max-width: 560px; margin-inline: auto !important; line-height: 1.6; }

@media (max-width: 680px) {
    .ber-wrap { margin: 18px auto; }
    .ber-card { border-radius: 12px; }
    .ber-header { align-items: flex-start; flex-direction: column; padding: 24px 20px; }
    .ber-form { padding: 24px 20px 28px; }
    .ber-grid { grid-template-columns: 1fr; }
    .ber-span-2 { grid-column: span 1; }
    .ber-fee-row { align-items: stretch; flex-direction: column; }
    .ber-submit { width: 100%; }
    .ber-alert { margin: 20px 20px 0; }
    .ber-success-card { margin: 20px; }
}

.ber-choice-group { display:flex; flex-wrap:wrap; gap:10px 18px; min-height:46px; align-items:center; padding:10px 12px; border:1px solid #bdc9c3; border-radius:8px; background:#fff; }
.ber-choice-group label { display:flex; align-items:center; gap:7px; margin:0; font-weight:500; }
.ber-choice-group input { width:auto; min-height:auto; margin:0; padding:0; }
.ber-mode-label { font-size:18px !important; }
.ber-reference-label { margin-top:18px; color:#63726a; font-size:13px; text-transform:uppercase; letter-spacing:.7px; }
.ber-success-message { max-width:600px; margin:8px auto !important; line-height:1.6; }
