/**
 * Animations - Checkmark, spinners, transitions
 */

/* Checkmark Animation */
.checkmark-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-lg);
}

.checkmark {
    width: 100%;
    height: 100%;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--color-success);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--color-success);
    stroke-width: 3;
    stroke-linecap: round;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Confirmation Page */
.confirmation-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    text-align: center;
}

.confirmation-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-lg);
    line-height: 1.3;
}

.confirmation-details {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(76, 175, 80, 0.05);
    border-radius: var(--radius-md);
}

.amount-donated {
    font-family: var(--font-body);
    font-size: 24px;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.amount-donated strong {
    color: var(--color-success);
    font-weight: 700;
}

.donor-name {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.donor-message {
    font-family: var(--font-heading);
    font-size: 18px;
    font-style: italic;
    color: var(--color-text);
    border-left: 3px solid var(--color-success);
    padding-left: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

/* Transaction Info */
.transaction-info {
    padding: var(--spacing-lg);
    background: #f9f9f9;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
}

.transaction-id {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
}

.transaction-id code {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    font-weight: 600;
}

.transaction-date {
    font-size: 13px;
    color: var(--color-text-light);
}

/* Confirmation Actions */
.confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.btn-link {
    display: inline-block;
    padding: 12px 24px;
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.confirmation-container {
    animation: fadeIn 0.5s ease;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .confirmation-title {
        font-size: 36px;
    }

    .confirmation-actions {
        flex-direction: row;
        justify-content: center;
    }
}