/* Payments Page Modern Styles – uses payment-donation-theme.css for purple theme */

/* Payment Section */
.payment-section {
    padding: 80px 0;
    background: var(--pd-bg, #f8fafc);
    position: relative;
}

/* Form Info Section - Consistent with Contact Page "Get in Touch" */
.form-info-section {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

/* Use same class as Contact page for consistency */
.form-info-section .section-title-modern,
.form-info-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--pd-purple, #6f42c1) 0%, var(--pd-purple-dark, #5a32a3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Use same class as Contact page for description */
.form-info-section .section-description,
.form-info-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.form-info-description strong {
    color: #2c3e50;
    font-weight: 600;
}

.form-info-description u {
    text-decoration: underline;
    text-decoration-color: #667eea;
}

.form-info-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-info-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Payment Form Wrapper */
.payment-form-wrapper {
    background: #ffffff;
    padding: 50px 45px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.08);
    position: relative;
    overflow: hidden;
}

.payment-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Form Fields */
.payment-form-wrapper .form-field-wrapper {
    margin-bottom: 28px;
    position: relative;
}

.payment-form-wrapper .form-row-redesigned {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.payment-form-wrapper .form-field {
    position: relative;
}

.payment-form-wrapper .form-input-redesigned {
    width: 100%;
    padding: 18px 50px 18px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    background: #f8f9fa;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: inherit;
}

.payment-form-wrapper .form-input-redesigned:focus {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.08);
    transform: translateY(-1px);
}

.payment-form-wrapper .form-input-redesigned:focus + .form-label-redesigned,
.payment-form-wrapper .form-input-redesigned:not(:placeholder-shown) + .form-label-redesigned,
.payment-form-wrapper .form-input-redesigned:valid + .form-label-redesigned {
    transform: translateY(-28px) translateX(-8px) scale(0.85);
    color: #667eea;
    font-weight: 600;
}

.payment-form-wrapper .form-input-redesigned::placeholder {
    color: transparent;
}

.payment-form-wrapper .form-textarea-redesigned {
    min-height: 100px;
    resize: vertical;
    padding-top: 20px;
    padding-bottom: 20px;
}

.payment-form-wrapper .form-textarea-redesigned:focus + .form-label-redesigned,
.payment-form-wrapper .form-textarea-redesigned:not(:placeholder-shown) + .form-label-redesigned {
    transform: translateY(-28px) translateX(-8px) scale(0.85);
    color: #667eea;
    font-weight: 600;
}

.payment-form-wrapper .textarea-icon {
    top: 20px;
    transform: translateY(0);
}

.payment-form-wrapper .form-field:focus-within .textarea-icon {
    transform: scale(1.1);
}

.payment-form-wrapper .form-label-redesigned {
    position: absolute;
    left: 20px;
    top: 18px;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(to bottom, #ffffff 50%, #f8f9fa 50%);
    padding: 0 6px;
    transform-origin: left top;
}

.payment-form-wrapper .form-field:focus-within .form-label-redesigned {
    color: #667eea;
}

.payment-form-wrapper .required-asterisk {
    color: #ef4444;
    font-weight: 600;
    margin-left: 2px;
}

.payment-form-wrapper .input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 2;
}

.payment-form-wrapper .form-field:focus-within .input-icon {
    color: #667eea;
    transform: translateY(-50%) scale(1.1);
}

/* Donation Amount Buttons */
.donation-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.donation-btn {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    background: #ffffff;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.donation-btn:hover {
    border-color: #667eea;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.donation-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Payment Details Card */
.payment-details-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-bottom: 30px;
}

.payment-details-card .card-header {
    background: linear-gradient(135deg, var(--pd-purple, #6f42c1) 0%, var(--pd-purple-dark, #5a32a3) 100%);
    color: #ffffff;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    margin: -30px -30px 25px -30px;
    text-align: center;
}

.payment-details-card .card-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.payment-details-card .card-body {
    padding: 0;
}

.payment-details-card p {
    margin-bottom: 15px;
    font-size: 15px;
    color: #555;
}

.payment-details-card strong {
    color: #2c3e50;
    font-weight: 600;
}

.payment-details-card hr {
    margin: 20px 0;
    border-color: #e8ecf0;
}

.payment-details-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ef4444;
    margin-top: 15px;
}

/* Payment Table */
.payment-table-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    overflow-x: auto;
}

.payment-table-wrapper h4 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.payment-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.payment-table thead th {
    padding: 16px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    border: none;
}

.payment-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e8ecf0;
}

