/* =========================================
   DONATION FORM — Hela Malmö
   =========================================

   Purple multi-step wizard for private and
   company donation flows. Runs on top of
   home-section--purple (var --helamalmo_purple).

   All class names prefixed with "donation-".
   ========================================= */

.donation-wrapper {
    max-width: 540px;
    margin: 0 auto;
    padding: 48px 20px 72px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.14s ease;
}

/* -----------------------------------------
   STEP TRANSITION ANIMATION
   ----------------------------------------- */

@keyframes donation-step-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -----------------------------------------
   CARDS
   ----------------------------------------- */

.donation-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 28px 24px 32px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.donation-card--entering {
    animation: donation-step-in 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.donation-step-indicator {
    font-family: var(--font-main);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.donation-card-title {
    font-family: var(--font-condensed);
    font-size: 1.15rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 0.08em;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
}

.donation-intro-body {
    font-family: var(--font-main);
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.95);
}

.donation-intro-body p { margin: 0 0 10px; }
.donation-intro-body p:last-child { margin-bottom: 0; }

/* -----------------------------------------
   STEP 1 — TYPE SELECTION
   ----------------------------------------- */

.donation-type-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.donation-type-btn {
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: transparent;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 14px 20px;
    font-family: var(--font-main, sans-serif);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    text-align: center;
}

.donation-type-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.donation-type-btn--active {
    background: #ffffff !important;
    color: var(--helamalmo_purple, #532c7d) !important;
    border-color: #ffffff !important;
    font-weight: 900 !important;
}

.donation-type-btn--full {
    grid-column: 1 / -1;
    justify-self: center;
    padding-left: 48px;
    padding-right: 48px;
}

/* -----------------------------------------
   STEP 2 — AMOUNT
   ----------------------------------------- */

.donation-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.donation-amount-btn {
    border: 2px solid rgba(255, 255, 255, 0.65);
    background: transparent;
    color: #fff;
    border-radius: 50px;
    padding: 12px 8px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    text-align: center;
}

.donation-amount-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.donation-amount-btn--active {
    background: #fff;
    color: var(--helamalmo_purple);
    border-color: #fff;
}

.donation-custom-btn {
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.65);
    background: transparent;
    color: #fff;
    border-radius: 50px;
    padding: 12px 16px;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.02em;
    transition: background 0.18s ease, color 0.18s ease;
}

.donation-custom-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.donation-custom-btn--active {
    background: #fff;
    color: var(--helamalmo_purple);
    border-color: #fff;
}

/* -----------------------------------------
   FORM FIELDS
   ----------------------------------------- */

.donation-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.donation-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.donation-field--full {
    grid-column: 1 / -1;
}

.donation-label {
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
}

.donation-input {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    padding: 10px 12px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
    -webkit-appearance: none;
}

.donation-input::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.donation-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
}

/* phone row */
.donation-phone-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.donation-input--select {
    flex: 0 0 auto;
    width: auto;
    min-width: 68px;
    cursor: pointer;
    /* Style the dropdown arrow in white */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.6)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.donation-input--phone {
    flex: 1;
}

/* Dropdown options need dark bg on some browsers */
.donation-input--select option {
    background: var(--helamalmo_purple);
    color: #fff;
}

/* -----------------------------------------
   RADIO ROWS (payment methods / company amounts)
   ----------------------------------------- */

.donation-radio-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.donation-radio-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.88rem;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: border-color 0.15s ease, background 0.15s ease;
    line-height: 1.4;
}

.donation-radio-row:hover {
    border-color: rgba(255, 255, 255, 0.65);
}

.donation-radio-row--active {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.donation-radio-indicator {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease;
}

.donation-radio-row--active .donation-radio-indicator {
    border-color: #fff;
    background: #fff;
    box-shadow: inset 0 0 0 4px var(--helamalmo_purple);
}

/* -----------------------------------------
   PAYMENT STEP EXTRAS
   ----------------------------------------- */

.donation-gift-summary {
    font-family: var(--font-main);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin: 0;
}

.donation-gift-summary strong {
    color: #fff;
    font-size: 1.1rem;
}

.donation-privacy-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 16px;
    font-family: var(--font-main);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.55;
}

.donation-privacy-box strong {
    display: block;
    margin-bottom: 10px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: #fff;
    text-transform: uppercase;
}

.donation-privacy-box p { margin: 0 0 10px; }
.donation-privacy-box p:last-child { margin-bottom: 0; }

.donation-privacy-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

/* -----------------------------------------
   BUTTONS — SUBMIT & NAV
   ----------------------------------------- */

.donation-submit-btn {
    width: 100%;
    border: 2.5px solid #fff;
    background: transparent;
    color: #fff;
    border-radius: 50px;
    padding: 14px;
    font-family: var(--font-condensed);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
}

.donation-submit-btn:hover {
    background: #fff;
    color: var(--helamalmo_purple);
}

.donation-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}

.donation-back-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-main);
    font-size: 0.88rem;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.15s ease;
}

.donation-back-btn:hover {
    color: #fff;
}

.donation-next-btn {
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: transparent;
    color: #fff;
    border-radius: 50px;
    padding: 10px 32px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
    transition: background 0.18s ease, color 0.18s ease;
}

.donation-next-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* -----------------------------------------
   ERROR BOX
   ----------------------------------------- */

.donation-error-box {
    border: 2px solid rgba(255, 120, 120, 0.8);
    border-radius: 8px;
    background: rgba(200, 50, 50, 0.15);
    padding: 14px 16px;
    font-family: var(--font-main);
    font-size: 0.84rem;
    color: rgba(255, 200, 200, 0.95);
    line-height: 1.5;
}

.donation-error-box strong {
    display: block;
    margin-bottom: 8px;
    color: #ffaaaa;
    font-size: 0.86rem;
    text-align: center;
}

.donation-error-box ul {
    margin: 0;
    padding-left: 18px;
}

.donation-error-box li { margin-bottom: 3px; }

/* -----------------------------------------
   RESPONSIVE
   ----------------------------------------- */

@media (max-width: 600px) {
    .donation-form-grid {
        grid-template-columns: 1fr;
    }

    .donation-type-btns {
        grid-template-columns: 1fr;
    }

    .donation-type-btn--full {
        padding-left: 16px;
        padding-right: 16px;
    }

    .donation-amount-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .donation-wrapper {
        padding: 32px 16px 56px;
    }
}

/* -----------------------------------------
   DONATION NOTICE SECTION
   ----------------------------------------- */

.donation-notice-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px 40px;
    color: var(--helamalmo_purple);
}

.donation-notice-title {
    font-family: var(--font-main);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--helamalmo_purple);
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.3;
}

.donation-notice-text {
    font-family: var(--font-main);
    font-size: 1.1rem;
    line-height: 1.65;
    margin-bottom: 20px;
    color: var(--helamalmo_purple);
}

.donation-notice-text:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .donation-notice-container {
        padding: 36px 16px 28px;
    }

    .donation-notice-title {
        font-size: 1.4rem;
        margin-bottom: 18px;
    }

    .donation-notice-text {
        font-size: 1rem;
        margin-bottom: 16px;
    }
}
