/* =========================================
   Donation Manager Pro — Public CSS v7
   ========================================= */

/* === CORE LAYOUT === */
.dmp-form-wrap { font-family: inherit; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.dmp-donation-form { box-sizing: border-box; width: 100%; }
.dmp-field { margin-bottom: 20px; }
.dmp-field label, .dmp-field-group-label {
    display: block; font-weight: 600; margin-bottom: 7px; font-size: 14px; color: #1e293b;
}
.dmp-required { color: #ef4444; margin-left: 2px; }

/* === INPUTS === */
.dmp-field input[type="text"],
.dmp-field input[type="email"],
.dmp-field input[type="tel"],
.dmp-field input[type="number"],
.dmp-field input[type="date"],
.dmp-field select,
.dmp-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    background: #f9fafb;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
    -webkit-appearance: none;
}
.dmp-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 36px;
    cursor: pointer;
}
.dmp-field textarea { resize: vertical; min-height: 100px; }
.dmp-field input:focus,
.dmp-field select:focus,
.dmp-field textarea:focus {
    outline: none; border-color: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,.15); background: #fff;
}
.dmp-field input.dmp-error,
.dmp-field select.dmp-error,
.dmp-field textarea.dmp-error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.dmp-field-error { font-size: 12px; color: #ef4444; margin-top: 4px; display: block; }

/* === NAME FIELD === */
.dmp-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* === ADDRESS FIELD === */
.dmp-address-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }

