/* HLX Donate - Frontend Form Styles */

/* Inter font — bundled locally (SIL Open Font License 1.1), no external requests */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Card wrapper — sits inside the theme's normal layout (header/footer/sidebar stay visible) */
.hlx-donate-wrapper {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #191919;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 30px;
    color: #ebebeb;
    box-sizing: border-box;
    border-radius: 16px 16px 0 0;
}

.hlx-donate-form-wrap {
    width: 100%;
    max-width: 580px;
}

.hlx-donate-form-wrap h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.hlx-donate-form-wrap .hlx-donate-sub {
    font-size: 12px;
    color: #777;
    margin-bottom: 24px;
}

/* Row */
.hlx-donate-frow {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a2a;
    transition: border-color 0.15s;
}

.hlx-donate-frow:hover {
    border-color: #3a3a3a;
}

.hlx-donate-frow.focused {
    border-color: #528bff;
}

.hlx-donate-frow-label {
    font-size: 12px;
    font-weight: 500;
    color: #888;
    min-width: 100px;
    flex-shrink: 0;
}

.hlx-donate-frow-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    color: #ebebeb;
    background: transparent;
    text-align: right;
    padding: 0;
}

.hlx-donate-frow-input::placeholder {
    color: #4a4a4a;
}

/* Select */
.hlx-donate-frow-sel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #4a4a4a;
    user-select: none;
    position: relative;
}

.hlx-donate-frow-sel.has-val {
    color: #ebebeb;
}

.hlx-donate-frow-sel .hlx-donate-arr {
    font-size: 8px;
    color: #555;
}

.hlx-donate-frow-dd {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 99;
    min-width: 140px;
    overflow: hidden;
}

.hlx-donate-frow-dd.show {
    display: block;
}

.hlx-donate-frow-dd-item {
    padding: 9px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.1s;
    color: #ccc;
}

.hlx-donate-frow-dd-item:hover {
    background: #2f2f2f;
}

.hlx-donate-frow-dd-item.active {
    color: #528bff;
    font-weight: 600;
}

/* Amount pills */
.hlx-donate-amt-wrap {
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
}

.hlx-donate-amt-wrap .hlx-donate-frow-label {
    margin-bottom: 8px;
    display: block;
}

.hlx-donate-amt-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.hlx-donate-apill {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #333;
    border-radius: 6px;
    background: transparent;
    color: #999;
    cursor: pointer;
    transition: all 0.15s;
}

.hlx-donate-apill:hover {
    border-color: #528bff;
    color: #528bff;
}

.hlx-donate-apill.active {
    border-color: #528bff;
    background: #528bff;
    color: #fff;
}

/* Submit */
.hlx-donate-sub-btn {
    width: 100%;
    padding: 12px;
    margin-top: 22px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 7px;
    background: #528bff;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.hlx-donate-sub-btn:hover {
    background: #4070e0;
}

/* Trust line with icons */
.hlx-donate-form-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #2a2a2a;
    flex-wrap: wrap;
}

.hlx-donate-form-trust-item {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 500;
    color: #555;
}

.hlx-donate-form-trust-item svg {
    width: 11px;
    height: 11px;
    stroke: #555;
    flex-shrink: 0;
}

.hlx-donate-form-ft {
    text-align: center;
    margin-top: 12px;
    font-size: 10px;
    color: #444;
}

.hlx-donate-form-ft a {
    color: #555;
    text-decoration: none;
}

.hlx-donate-form-ft a:hover {
    color: #528bff;
}

@media (max-width: 440px) {
    .hlx-donate-frow-label {
        min-width: 80px;
    }

    .hlx-donate-amt-pills {
        gap: 4px;
    }

    .hlx-donate-apill {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* Page Container — the card itself, sits inline within the theme's normal content flow */
.hlx-donate-page-container {
    width: 100%;
    max-width: 640px;
    margin: 32px auto;
    background: #191919;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 480px) {
    .hlx-donate-page-container {
        margin: 16px auto;
        border-radius: 12px;
    }
}

/* Social Sharing */
.hlx-donate-social-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
}

.hlx-donate-social-label {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.hlx-donate-social-icons {
    display: flex;
    gap: 8px;
}

.hlx-donate-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.7;
}

.hlx-donate-social-icon:hover {
    transform: scale(1.15);
    opacity: 1;
}

.hlx-donate-social-icon svg {
    width: 16px;
    height: 16px;
}

.hlx-donate-social-whatsapp {
    color: #25d366;
}

.hlx-donate-social-facebook {
    color: #1877f2;
}

.hlx-donate-social-twitter {
    color: #fff;
}

.hlx-donate-social-linkedin {
    color: #0a66c2;
}

/* Section Title */
.hlx-donate-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 24px;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Funds Section */
.hlx-donate-funds-toggle {
    margin-top: 16px;
    position: relative;
}

.hlx-donate-funds-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #666;
    font-size: 11px;
    cursor: pointer;
    padding: 4px 0;
    font-family: 'Inter', -apple-system, sans-serif;
    transition: color 0.2s;
}