.payment-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
}

.payment-table tbody td {
    padding: 16px;
    text-align: center;
    color: #555;
    font-size: 15px;
}

.payment-table tbody td.text-danger {
    color: #ef4444;
    font-weight: 600;
}

.payment-table tbody td.text-success {
    color: #10b981;
    font-weight: 600;
}

.payment-table tbody td.text-secondary {
    color: #9ca3af;
}

/* Payment Summary */
.payment-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 25px;
    border: 2px solid #e8ecf0;
    margin-top: 25px;
}

.payment-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e8ecf0;
}

.payment-summary-item:last-child {
    border-bottom: none;
    font-size: 20px;
    font-weight: 700;
    color: #ef4444;
    margin-top: 10px;
    padding-top: 20px;
}

.payment-summary-label {
    font-weight: 600;
    color: #2c3e50;
}

.payment-summary-value {
    font-weight: 600;
    color: #555;
}

.payment-summary-item:last-child .payment-summary-value {
    color: #ef4444;
    font-size: 24px;
}

/* Form Submit Wrapper */
.form-submit-wrapper {
    margin-top: 30px;
    text-align: center;
}

/* Submit Button */
.payment-form-wrapper .btn-submit-redesigned,
.payment-table-wrapper .btn-submit-redesigned {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 48px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
    overflow: hidden;
    width: 100%;
    min-width: 200px;
}

.payment-form-wrapper .btn-submit-redesigned::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.payment-form-wrapper .btn-submit-redesigned:hover::before {
    width: 400px;
    height: 400px;
}

.payment-form-wrapper .btn-submit-redesigned:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.45);
}

/* Confirmation Page */
.confirmation-section {
    padding: 80px 0;
    background: var(--pd-bg, #f8fafc);
}

.confirmation-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 50px;
    box-shadow: 0 4px 24px rgba(111, 66, 193, 0.12);
    border: 1px solid var(--pd-card-border, #e2e8f0);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.confirmation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pd-purple, #6f42c1) 0%, var(--pd-purple-dark, #5a32a3) 100%);
    border-radius: 14px 14px 0 0;
}

.confirmation-icon {
    font-size: 100px;
    color: #10b981;
    margin-bottom: 25px;
    animation: scaleIn 0.6s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Fade-in Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.confirmation-title {
    font-size: 36px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 15px;
}

.confirmation-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.confirmation-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid #10b981;
}

.confirmation-details h5 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.confirmation-details p {
    margin-bottom: 10px;
    font-size: 15px;
    color: #555;
}

.confirmation-details strong {
    color: #2c3e50;
    font-weight: 600;
}

.confirmation-details .text-primary {
    color: #667eea;
    font-weight: 600;
}

.confirmation-message {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin: 25px 0;
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.confirmation-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.confirmation-btn-primary {
    background: linear-gradient(135deg, var(--pd-purple, #6f42c1) 0%, var(--pd-purple-dark, #5a32a3) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.35);
}

.confirmation-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.confirmation-btn-secondary {
    background: #ffffff;
    color: var(--pd-purple, #6f42c1);
    border: 2px solid var(--pd-purple, #6f42c1);
}

.confirmation-btn-secondary:hover {
    background: var(--pd-purple-light, rgba(111, 66, 193, 0.12));
    color: var(--pd-purple-dark, #5a32a3);
    transform: translateY(-3px);
    text-decoration: none;
}

.confirmation-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.confirmation-btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 991px) {
    .payment-form-wrapper {
        padding: 40px 35px;
    }

    .payment-form-wrapper .form-row-redesigned {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .confirmation-card {
        padding: 40px 30px;
    }
}

@media (max-width: 767px) {
    .payment-section {
        padding: 50px 0;
    }

    .payment-form-wrapper {
        padding: 30px 25px;
    }

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

    .confirmation-section {
        padding: 50px 0;
    }

    .confirmation-card {
        padding: 30px 20px;
    }

    .confirmation-title {
        font-size: 28px;
    }

    .confirmation-icon {
        font-size: 80px;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .confirmation-btn {
        width: 100%;
        justify-content: center;
    }

    .payment-table-wrapper {
        padding: 20px;
        overflow-x: auto;
    }

    .payment-table {
        font-size: 13px;
    }

    .payment-table thead th,
    .payment-table tbody td {
        padding: 12px 8px;
    }
}