/* === PHONE FIELD WITH FLAG === */
.dmp-phone-wrap { display: flex; gap: 0; border: 1px solid #d1d5db; border-radius: 6px; overflow: hidden; background: #f9fafb; transition: border-color .2s, box-shadow .2s; }
.dmp-phone-wrap:focus-within { border-color: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,.15); background: #fff; }
.dmp-phone-country {
    display: flex; align-items: center; gap: 4px;
    padding: 0 10px; cursor: pointer;
    border-right: 1px solid #e5e7eb;
    background: #f3f4f6; white-space: nowrap;
    font-size: 14px; font-weight: 600; color: #374151;
    position: relative; min-width: 90px;
    transition: background .15s;
}
.dmp-phone-country:hover { background: #e5e7eb; }
.dmp-phone-flag { font-size: 18px; line-height: 1; }
.dmp-phone-code { font-size: 13px; }
.dmp-phone-chevron { font-size: 10px; color: #9ca3af; }
.dmp-phone-dropdown {
    position: absolute; top: 100%; left: -1px;
    background: #fff; border: 1px solid #e5e7eb;
    border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 9999; max-height: 280px; overflow-y: auto;
    min-width: 240px; display: none;
}
.dmp-phone-dropdown.open { display: block; }
.dmp-phone-search { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; }
.dmp-phone-search input {
    width: 100%; padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 6px;
    font-size: 13px; box-sizing: border-box; background: #f9fafb;
}
.dmp-phone-country-list { max-height: 220px; overflow-y: auto; }
.dmp-phone-country-option {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; cursor: pointer; font-size: 13px; color: #374151;
    transition: background .1s;
}
.dmp-phone-country-option:hover { background: #fff7ed; }
.dmp-phone-country-option.selected { background: #fff7ed; color: #f97316; font-weight: 600; }
.dmp-phone-country-option .flag { font-size: 16px; }
.dmp-phone-input-field {
    flex: 1; border: none !important; border-radius: 0 !important;
    box-shadow: none !important; background: transparent !important;
    padding: 10px 12px !important;
}
.dmp-phone-input-field:focus { box-shadow: none !important; border: none !important; }

/* === CHECKBOX & RADIO — FIXED ALIGNMENT === */
.dmp-checkbox-group,
.dmp-radio-group { display: flex; flex-direction: column; gap: 10px; }

.dmp-checkbox-label,
.dmp-radio-label {
    display: flex;
    align-items: flex-start;  /* top-align for multi-line text */
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all .15s;
    background: #f9fafb;
    user-select: none;
}
.dmp-checkbox-label:hover, .dmp-radio-label:hover { border-color: #f97316; background: #fff7ed; }
.dmp-checkbox-label.checked, .dmp-radio-label.checked {
    border-color: #f97316; background: #fff7ed;
    box-shadow: 0 0 0 2px rgba(249,115,22,.15);
}

/* FIX: Custom checkbox/radio that aligns properly */
.dmp-checkbox-label input[type="checkbox"],
.dmp-radio-label input[type="radio"] {
    /* Overridden by later rules — native inputs are now shown */
}
.dmp-custom-check {
    width: 20px; height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
    margin-top: 1px; /* optical alignment with first line of text */
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.dmp-custom-radio { border-radius: 50%; }
.dmp-checkbox-label.checked .dmp-custom-check,
.dmp-radio-label.checked .dmp-custom-check {
    background: #f97316; border-color: #f97316;
}
.dmp-checkbox-label.checked .dmp-custom-check::after {
    content: ''; display: block;
    width: 5px; height: 9px;
    border: 2px solid #fff; border-top: none; border-left: none;
    transform: rotate(45deg) translateY(-1px);
}
.dmp-radio-label.checked .dmp-custom-check::after {
    content: ''; display: block;
    width: 8px; height: 8px;
    background: #fff; border-radius: 50%;
}

.dmp-checkbox-text, .dmp-radio-text {
    flex: 1;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    padding-top: 1px; /* optical alignment */
}
.dmp-checkbox-text em, .dmp-radio-text em { color: #f97316; font-style: normal; font-weight: 700; }

/* === HEADING / PARAGRAPH === */
.dmp-field-heading h2 { margin: 8px 0 4px; font-size: 22px; color: #f97316; border-bottom: 2px solid #fed7aa; padding-bottom: 8px; }
.dmp-field-paragraph p { color: #64748b; margin: 0; font-size: 14px; line-height: 1.6; }

/* === DONATION AMOUNT === */
.dmp-fixed-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border: 2px solid #f97316; border-radius: 10px;
    background: #fff7ed; gap: 12px; pointer-events: none; cursor: default;
}
.dmp-fixed-card-inner { display: flex; align-items: center; gap: 14px; flex: 1; }
.dmp-fixed-icon { font-size: 26px; flex-shrink: 0; }
.dmp-fixed-card-inner > div { display: flex; flex-direction: column; gap: 2px; }
.dmp-fixed-card-inner strong { font-size: 15px; color: #92400e; font-weight: 700; }
.dmp-fixed-price { font-size: 20px; font-weight: 800; color: #f97316; }
.dmp-fixed-tick { background: #f97316; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.dmp-preset-amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.dmp-preset-btn {
    padding: 10px 20px; border: 2px solid #e5e7eb; border-radius: 8px;
    background: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: all .15s; color: #374151; font-family: inherit;
}
.dmp-preset-btn:hover, .dmp-preset-btn.active { border-color: #f97316; background: #f97316; color: #fff; }
.dmp-input-currency {
    display: flex; align-items: center; border: 1px solid #d1d5db; border-radius: 6px;
    background: #f9fafb; overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.dmp-input-currency:focus-within { border-color: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,.15); background: #fff; }
.dmp-input-currency > span { padding: 10px 12px; background: #e5e7eb; font-weight: 600; font-size: 14px; color: #374151; border-right: 1px solid #d1d5db; white-space: nowrap; }
.dmp-input-currency input { border: none !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; flex: 1; }
.dmp-input-currency input:focus { box-shadow: none !important; }
.dmp-custom-amount-wrap { margin-top: 12px; }
.dmp-custom-amount-wrap > label { font-size: 13px; font-weight: 500; color: #6b7280; margin-bottom: 6px; }

/* === CALENDAR (popup) === */
.dmp-calendar-input-wrap { display: flex; align-items: center; gap: 8px; }
.dmp-cal-icon-trigger { font-size: 20px; cursor: pointer; flex-shrink: 0; }
.dmp-popup-datepicker { flex: 1; cursor: pointer !important; background: #fff !important; caret-color: transparent; }
.dmp-popup-datepicker:hover { border-color: #f97316 !important; }
.dmp-clear-date { background: none; border: none; color: #9ca3af; cursor: pointer; font-size: 16px; padding: 2px 6px; border-radius: 4px; }
.dmp-clear-date:hover { color: #ef4444; }
.dmp-calendar-loading { font-size: 12px; color: #f97316; margin-top: 6px; font-style: italic; }
.dmp-field-note { font-size: 12px; color: #6b7280; margin: 0 0 6px; }

/* jQuery UI datepicker */
.ui-datepicker { font-family: inherit !important; font-size: 13px !important; border: 1px solid #e5e7eb !important; border-radius: 10px !important; box-shadow: 0 8px 24px rgba(0,0,0,.12) !important; padding: 10px !important; z-index: 99999 !important; }
.ui-datepicker .ui-datepicker-header { background: #f97316 !important; border: none !important; border-radius: 6px !important; color: #fff !important; padding: 8px !important; margin-bottom: 6px; position: relative !important; }
.ui-datepicker .ui-datepicker-title { color: #fff !important; font-weight: 700; text-align: center; }
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position: absolute !important; top: 6px !important; background: rgba(255,255,255,.2) !important; border-radius: 4px; cursor: pointer; width: 26px !important; height: 26px !important; }
.ui-datepicker .ui-datepicker-prev { left: 6px !important; }
.ui-datepicker .ui-datepicker-next { right: 6px !important; }
.ui-datepicker .ui-datepicker-prev:hover, .ui-datepicker .ui-datepicker-next:hover { background: rgba(255,255,255,.4) !important; }
/* jQuery UI's base theme hides this span's text via text-indent to show a sprite icon instead;
   reset that so our prevText/nextText character glyph (set in JS) is actually visible */
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span {
    text-indent: 0 !important; overflow: visible !important; background: none !important;
    position: static !important; display: block !important;
    font-size: 18px !important; line-height: 24px !important; text-align: center !important;
    color: #fff !important; font-weight: 700;
}
.ui-datepicker th { font-size: 11px !important; color: #6b7280 !important; font-weight: 600 !important; text-transform: uppercase; }
.ui-datepicker td { padding: 2px !important; }
.ui-datepicker td a, .ui-datepicker td span { display: block; text-align: center; padding: 6px !important; border-radius: 6px !important; font-size: 13px !important; border: none !important; background: none !important; color: #374151 !important; font-weight: 500; transition: all .15s; }
.ui-datepicker td a:hover { background: #fff7ed !important; color: #f97316 !important; }
.ui-state-active, .ui-state-active:hover { background: #f97316 !important; color: #fff !important; font-weight: 700; border-radius: 6px !important; }
.ui-state-highlight { border: 2px solid #f97316 !important; color: #f97316 !important; background: none !important; font-weight: 700; }
.ui-datepicker .dmp-day-booked a { background: #fee2e2 !important; color: #b91c1c !important; cursor: not-allowed; }
.ui-datepicker .dmp-day-disabled span { color: #d1d5db !important; background: #f9f9f9 !important; cursor: not-allowed; }

/* === ORDER SUMMARY === */
.dmp-order-summary { background: #fff7ed; border: 2px solid #f97316; border-radius: 10px; padding: 18px 20px; margin: 20px 0; }
.dmp-order-summary h3 { margin: 0 0 12px; font-size: 16px; color: #92400e; }
.dmp-order-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.dmp-order-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 14px; color: #374151; padding: 6px 0; border-bottom: 1px dashed #fed7aa; }
.dmp-order-item:last-child { border-bottom: none; }
.dmp-order-item-name { flex: 1; }
.dmp-order-item-date { font-size: 12px; color: #6b7280; }
.dmp-order-item-amount { font-weight: 700; color: #92400e; white-space: nowrap; }
.dmp-order-total { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 2px solid #f97316; font-size: 18px; font-weight: 700; color: #f97316; }

/* === PAYMENT METHOD SELECTOR === */
.dmp-payment-methods { margin-bottom: 20px; }
.dmp-payment-methods-label { font-weight: 600; font-size: 14px; color: #1e293b; margin-bottom: 10px; display: block; }
.dmp-gateway-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.dmp-gateway-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px; border: 2px solid #e5e7eb; border-radius: 8px;
    background: #fff; cursor: pointer; font-size: 14px; font-weight: 600;
    color: #374151; transition: all .15s; font-family: inherit;
}
.dmp-gateway-btn:hover { border-color: #f97316; background: #fff7ed; }
.dmp-gateway-btn.active { border-color: #f97316; background: #fff7ed; color: #f97316; }
.dmp-gateway-btn .dmp-gw-icon { font-size: 20px; }
.dmp-gateway-btn .dmp-gw-name { font-size: 13px; }

/* === SUBMIT === */
.dmp-form-footer { margin-top: 24px; }
.dmp-submit-btn {
    width: 100%; padding: 14px 28px; background: #f97316; color: #fff;
    border: none; border-radius: 8px; font-size: 17px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .2s; font-family: inherit; box-shadow: 0 4px 14px rgba(249,115,22,.3);
}
.dmp-submit-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,115,22,.4); filter: brightness(.95); }
.dmp-submit-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.dmp-spinner { width: 18px; height: 18px; animation: dmp-spin .8s linear infinite; }
@keyframes dmp-spin { to { transform: rotate(360deg); } }
.dmp-secure-note { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; color: #9ca3af; margin: 10px 0 0; }

/* === ALERTS === */
.dmp-form-messages { margin: 12px 0; }
.dmp-alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 8px; }
.dmp-alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.dmp-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }

/* === LOGIN BAR === */
.dmp-login-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; margin-bottom: 12px; font-size: 13px; color: #374151; flex-wrap: wrap; gap: 6px; }
.dmp-login-toggle { color: #f97316; font-weight: 600; text-decoration: none; font-size: 13px; }
.dmp-login-toggle:hover { text-decoration: underline; }
.dmp-login-panel { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; }
.dmp-login-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: flex-end; }
.dmp-login-field label { display: block; font-size: 12px; font-weight: 600; color: #6b7280; margin-bottom: 4px; }
.dmp-login-field input { width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; box-sizing: border-box; background: #fff; }
.dmp-login-field input:focus { outline: none; border-color: #f97316; box-shadow: 0 0 0 2px rgba(249,115,22,.15); }
.dmp-login-submit { padding: 9px 20px; background: #f97316; color: #fff; border: none; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; height: 38px; }
.dmp-login-submit:hover { background: #ea6c0a; }
.dmp-login-note { font-size: 12px; color: #9ca3af; margin: 10px 0 0; }
.dmp-logged-in-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; margin-bottom: 12px; font-size: 13px; color: #92400e; font-weight: 600; }
.dmp-logout-link { font-size: 12px; color: #6b7280; text-decoration: none; font-weight: 400; }

/* === COLLAPSIBLE === */
.dmp-field-collapsible { margin-bottom: 20px; }
.dmp-collapsible-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border: 2px solid #f97316; border-radius: 10px; background: #fff; cursor: pointer; font-family: inherit; transition: all .2s; text-align: left; gap: 12px; }
.dmp-collapsible-toggle:hover, .dmp-collapsible-toggle[aria-expanded="true"] { background: #f97316; color: #fff; }
.dmp-collapsible-left { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dmp-collapsible-title { font-size: 15px; font-weight: 700; }
.dmp-collapsible-desc  { font-size: 12px; opacity: .75; }
.dmp-collapsible-arrow { font-size: 11px; flex-shrink: 0; }
.dmp-collapsible-body { border: 1px solid #e5e7eb; border-top: none; border-radius: 0 0 10px 10px; padding: 20px 16px 12px; background: #fafafa; }
.dmp-collapsible-empty { color: #9ca3af; font-size: 13px; text-align: center; padding: 16px; }

/* === FAMILY MEMBERS === */
.dmp-field-family { margin-bottom: 20px; }
.dmp-family-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.dmp-add-member-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; background: #f97316; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; transition: all .2s; box-shadow: 0 2px 8px rgba(249,115,22,.3); }
.dmp-add-member-btn:hover { filter: brightness(.9); }
.dmp-members-list { display: flex; flex-direction: column; gap: 14px; }
.dmp-members-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 20px; background: #f9fafb; border: 2px dashed #e5e7eb; border-radius: 10px; text-align: center; color: #9ca3af; font-size: 14px; }
.dmp-members-empty-icon { font-size: 32px; }
.dmp-member-card { border: 1px solid #f97316; border-radius: 10px; overflow: hidden; background: #fff; animation: dmp-slide-down .2s ease; }
.dmp-member-card-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #f97316; color: #fff; }
.dmp-member-title { font-size: 14px; font-weight: 700; }
.dmp-remove-member { background: rgba(255,255,255,.2); border: none; color: #fff; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: background .15s; padding: 0; }
.dmp-remove-member:hover { background: rgba(255,255,255,.4); }
.dmp-member-fields { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.dmp-mrow { display: flex; gap: 12px; }
.dmp-mrow-2 { }
.dmp-mfield { flex: 1; min-width: 0; }
.dmp-mfield label { display: block; font-size: 12px; font-weight: 600; color: #6b7280; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .3px; }
.dmp-mfield input, .dmp-mfield select { width: 100%; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 13px; font-family: inherit; background: #f9fafb; box-sizing: border-box; transition: border-color .2s; appearance: none; }
.dmp-mfield select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 16px; padding-right: 28px; }
.dmp-mfield input:focus, .dmp-mfield select:focus { outline: none; border-color: #f97316; box-shadow: 0 0 0 2px rgba(249,115,22,.12); background: #fff; }

/* === THANK YOU === */
.dmp-thank-you-wrap { max-width: 600px; margin: 40px auto; padding: 40px 32px; background: #fff; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,.1); text-align: center; }
.dmp-thank-you-icon { font-size: 64px; margin-bottom: 16px; }
.dmp-thank-you-wrap h1 { color: #f97316; font-size: 28px; margin: 0 0 8px; }
.dmp-thank-you-wrap p { color: #64748b; font-size: 16px; line-height: 1.6; }
.dmp-receipt-table { width: 100%; text-align: left; margin: 24px 0; border-collapse: collapse; }
.dmp-receipt-table td { padding: 10px 8px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.dmp-receipt-table td:first-child { color: #6b7280; width: 45%; }
.dmp-receipt-table td:last-child { font-weight: 600; color: #1e293b; }

@keyframes dmp-slide-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .dmp-name-row, .dmp-address-row, .dmp-mrow { grid-template-columns: 1fr; flex-direction: column; }
    .dmp-preset-amounts { gap: 8px; }
    .dmp-preset-btn { padding: 8px 14px; font-size: 14px; }
    .dmp-donation-form { padding: 20px !important; }
    .dmp-submit-btn { font-size: 15px; padding: 12px 20px; }
    .dmp-login-fields { grid-template-columns: 1fr; }
    .dmp-family-header { flex-direction: column; align-items: stretch; }
    .dmp-add-member-btn { width: 100%; justify-content: center; }
    .dmp-gateway-tabs { flex-direction: column; }
    .dmp-phone-dropdown { min-width: 200px; }
}

/* =========================================
   v7 ADDITIONS
   ========================================= */

/* === CHECKBOX / RADIO — CENTER ALIGNMENT FIX === */
.dmp-checkbox-label,
.dmp-radio-label {
    display: flex !important;
    align-items: center !important;  /* center — not flex-start */
    gap: 12px !important;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    background: #f9fafb;
    transition: all .15s;
    line-height: 1.4;
}

.dmp-checkbox-label input[type="checkbox"],
.dmp-radio-label    input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    flex-shrink: 0;
    accent-color: #f97316;
    cursor: pointer;
    /* Remove margin-top: 1px — was causing misalignment */
    margin-top: 0 !important;
    vertical-align: middle;
}

.dmp-checkbox-text,
.dmp-radio-text {
    display: flex;
    align-items: center;
    flex: 1;
    font-size: 14px;
}

/* === PHONE FIELD WITH COUNTRY CODE === */
.dmp-phone-wrap {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    background: #f9fafb;
    transition: border-color .2s, box-shadow .2s;
}
.dmp-phone-wrap:focus-within {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,.12);
    background: #fff;
}
.dmp-phone-code-select {
    border: none !important;
    border-right: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    background: #f3f4f6 !important;
    box-shadow: none !important;
    padding: 8px 6px !important;
    font-size: 13px !important;
    min-width: 110px;
    max-width: 140px;
    cursor: pointer;
    flex-shrink: 0;
    appearance: auto; /* keep native select arrow */
}
.dmp-phone-number-input {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    flex: 1;
    padding: 10px 12px !important;
}

/* === ADDRESS COUNTRY DROPDOWN === */
.dmp-country-select {
    width: 100%;
    margin-top: 8px;
}

/* === PAYMENT GATEWAY SELECTOR === */
.dmp-gateway-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.dmp-gateway-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    font-family: inherit;
    transition: all .15s;
    flex: 1;
    justify-content: center;
    min-width: 120px;
}
.dmp-gateway-btn:hover {
    border-color: #f97316;
    background: #fff7ed;
}
.dmp-gateway-btn.active {
    border-color: #f97316;
    background: #fff7ed;
    color: #92400e;
}
.dmp-gateway-btn img { height: 22px; }
.dmp-gateway-logo { font-size: 18px; }

/* Stripe card element container */
#dmp-stripe-card-element {
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    margin-bottom: 10px;
}
.dmp-stripe-wrap,
.dmp-paypal-wrap { margin-top: 10px; }

/* PayPal buttons container */
#dmp-paypal-button-container { margin-top: 8px; }

@media (max-width: 500px) {
    .dmp-gateway-btn { min-width: 100px; padding: 9px 12px; font-size: 13px; }
    .dmp-phone-code-select { min-width: 90px; font-size: 12px; }
}

/* =========================================
   v7.1 — PHONE FLAG DROPDOWN + ADDRESS FIX
   ========================================= */

/* Phone dial code select — simple, compact */
.dmp-phone-wrap {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: visible !important; /* needed for dropdown to overflow */
    background: #f9fafb;
    transition: border-color .2s, box-shadow .2s;
    position: relative;
}
.dmp-phone-wrap:focus-within {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,.12);
    background: #fff;
}
.dmp-phone-number-input {
    flex: 1;
    border: none !important;
    border-radius: 0 6px 6px 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 10px 12px !important;
    min-width: 0;
}

/* === ADDRESS STACK LAYOUT === */
.dmp-address-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dmp-sublabel {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 4px;
}
.dmp-address-field-full { width: 100%; }
.dmp-address-field-half { width: 50%; }
.dmp-address-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Country select — full width, text not cut off */
.dmp-country-select {
    width: 100%;
    padding: 10px 36px 10px 12px !important;
    font-size: 14px;
    text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    white-space: nowrap;
    overflow: hidden;
}

@media (max-width: 560px) {
    .dmp-address-row-2 { grid-template-columns: 1fr; }
    .dmp-address-field-half { width: 100%; }
    .dmp-phone-dropdown { min-width: 220px; }
}

/* === PHONE FIELD — CLEAN DIAL CODE SELECT === */
.dmp-phone-wrap {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    background: #f9fafb;
    transition: border-color .2s, box-shadow .2s;
}
.dmp-phone-wrap:focus-within {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,.12);
    background: #fff;
}
/* Dial code select — narrow, shows only +91 +1 etc */
.dmp-phone-code-select {
    width: 90px !important;
    min-width: 90px;
    flex-shrink: 0;
    border: none !important;
    border-right: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    background: #f3f4f6 !important;
    box-shadow: none !important;
    padding: 10px 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    cursor: pointer;
    appearance: auto;
    /* Let browser truncate — the option text has full name for accessibility,
       but the select box shows only the selected value which is just "+91" etc */
    text-overflow: ellipsis;
}
.dmp-phone-number-input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 10px 12px !important;
    min-width: 0;
}

/* =========================================
   v8 — FESTIVAL SELECTOR + CALENDAR AMOUNT
   ========================================= */

/* === FESTIVAL SELECTOR === */
.dmp-field-festival .dmp-festival-select {
    width: 100%;
    margin-bottom: 4px;
}

.dmp-festival-options {
    margin-top: 14px;
    border: 1px solid #fde8d0;
    border-radius: 10px;
    padding: 16px;
    background: #fff9f5;
    animation: dmp-slide-down .2s ease;
}

.dmp-festival-opts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.dmp-festival-opt-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: all .15s;
}
.dmp-festival-opt-label:hover { border-color: #f97316; background: #fff7ed; }
.dmp-festival-opt-label:has(input:checked) {
    border-color: #f97316;
    background: #fff7ed;
    box-shadow: 0 0 0 2px rgba(249,115,22,.15);
}

.dmp-festival-opt-label input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    accent-color: #f97316;
    flex-shrink: 0;
    margin: 0;
}

.dmp-festival-opt-text {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.dmp-festival-opt-text strong { font-size: 14px; color: #1e293b; }
.dmp-festival-opt-price {
    font-size: 15px;
    font-weight: 700;
    color: #f97316;
    white-space: nowrap;
}

.dmp-festival-other-amt {
    margin-top: 6px;
    margin-left: 30px;
}

/* === CALENDAR AMOUNT BADGE === */
.dmp-calendar-amount-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 1px solid #f97316;
    border-radius: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.dmp-cal-amt-icon { font-size: 18px; flex-shrink: 0; }
.dmp-cal-amt-text { font-size: 13px; color: #92400e; flex: 1; }
.dmp-cal-amt-price {
    font-size: 18px;
    font-weight: 800;
    color: #f97316;
    white-space: nowrap;
}

/* === FORM 100% WIDTH FIX === */
.dmp-form-wrap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}
.dmp-donation-form {
    width: 100%;
    box-sizing: border-box;
}

/* =========================================
   v9 — AUTH + FESTIVAL + PORTAL
   ========================================= */

/* === AUTH BAR === */
.dmp-auth-bar, .dmp-logged-in-bar {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 13px; color: #64748b; margin-bottom: 12px; flex-wrap: wrap;
}
.dmp-auth-link {
    background: none; border: none; color: #f97316; font-weight: 600;
    cursor: pointer; font-size: 13px; padding: 0; font-family: inherit; text-decoration: underline;
}
.dmp-auth-sep { color: #cbd5e1; }
.dmp-auth-panel {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 20px 24px; margin-bottom: 16px; box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.dmp-auth-title { margin: 0 0 16px; font-size: 16px; font-weight: 700; color: #1e293b; }
.dmp-auth-field { margin-bottom: 12px; }
.dmp-auth-field label { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .4px; }
.dmp-auth-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.dmp-auth-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.dmp-auth-switch { font-size: 12px; color: #64748b; margin: 10px 0 0; }
.dmp-captcha-field { background: #f0fdf4; border: 1px dashed #86efac; border-radius: 8px; padding: 10px 12px; }
.dmp-logout-link { font-size: 12px; color: #9ca3af; text-decoration: none; }
.dmp-logout-link:hover { color: #ef4444; }

/* === FESTIVAL SELECTOR v9 (checkboxes) === */
.dmp-festival-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.dmp-festival-item {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 12px 18px !important;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all .15s;
    margin-bottom: 6px;
}
.dmp-festival-item input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    margin-right: 14px !important;
    accent-color: #f97316;
    flex-shrink: 0 !important;
}
.dmp-festival-item:hover { border-color: #f97316; background: #fff7ed; }
.dmp-festival-item input[type="checkbox"] {
    width: 16px !important; height: 16px !important; min-width: 16px;
    accent-color: #f97316; flex-shrink: 0; margin: 0;
}
.dmp-festival-item:has(input:checked) { border-color: #f97316; background: #fff7ed; font-weight: 600; }

/* Festival option panels */
.dmp-festival-options-container { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.dmp-fest-opt-panel {
    border: 1px solid #fde8d0; border-radius: 10px; overflow: hidden;
    animation: dmp-slide-down .2s ease;
}
.dmp-fest-opt-panel-header {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    padding: 10px 14px;
}
.dmp-fest-opt-panel-title { color: #fff; font-weight: 700; font-size: 14px; }
.dmp-fest-opts-list { padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.dmp-festival-opt-item {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 8px;
    background: #fff; cursor: pointer; transition: all .15s;
}
.dmp-festival-opt-item:hover { border-color: #f97316; background: #fff7ed; }
.dmp-festival-opt-item:has(input:checked) { border-color: #f97316; background: #fff7ed; box-shadow: 0 0 0 2px rgba(249,115,22,.12); }
.dmp-festival-opt-item input[type="checkbox"] { width: 17px !important; height: 17px !important; accent-color: #f97316; flex-shrink: 0; }
.dmp-festival-opt-text { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.dmp-festival-opt-price { font-weight: 700; color: #f97316; font-size: 15px; white-space: nowrap; }
.dmp-festival-other-wrap { margin: 6px 0 4px 30px; }

/* === CALENDAR AMOUNT BADGE === */
.dmp-calendar-amount-badge {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    background: linear-gradient(135deg,#fff7ed,#fef3c7);
    border: 1px solid #f97316; border-radius: 8px; margin-bottom: 10px; flex-wrap: wrap;
}
.dmp-cal-amt-icon { font-size: 18px; }
.dmp-cal-amt-text { font-size: 13px; color: #92400e; flex: 1; }
.dmp-cal-amt-price { font-size: 18px; font-weight: 800; color: #f97316; }

/* === DONOR PORTAL === */
.dmp-portal { max-width: 800px; margin: 0 auto; font-family: inherit; }
.dmp-portal-header { display: flex; gap: 20px; align-items: center; padding: 24px; background: linear-gradient(135deg,#fff7ed,#fef3c7); border: 1px solid #fde8d0; border-radius: 12px; margin-bottom: 20px; }
.dmp-avatar { border-radius: 50%; border: 3px solid #f97316; }
.dmp-portal-name { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: #1e293b; }
.dmp-portal-email { margin: 0 0 12px; color: #6b7280; font-size: 14px; }
.dmp-portal-stats { display: flex; gap: 20px; }
.dmp-portal-stat { text-align: center; }
.dmp-portal-stat strong { display: block; font-size: 20px; font-weight: 800; color: #f97316; }
.dmp-portal-stat span { font-size: 12px; color: #6b7280; }
.dmp-portal-tabs { display: flex; gap: 0; border-bottom: 2px solid #e5e7eb; margin-bottom: 20px; }
.dmp-portal-tab { padding: 10px 20px; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; font-size: 14px; font-weight: 600; color: #6b7280; cursor: pointer; font-family: inherit; transition: all .15s; }
.dmp-portal-tab.active { color: #f97316; border-bottom-color: #f97316; }
.dmp-portal-field { margin-bottom: 14px; }
.dmp-portal-field label { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .4px; }
.dmp-portal-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.dmp-portal-msg { padding: 8px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.dmp-portal-donation-card { display: block; border: 1.5px solid #e5e7eb; border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.dmp-portal-donation-card summary { list-style: none; cursor: pointer; }
.dmp-portal-donation-card summary::-webkit-details-marker { display: none; }
.dmp-pdc-amount { font-size: 20px; font-weight: 800; color: #f97316; white-space: nowrap; }
.dmp-pdc-date { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.dmp-pdc-right { flex: 1; }
.dmp-pdc-items { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.dmp-pdc-item { background: #f0fdf4; color: #15803d; font-size: 12px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.dmp-pdc-id { font-size: 11px; color: #9ca3af; font-family: monospace; }
.dmp-pdc-paid   { color: #16a34a; font-weight: 700; font-size: 12px; }
.dmp-pdc-pending{ color: #d97706; font-weight: 700; font-size: 12px; }
.dmp-portal-empty { text-align: center; padding: 40px; color: #6b7280; }

@keyframes dmp-slide-down { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:none} }
@media(max-width:560px) {
    .dmp-auth-row-2 { grid-template-columns: 1fr; }
    .dmp-portal-field-row { grid-template-columns: 1fr; }
    .dmp-festival-list { grid-template-columns: 1fr; }
    .dmp-portal-header { flex-direction: column; text-align: center; }
}

/* =========================================
   v10 — CONSISTENT INPUTS + FESTIVAL FIX
   ========================================= */

/* === CONSISTENT AUTH FORM INPUTS === */
.dmp-auth-panel input[type="text"],
.dmp-auth-panel input[type="email"],
.dmp-auth-panel input[type="password"],
.dmp-auth-panel input[type="number"],
.dmp-auth-panel input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #f9fafb;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    font-family: inherit;
}
.dmp-auth-panel input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,.1);
    background: #fff;
}
.dmp-auth-panel input[type="number"].dmp-captcha-field {
    max-width: 120px;
}
.dmp-login-error,
.dmp-signup-error {
    font-size: 13px;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 4px;
}

/* === FESTIVAL OPTION PANEL — text alignment fix === */
.dmp-fest-opt-panel-title { font-size: 13px; font-weight: 700; }
.dmp-festival-opt-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 8px;
}
.dmp-festival-opt-name { font-size: 13px; font-weight: 500; color: #1e293b; }
.dmp-festival-opt-price { font-size: 14px; font-weight: 700; color: #f97316; white-space: nowrap; }

/* Fix festival opt item alignment */
.dmp-festival-opt-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
}
.dmp-festival-opt-item input[type="checkbox"] {
    flex-shrink: 0;
    margin: 0;
}

/* Fix order summary to show festival items cleanly */
.dmp-order-item-name { font-size: 13px; color: #374151; }
.dmp-order-item-amount { font-size: 13px; font-weight: 700; color: #f97316; white-space: nowrap; }

/* =========================================
   v11b FIXES — Festival Accordion + Checkbox alignment
   ========================================= */

/* === FESTIVAL ACCORDION === */
.dmp-festival-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.dmp-festival-item {
    display: flex;
    align-items: center;   /* single line - checkbox + text side by side */
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 4px;
    background: #f9fafb;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all .15s;
    user-select: none;
}
.dmp-festival-item:hover        { border-color: #f97316; background: #fff7ed; }
.dmp-festival-item.dmp-fest-active { border-color: #f97316; background: #fff7ed; font-weight: 600; }

.dmp-festival-item input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px;
    margin: 0 !important;
    flex-shrink: 0;
    accent-color: #f97316;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    top: 0;               /* reset any offset */
}

.dmp-festival-item span {
    display: inline;
    line-height: 1.3;
    vertical-align: middle;
}

/* Accordion panel — sits between festival rows */
.dmp-fest-accordion-panel {
    border: 1px solid #fde8d0;
    border-radius: 0 0 10px 10px;
    margin-bottom: 8px;
    margin-top: -5px;
    background: #fff;
    overflow: hidden;
}
.dmp-fest-acc-header {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
}
.dmp-fest-acc-opts {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Festival option items — checkbox + name + price on one line */
.dmp-festival-opt-item {
    display: flex;
    align-items: center;   /* single line */
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all .15s;
}
.dmp-festival-opt-item:hover { border-color: #f97316; background: #fff7ed; }
.dmp-festival-opt-item:has(input:checked) {
    border-color: #f97316;
    background: #fff7ed;
    box-shadow: 0 0 0 2px rgba(249,115,22,.12);
}
.dmp-festival-opt-item input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    flex-shrink: 0;
    margin: 0 !important;
    accent-color: #f97316;
    cursor: pointer;
}
.dmp-festival-opt-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1;        /* keep on same line */
}
.dmp-festival-opt-price {
    font-size: 14px;
    font-weight: 700;
    color: #f97316;
    white-space: nowrap;
    flex-shrink: 0;
}

/* === GENERAL CHECKBOX/RADIO FIX — same line === */
.dmp-checkbox-label,
.dmp-radio-label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    background: #f9fafb;
    transition: all .15s;
    line-height: 1;
}
.dmp-checkbox-label input[type="checkbox"],
.dmp-radio-label    input[type="radio"] {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    flex-shrink: 0;
    margin: 0 !important;
    accent-color: #f97316;
    cursor: pointer;
    position: relative;
    top: 0;
}
.dmp-checkbox-text,
.dmp-radio-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

/* Remove the bottom-margin gap between festival item and its accordion panel */
.dmp-festival-item + .dmp-fest-accordion-panel {
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-top: -4px;
}

/* === DONOR PORTAL — Expandable Donation Cards === */
.dmp-portal-donation-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.dmp-portal-donation-card summary::-webkit-details-marker { display: none; }
.dmp-pdc-summary-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background .15s;
}
.dmp-pdc-summary-row:hover { background: #f9fafb; }
.dmp-portal-donation-card[open] .dmp-pdc-summary-row { background: #fff7ed; }
.dmp-pdc-detail {
    display: block;
    width: 100%;
    padding: 16px 20px;
    border-top: 1px solid #fde8d0;
    background: #fffbf7;
    box-sizing: border-box;
}
.dmp-pdc-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 0;
}
.dmp-pdc-detail-label { font-size: 11px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 3px; }
.dmp-pdc-detail-value { font-size: 13px; color: #374151; font-weight: 500; }
@media(max-width:560px) { .dmp-pdc-detail-grid { grid-template-columns: 1fr; } }

/* =========================================
   FIELD SUB-CALENDAR (calendar inside checkbox/radio/etc)
   ========================================= */
.dmp-field-calendar-sub {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #fde8d0;
    border-radius: 8px;
    background: #fffbf7;
}
.dmp-cal-sub-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #fff7ed;
    border: 1px solid #f97316;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #92400e;
}
.dmp-cal-sub-badge strong { color: #f97316; font-size: 15px; }

/* Fix clear button - make it more visible */
.dmp-clear-date {
    background: none !important;
    border: none !important;
    cursor: pointer;
    color: #9ca3af;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
    transition: color .15s;
    flex-shrink: 0;
}
.dmp-clear-date:hover { color: #ef4444 !important; }

/* Calendar amount badge - show it's informational not a selected item */
.dmp-calendar-amount-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px dashed #f97316;
    border-radius: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    font-size: 13px;
}
.dmp-cal-amt-text { color: #6b7280; }
.dmp-cal-amt-price { font-weight: 700; color: #f97316; }

/* =========================================
   OPTION LABELS — Checkbox, Radio, Select, Festival
   Single consistent style across ALL option types
   ========================================= */

/* Universal option row */
.dmp-option-label,
.dmp-checkbox-label,
.dmp-radio-label,
.dmp-festival-item,
.dmp-festival-opt-item {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 11px 16px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #f9fafb !important;
    cursor: pointer !important;
    transition: border-color .15s, background .15s, box-shadow .15s !important;
    margin-bottom: 6px !important;
    box-sizing: border-box !important;
}
.dmp-option-label:hover,
.dmp-checkbox-label:hover,
.dmp-radio-label:hover,
.dmp-festival-item:hover,
.dmp-festival-opt-item:hover {
    border-color: #f97316 !important;
    background: #fff7ed !important;
}
/* Checked state */
.dmp-option-label:has(input:checked),
.dmp-checkbox-label:has(input:checked),
.dmp-radio-label:has(input:checked),
.dmp-festival-item:has(input:checked),
.dmp-festival-opt-item:has(input:checked) {
    border-color: #f97316 !important;
    background: #fff7ed !important;
    box-shadow: 0 0 0 3px rgba(249,115,22,.08) !important;
}

/* Native checkbox/radio input inside any option row */
.dmp-option-label input[type="checkbox"],
.dmp-option-label input[type="radio"],
.dmp-checkbox-label input[type="checkbox"],
.dmp-radio-label input[type="radio"],
.dmp-festival-item input[type="checkbox"],
.dmp-festival-opt-item input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    margin-right: 14px !important;
    accent-color: #f97316 !important;
    cursor: pointer !important;
    vertical-align: middle !important;
}

/* Option text label */
.dmp-option-text,
.dmp-checkbox-text,
.dmp-radio-text {
    flex: 1 !important;
    font-size: 14px !important;
    color: #1e293b !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    padding-right: 8px !important;
}

/* Amount badge — right side */
.dmp-option-amount {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #f97316 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    background: #fff7ed !important;
    padding: 3px 12px !important;
    border-radius: 20px !important;
    border: 1px solid #fed7aa !important;
}

/* Groups — vertical stack with spacing */
.dmp-checkbox-group,
.dmp-radio-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

/* Select dropdown — full width */
.dmp-select-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #f9fafb;
    color: #1e293b;
    cursor: pointer;
    appearance: auto;
}
.dmp-select-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,.10);
}

/* =========================================
   DONOR PORTAL — full-width expandable cards
   ========================================= */
.dmp-portal-donation-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}
.dmp-portal-donation-card summary::-webkit-details-marker,
.dmp-portal-donation-card summary::marker { display: none; }
.dmp-pdc-summary-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background .15s;
    flex-wrap: wrap;
}
.dmp-pdc-summary-row:hover { background: #f9fafb; }
.dmp-portal-donation-card[open] > summary .dmp-pdc-summary-row,
.dmp-portal-donation-card[open] .dmp-pdc-summary-row { background: #fff7ed; }
.dmp-pdc-left { display: flex; flex-direction: column; gap: 2px; min-width: 90px; }
.dmp-pdc-amount { font-size: 20px; font-weight: 800; color: #1e293b; }
.dmp-pdc-date { font-size: 12px; color: #9ca3af; }
.dmp-pdc-right { flex: 1; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.dmp-pdc-item {
    background: #f0fdf4; color: #15803d;
    font-size: 12px; padding: 3px 9px;
    border-radius: 20px; font-weight: 600;
}
.dmp-pdc-status { font-size: 12px; font-weight: 700; flex-shrink: 0; }
.dmp-pdc-paid   { color: #16a34a; }
.dmp-pdc-pending{ color: #d97706; }
.dmp-pdc-chevron {
    font-size: 11px; color: #9ca3af;
    transition: transform .2s; flex-shrink: 0;
}
.dmp-portal-donation-card[open] .dmp-pdc-chevron { transform: rotate(180deg); }

/* Detail panel — full width below summary, not to the right */
.dmp-pdc-detail {
    padding: 20px;
    background: #fafafa;
    border-top: 1px solid #fde8d0;
    width: 100%;
    box-sizing: border-box;
}
.dmp-pdc-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}
@media(max-width:560px) { .dmp-pdc-meta-grid { grid-template-columns: 1fr; } }
.dmp-pdc-meta-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #9ca3af; margin-bottom: 3px; }
.dmp-pdc-meta-value { font-size: 13px; color: #374151; font-weight: 500; }
.dmp-pdc-breakdown-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #6b7280; margin-bottom: 10px; }
.dmp-pdc-breakdown-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 8px 0; border-bottom: 1px solid #f3f4f6; gap: 12px;
}
.dmp-pdc-breakdown-row:last-of-type { border-bottom: none; }
.dmp-pdc-breakdown-name { font-size: 13px; color: #374151; }
.dmp-pdc-breakdown-date { font-size: 11px; color: #9ca3af; display: block; margin-top: 2px; }
.dmp-pdc-breakdown-amt  { font-size: 14px; font-weight: 700; color: #1e293b; white-space: nowrap; }
.dmp-pdc-total-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 12px; padding-top: 12px; border-top: 2px solid #e5e7eb;
}
.dmp-pdc-total-label { font-size: 14px; font-weight: 700; color: #1e293b; }
.dmp-pdc-total-amount { font-size: 18px; font-weight: 800; color: #1e293b; }

/* =========================================
   MULTI-STEP FORM
   ========================================= */
.dmp-step-progress { margin-bottom: 24px; }
.dmp-step-bar { height: 6px; background: #f3f4f6; border-radius: 3px; margin-bottom: 10px; overflow: hidden; }
.dmp-step-bar-fill { height: 100%; background: linear-gradient(90deg,#f97316,#ea580c); border-radius: 3px; transition: width .3s ease; }
.dmp-step-labels { display: flex; gap: 6px; flex-wrap: wrap; }
.dmp-step-lbl { font-size: 11px; padding: 3px 10px; border-radius: 20px; background: #f3f4f6; color: #9ca3af; font-weight: 600; transition: all .2s; }
.dmp-step-lbl.active { background: #fff7ed; color: #f97316; }
.dmp-step-lbl.done { background: #f0fdf4; color: #16a34a; }
.dmp-step-nav { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; }
.dmp-step-prev,
.dmp-step-next {
    background: transparent !important;
    border: 2px solid #000 !important;
    color: #000 !important;
    font-weight: 600;
    padding: 12px 32px !important;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s;
}
.dmp-step-prev:hover,
.dmp-step-next:hover {
    background: #7A0000 !important;
    border-color: #7A0000 !important;
    color: #fff !important;
}

/* Option sub-fields */
.dmp-option-subfields, .dmp-select-subfields-inner { margin-top: 6px; }

/* ── OPTION WRAP + SUB-FIELDS ────────────────────────────── */
.dmp-option-wrap {
    margin-bottom: 6px;
}
.dmp-option-subfields {
    display: none;           /* shown by JS on option select */
    padding: 10px 14px 10px 30px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-top: -2px;
}
.dmp-option-subfields label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 3px;
}
.dmp-option-subfields input[type="text"],
.dmp-option-subfields input[type="number"],
.dmp-option-subfields textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.dmp-option-subfields textarea {
    resize: vertical;
    min-height: 60px;
}
.dmp-option-wrap .dmp-option-label {
    border-radius: 8px;
    margin-bottom: 0;
}
.dmp-option-wrap .dmp-option-label:has(input:checked) {
    border-radius: 8px 8px 0 0;
}

/* Consent field styling */
.dmp-field-consent {
    margin-bottom: 12px;
}
.dmp-field-consent a {
    color: #f97316 !important;
    text-decoration: underline !important;
    pointer-events: all !important;
    cursor: pointer !important;
    z-index: 999;
    position: relative;
}

/* Locked email field for logged-in donors (email is the unique identifier) */
.dmp-email-locked {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
}

/* =========================================================
   v2.5.3 — MOBILE FIELD OPTIMIZATION  (CSS-only, display layer)
   No markup / PHP / payment / calendar changes. Phone-width only;
   desktop styling is untouched.
   ========================================================= */
@media (max-width: 600px) {

    /* iOS Safari auto-zooms on any focused input under 16px and never zooms
       back out — the cause of the "form lurches when I tap a field" feel.
       Lifting fields to 16px on phones stops it; desktop keeps its 15px look.
       Vertical padding raised to give ~44px thumb-friendly tap targets. */
    .dmp-field input[type="text"],
    .dmp-field input[type="email"],
    .dmp-field input[type="tel"],
    .dmp-field input[type="number"],
    .dmp-field input[type="date"],
    .dmp-field select,
    .dmp-field textarea {
        font-size: 16px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    /* Bigger, easier-to-hit primary actions */
    .dmp-submit-btn     { padding: 14px 20px; font-size: 16px; }
    .dmp-preset-btn     { padding: 11px 16px; font-size: 15px; min-height: 44px; }
    .dmp-add-member-btn { min-height: 44px; }

    /* Keep overlays from spilling past the screen edge on narrow phones */
    .ui-datepicker {
        max-width: min(320px, 92vw) !important;
        box-sizing: border-box;
    }
    .dmp-phone-dropdown { max-width: 92vw; }
}

/* =========================================================
   v2.5.13 — MANUAL-ENTRY checkbox/radio: CSS-drawn state.
   The native control's tick fails to repaint inside the admin's
   composited layers ("checks one click behind"). Drawing the
   state ourselves, driven by the .dmp-on class toggled in JS,
   repaints reliably on every click. Scoped to #dmp-me-form-fields
   so the public form and other admin checkboxes are untouched.
   ========================================================= */
#dmp-me-form-fields input[type="checkbox"],
#dmp-me-form-fields input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; height: 18px; min-width: 18px; min-height: 18px;
    margin: 0; padding: 0;
    border: 2px solid #cbd5e1;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    border-radius: 4px;
    box-sizing: border-box;
    vertical-align: middle;
    cursor: pointer;
    flex-shrink: 0;
    transition: none;
}
#dmp-me-form-fields input[type="radio"] { border-radius: 50%; }
#dmp-me-form-fields input[type="checkbox"].dmp-on,
#dmp-me-form-fields input[type="checkbox"]:checked {
    background-color: #f97316;
    border-color: #f97316;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
}
#dmp-me-form-fields input[type="radio"].dmp-on,
#dmp-me-form-fields input[type="radio"]:checked {
    background-color: #f97316;
    border-color: #f97316;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3.5' fill='%23ffffff'/%3E%3C/svg%3E");
}