.hlx-donate-funds-btn:hover {
    color: #528bff;
}

.hlx-donate-funds-btn svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
}

.hlx-donate-funds-panel {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.hlx-donate-funds-panel.open {
    display: block;
}

.hlx-donate-funds-panel-title {
    font-size: 10px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.hlx-donate-fund-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-family: 'Inter', -apple-system, sans-serif;
}

.hlx-donate-fund-row+.hlx-donate-fund-row {
    border-top: 1px solid #282828;
}

.hlx-donate-fund-row-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hlx-donate-fund-row-icon svg {
    width: 16px;
    height: 16px;
    stroke: #528bff;
    fill: none;
}

.hlx-donate-fund-row-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 2px;
}

.hlx-donate-fund-row-label {
    font-size: 12px;
    color: #aaa;
    flex: 1;
}

.hlx-donate-fund-row-pct {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    min-width: 35px;
    text-align: right;
}

.hlx-donate-fund-row-bar {
    width: 60px;
    height: 4px;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
}

.hlx-donate-fund-row-bar div {
    height: 100%;
    background: linear-gradient(90deg, #528bff, #7aa2ff);
    border-radius: 4px;
}

.hlx-donate-fund-row-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-radius: 6px;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    transition: background 0.15s;
}

.hlx-donate-fund-row-link:hover {
    background: #232323;
}

.hlx-donate-fund-row-link:hover .hlx-donate-fund-row-label {
    color: #ebebeb;
}

/* FAQ Widget — collapsed by default, toggled open like the funds panel */
.hlx-donate-faq-widget {
    width: 100%;
    padding: 0 40px;
    background: #191919;
    border-top: 1px solid #2a2a2a;
}

.hlx-donate-faq-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    background: none;
    border: none;
    color: #888;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 14px 0;
    font-family: 'Inter', -apple-system, sans-serif;
    transition: color 0.2s;
}

.hlx-donate-faq-toggle-btn:hover {
    color: #ccc;
}

.hlx-donate-faq-toggle-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.hlx-donate-faq-toggle-arr {
    margin-left: auto;
    font-size: 9px;
    transition: transform 0.2s;
}

.hlx-donate-faq-toggle-btn.open .hlx-donate-faq-toggle-arr {
    transform: rotate(180deg);
}

.hlx-donate-faq-list {
    display: none;
    padding-bottom: 10px;
}

.hlx-donate-faq-list.open {
    display: block;
}

.hlx-donate-faq-item {
    border-bottom: 1px solid #252525;
}

.hlx-donate-faq-item:last-child {
    border-bottom: none;
}

.hlx-donate-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    font-size: 11px;
    color: #888;
    font-family: 'Inter', -apple-system, sans-serif;
    user-select: none;
    transition: color 0.15s;
}

.hlx-donate-faq-q:hover {
    color: #ccc;
}

.hlx-donate-faq-plus {
    font-size: 14px;
    color: #555;
    font-weight: 300;
    transition: transform 0.2s;
}

.hlx-donate-faq-item.open .hlx-donate-faq-plus {
    transform: rotate(45deg);
}

.hlx-donate-faq-a {
    display: none;
    padding: 0 0 8px;
}

.hlx-donate-faq-item.open .hlx-donate-faq-a {
    display: block;
}

.hlx-donate-faq-a p {
    margin: 0;
    font-size: 10px;
    color: #666;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Contact Support Line */
.hlx-donate-contact-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 24px;
    background: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    font-size: 12px;
    color: #666;
    font-family: 'Inter', -apple-system, sans-serif;
    width: 100%;
}

.hlx-donate-contact-line svg {
    stroke: #666;
    flex-shrink: 0;
}

.hlx-donate-contact-line a {
    color: #528bff;
    text-decoration: none;
}

.hlx-donate-contact-line a:hover {
    text-decoration: underline;
}