@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --ads-primary: #930D00;
    /* Deep Red */
    --ads-primary-hover: #660900;
    /* Darker Red */
    --ads-secondary: #2c3e50;
    --ads-border-gold: #E5AC36;
    /* Gold */
    --ads-text: #333;
    --ads-bg: #fff;
    --ads-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --ads-radius: 12px;
}

.ads-container {
    max-width: 800px;
    margin: 40px auto;
    font-family: 'Poppins', sans-serif;
}

.ads-card {
    background: var(--ads-bg);
    border-radius: var(--ads-radius);
    box-shadow: var(--ads-shadow);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.ads-header {
    text-align: center;
    margin-bottom: 40px;
}

.ads-header h2 {
    font-size: 2.5rem;
    color: var(--ads-secondary);
    margin-bottom: 10px;
    font-weight: 700;
}

.ads-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Steps */
.ads-step {
    display: none;
    animation: adsFadeIn 0.5s ease;
}

.ads-step.active {
    display: block;
}

@keyframes adsFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Amount Selection */
.ads-amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ads-amount-card {
    border: 2px solid #eee;
    border-radius: var(--ads-radius);
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ads-amount-card:hover {
    border-color: var(--ads-border-gold);
    background: rgba(147, 13, 0, 0.05);
}

.ads-amount-card.selected {
    border-color: var(--ads-border-gold);
    background: var(--ads-primary);
    color: #fff;
}

.ads-amount-card .currency {
    font-size: 1.2rem;
    vertical-align: top;
    margin-right: 2px;
}

.ads-amount-card .value {
    font-size: 1.8rem;
    font-weight: 700;
}

.ads-custom-amount {
    margin-bottom: 40px;
}

.ads-custom-amount label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}

.ads-custom-amount .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ads-custom-amount .input-wrapper span {
    position: absolute;
    left: 20px;
    font-size: 1.5rem;
    color: #999;
}

.ads-custom-amount input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    font-size: 1.5rem;
    border: 2px solid #eee;
    border-radius: var(--ads-radius);
    transition: border-color 0.3s ease;
}

.ads-custom-amount input:focus {
    border-color: var(--ads-primary);
    outline: none;
}

/* Form Styles */
.ads-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ads-form-group {
    display: flex;
    flex-direction: column;
}

.ads-form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.ads-form-group input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.ads-form-group input:focus {
    border-color: var(--ads-primary);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
    outline: none;
}

.ads-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.2rem;
}

.ads-summary strong {
    color: var(--ads-primary);
    font-size: 1.5rem;
}

.ads-form-nav {
    display: flex;
    gap: 15px;
}

/* Buttons */
.ads-btn {
    flex: 1;
    background: var(--ads-primary);
    color: #FFF !important;
    border: 2px solid var(--ads-border-gold);
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.ads-btn:hover {
    background: var(--ads-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 13, 0, 0.3);
}

.ads-btn-outline {
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
}

.ads-btn-outline:hover {
    background: #f8f9fa;
    border-color: #ccc;
    color: #333;
    transform: translateY(-2px);
    box-shadow: none;
}

/* Success & Receipt */
.ads-success-header {
    text-align: center;
    margin-bottom: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--ads-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    border: 3px solid var(--ads-border-gold);
}

.ads-receipt {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 25px auto !important;
    width: 100% !important;
    max-width: 900px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    overflow: visible !important;
}

.ads-receipt-content {
    width: 900px !important;
    min-width: 900px !important;
    max-width: none !important;
    height: 1350px !important;
    background: #fff url('../img/donation.jpeg') no-repeat center center !important;
    background-size: cover !important;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.ads-field-val {
    position: absolute;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #930D00;
    /* Primary crimson red */
    font-size: 16px;
    line-height: 1.2;
    text-align: left;
}

/* Coordinates corresponding exactly to the spaces on donation.png at 900x1270 */

/* Receipt No & Date of Donation Box */
.ads-val-receipt-no {
    top: 450px;
    left: 227px;
    font-size: 18px;
    font-weight: 700;
    color: #930D00;
}

.ads-val-date {
    top: 450px;
    left: 578px;
    font-size: 18px;
    font-weight: 700;
    color: #930D00;
}

/* Centered Donation Amount Box */
.ads-val-amount {
    top: 610px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 45px;
    font-weight: 800;
    color: #930D00;
    text-align: center;
    width: 100%;
}

.ads-val-amount-words {
    top: 670px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 600;
    color: #333;
    font-style: italic;
    text-align: center;
    width: 100%;
}

.ads-field-label {
    position: absolute;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #444;
    /* Semi-dark grey for elegant look */
    font-size: 16px;
    line-height: 1.2;
    text-align: left;
}

.ads-field-icon {
    position: absolute;
    width: 27px;
    height: 27px;
    background-color: #930D00 !important;
    /* Crimson Red background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ads-field-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff !important;
    /* White content color */
}

/* Icon Row coordinates */
.ads-icon-name {
    top: 747px;
    left: 155px;
}

.ads-icon-aadhar {
    top: 788px;
    left: 155px;
}

.ads-icon-pan {
    top: 827px;
    left: 155px;
}

.ads-icon-profession {
    top: 868px;
    left: 155px;
}

.ads-icon-payment-mode {
    top: 907px;
    left: 155px;
}

/* Coordinates corresponding exactly to the label column in details table on donation.jpeg */
.ads-lbl-name {
    top: 750px;
    left: 200px;
}

.ads-lbl-aadhar {
    top: 791px;
    left: 200px;
}

.ads-lbl-pan {
    top: 830px;
    left: 200px;
}

.ads-lbl-profession {
    top: 870px;
    left: 200px;
}

.ads-lbl-payment-mode {
    top: 910px;
    left: 200px;
}

/* Donor Details Table fields (on the right column of the grid) */
.ads-val-name {
    top: 750px;
    left: 506px;
    color: #333;
    font-weight: 500;
}

.ads-val-aadhar {
    top: 791px;
    left: 506px;
    color: #333;
    font-weight: 500;
}

.ads-val-pan {
    top: 830px;
    left: 506px;
    color: #333;
    font-weight: 500;
    text-transform: uppercase;
}

.ads-val-profession {
    top: 870px;
    left: 506px;
    color: #333;
    font-weight: 500;
}

.ads-val-payment-mode {
    top: 910px;
    left: 506px;
    color: #333;
    font-weight: 500;
}

.ads-actions {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* Loading & Messages */
.ads-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    text-align: center;
}

.ads-message.error {
    background: #f8d7da;
    color: #721c24;
}

.ads-message.success {
    background: #d4edda;
    color: #155724;
}

.ads-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.ads-loading.active {
    visibility: visible;
    opacity: 1;
}

.ads-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--ads-primary);
    border-radius: 50%;
    animation: adsSpin 1s linear infinite;
}

@keyframes adsSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .ads-container {
        padding: 10px 5px !important;
    }

    .ads-card {
        padding: 20px 15px !important;
        border-radius: 8px !important;
    }

    .ads-header h2 {
        font-size: 1.8rem;
    }

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