/* Donation Stepper Styles - Matching Theme */

/* Main donation page */
.donate-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Donation Card */
.donation-card {
    background: var(--white-color);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--th-border-color);
}

@media (max-width: 768px) {
    .donation-card {
        padding: 1.5rem;
    }
}

/* Stepper Progress */
.donation-stepper {
    position: relative;
    margin-bottom: 3rem;
}

.stepper-progress {
    position: relative;
    height: 4px;
    background: var(--gray-color);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.stepper-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--theme-color), var(--smoke-color));
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s ease;
}

.stepper-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    text-align: center;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white-color);
    border: 3px solid var(--gray-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: var(--title-font);
    color: var(--body-color);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.stepper-step.active .step-circle {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(0, 94, 180, 0.3);
}

.stepper-step.completed .step-circle {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--white-color);
}

.stepper-step.completed .step-circle::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    position: absolute;
}

.step-label {
    font-size: 0.9rem;
    color: var(--body-color);
    font-weight: 500;
    font-family: var(--body-font);
}

.stepper-step.active .step-label {
    color: var(--theme-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.75rem;
    }
}

/* Step Content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-family: var(--title-font);
    color: var(--title-color);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

/* Donation Type Cards */
.donation-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.donation-type-card {
    position: relative;
    cursor: pointer;
}

.donation-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.donation-type-card .card-content {
    background: var(--white-color);
    border: 2px solid var(--th-border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.donation-type-card:hover .card-content {
    border-color: var(--theme-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 94, 180, 0.15);
}

.donation-type-card input:checked ~ .card-content {
    background: linear-gradient(135deg, var(--theme-color), var(--smoke-color));
    border-color: var(--theme-color);
    color: var(--white-color);
    box-shadow: 0 10px 30px rgba(0, 94, 180, 0.3);
}

.donation-type-card .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 94, 180, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--theme-color);
    transition: all 0.3s ease;
}

.donation-type-card input:checked ~ .card-content .icon-wrapper {
    background: var(--white-color);
    color: var(--theme-color);
}

.donation-type-card h4 {
    font-family: var(--title-font);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--title-color);
}

.donation-type-card input:checked ~ .card-content h4,
.donation-type-card input:checked ~ .card-content p {
    color: var(--white-color);
}

.donation-type-card p {
    color: var(--body-color);
    margin-bottom: 0;
}

.donation-type-card .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 0.5rem;
    font-family: var(--body-font);
}

.form-control,
.form-select {
    border: 2px solid var(--th-border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 94, 180, 0.1);
}

.cause-select-native {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.cause-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.cause-option-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 1rem 1.1rem;
    border: 2px solid var(--th-border-color);
    border-radius: 16px;
    background: var(--white-color);
    color: var(--title-color);
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.cause-option-card:hover {
    border-color: var(--theme-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 94, 180, 0.12);
}

.cause-option-card.active {
    border-color: var(--theme-color);
    background: linear-gradient(135deg, var(--theme-color), var(--smoke-color));
    color: var(--white-color);
    box-shadow: 0 14px 30px rgba(0, 94, 180, 0.22);
}

.cause-option-title {
    font-family: var(--title-font);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

/* Amount Buttons */
.amount-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.amount-btn {
    border: 2px solid var(--th-border-color);
    border-radius: 12px;
    padding: 1rem;
    background: var(--white-color);
    color: var(--title-color);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--title-font);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.amount-btn:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 94, 180, 0.15);
}

.amount-btn.active {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: var(--white-color);
    box-shadow: 0 5px 15px rgba(0, 94, 180, 0.3);
}

.amount-input-group .input-group-text {
    background: var(--theme-color);
    border: 2px solid var(--theme-color);
    color: var(--white-color);
    font-weight: 600;
    font-size: 1.25rem;
    border-radius: 12px 0 0 12px;
}

.amount-input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Gift Aid */
.gift-aid-info-box {
    background: linear-gradient(135deg, #e3f2fd, #f0f8ff);
    border-left: 4px solid var(--theme-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.gift-aid-info-box .icon {
    font-size: 2rem;
    color: var(--theme-color);
}

.gift-aid-info-box h5 {
    font-family: var(--title-font);
    color: var(--title-color);
    margin-bottom: 0.5rem;
}

.gift-aid-info-box p {
    color: var(--body-color);
    margin-bottom: 0;
}

.gift-aid-toggle {
    background: var(--white-color);
    border: 2px solid var(--th-border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.gift-aid-toggle:has(input:checked) {
    background: linear-gradient(135deg, rgba(0, 94, 180, 0.05), rgba(2, 81, 160, 0.05));
    border-color: var(--theme-color);
}

.gift-aid-toggle label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    margin: 0;
}

.gift-aid-toggle input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.gift-aid-preview {
    background: linear-gradient(135deg, #f0fff4, #e6ffed);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.amount-box {
    background: var(--white-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid var(--th-border-color);
}

.amount-box.highlight {
    border-color: var(--success-color);
    background: linear-gradient(135deg, var(--white-color), #f0fff4);
}

.amount-box label {
    font-size: 0.9rem;
    color: var(--body-color);
    margin-bottom: 0.5rem;
    display: block;
}

.amount-box .amount {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--title-font);
    color: var(--title-color);
}

.amount-box.highlight .amount {
    color: var(--success-color);
}

.gift-aid-declaration {
    margin-top: 1.5rem;
}

.declaration-box {
    background: #fff9e6;
    border: 2px solid var(--yellow-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.declaration-box p {
    font-size: 0.9rem;
    color: var(--body-color);
    line-height: 1.6;
}

/* Donation Summary */
.donation-summary-card {
    background: linear-gradient(135deg, #f8f9fa, var(--white-color));
    border: 2px solid var(--th-border-color);
    border-radius: 16px;
    padding: 2rem;
}

.donation-summary-card h5 {
    font-family: var(--title-font);
    color: var(--title-color);
    font-size: 1.25rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--th-border-color);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row .label {
    font-weight: 500;
    color: var(--body-color);
}

.summary-row .value {
    font-weight: 600;
    color: var(--title-color);
}

.summary-row.total {
    background: linear-gradient(135deg, var(--theme-color), var(--smoke-color));
    margin: 1rem -2rem -2rem;
    padding: 1.25rem 2rem;
    border-radius: 0 0 16px 16px;
}

.summary-row.total .label,
.summary-row.total .value {
    color: var(--white-color);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Step Actions */
.step-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--th-border-color);
}

.step-actions .btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-family: var(--body-font);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.step-actions .btn-primary {
    background: linear-gradient(135deg, var(--theme-color), var(--smoke-color));
    border: none;
    box-shadow: 0 5px 15px rgba(0, 94, 180, 0.3);
}

.step-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 94, 180, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #218838);
    border: none;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .step-actions {
        flex-direction: column;
    }

    .step-actions .btn {
        width: 100%;
    }

    .donation-type-grid {
        grid-template-columns: 1fr;
    }

    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid var(--white-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
