/* Public Lead Generation form - dashboard tokens, wraps existing Telerik/search UCs. */
html,
body,
body.lg-form,
body.lg-form #pageContent,
body.lg-form #BreadCrumb {
    background: #F3F4F6 !important;
}

body.lg-form {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: #444;
}

.lg-page {
    max-width: 760px;
    margin: 24px auto 40px;
    padding: 0 16px;
}

.lg-card {
    background: #fff;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.lg-hdr {
    padding: 22px 28px 18px;
    background: #F5F5F5;
    border-bottom: 1px solid #E5E7EB;
}

.lg-hdr-title {
    font-size: 22px;
    font-weight: 700;
    color: #1F2A24;
    line-height: 1.25;
}

.lg-body {
    padding: 22px 28px 8px;
}

.lg-section {
    margin-bottom: 22px;
}

.lg-section-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.lg-section-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4B5563;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lg-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1F2A24;
}

.lg-grid {
    display: block;
}

.lg-field {
    margin-bottom: 14px;
}

.lg-field:last-child {
    margin-bottom: 0;
}

.lg-field table {
    margin: 0;
    border-collapse: collapse;
}

.lg-field td {
    padding: 0;
}

.lg-field .formLabel,
.lg-label {
    display: block;
    text-align: left;
    padding: 0;
    margin: 0 0 4px 0;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    background: transparent;
}

.lg-field .formLabel span {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.lg-field [id$="panelPropertyType"] [id$="panelLabel"] br {
    display: none;
}

.lg-field [id$="panelPropertyType"] div[style*="padding-top"] {
    padding-top: 0 !important;
}

.lg-field .fp-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    background: transparent;
}

.lg-field .fp-price-to {
    flex-shrink: 0;
    font-size: 13px;
    color: #667068;
}

.lg-field .fp-price-row .RadComboBox {
    flex: 1 1 0;
    min-width: 0;
}

.lg-field .fp-price-row .RadComboBox,
.lg-field .fp-price-row .RadComboBox table.rcbTable {
    width: 100% !important;
}

.lg-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lg-input-row .RadInput,
.lg-field .RadInput {
    margin: 0 !important;
    vertical-align: middle;
}

.lg-val {
    white-space: nowrap;
    color: #C0392B;
    font-size: 12px;
    font-weight: 600;
}

.lg-req {
    color: #C0392B;
    margin-left: 2px;
}

.lg-sample {
    display: inline-block;
    margin-top: 6px;
    color: #0F5A31;
    font-weight: 600;
    text-decoration: underline;
}

.lg-freq-cards {
    display: flex;
    gap: 10px;
}

.lg-freq-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.lg-freq-card:has(input:checked),
.lg-freq-card.is-selected {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.lg-freq-card input[type="radio"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #4B5563;
}

.lg-freq-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lg-freq-title {
    font-size: 14px;
    font-weight: 700;
    color: #1F2A24;
}

.lg-freq-sub {
    font-size: 12px;
    color: #6B7280;
}

.lg-footer {
    padding: 16px 28px 22px;
    border-top: 1px solid #E8E8E8;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.lg-actions {
    display: flex;
    gap: 10px;
}

.lg-btn {
    min-width: 120px;
    height: 38px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
}

.lg-btn-cancel {
    background: #fff;
    border-color: #D0D5D2;
    color: #444;
}

.lg-btn-submit,
.lg-btn-submit input {
    background: #4B5563 !important;
    border-color: #4B5563 !important;
    color: #fff !important;
}

.lg-thanks {
    padding: 36px 32px 40px;
    text-align: center;
}

.lg-thanks-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #EDF7F2;
    color: #0F5A31;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.lg-thanks-icon svg {
    width: 26px;
    height: 26px;
}

.lg-thanks-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F2A24;
    margin-bottom: 12px;
}

.lg-thanks-copy {
    font-size: 14px;
    line-height: 1.55;
    color: #444;
    text-align: left;
}

.lg-thanks-copy a {
    color: #0F5A31;
    font-weight: 600;
}

body.lg-form .rslSelectedregion {
    background: #0F5A31 !important;
}

body.lg-form .RadListBox_Hay .rlbGroup .rlbHovered,
body.lg-form .RadListBox_Hay .rlbGroup .rlbSelected {
    background: #EDF7F2 !important;
}
