/* DaanSetu Frontend Styles */
.ds-donation-wrapper {
    max-width: 480px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ds-donation-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.ds-donation-header h2 {
    margin: 0 0 0.5rem;
    color: #c0392b;
    font-size: 1.5rem;
}

.ds-donation-header p {
    margin: 0;
    color: #666;
}

.ds-form-group {
    margin-bottom: 1.25rem;
}

.ds-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.ds-form-group label .required {
    color: #c0392b;
}

.ds-form-group input,
.ds-form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ds-form-group input:focus,
.ds-form-group select:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.ds-seva-group {
    margin-top: 0.5rem;
}

.ds-seva-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ds-seva-category {
    width: 100%;
    text-align: left;
    background: #f9f7f6;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-size: 0.95rem;
}

.ds-seva-category.is-open {
    border-color: #c0392b;
    background: #fff5f3;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.08);
}

.ds-seva-category-title {
    font-weight: 600;
    color: #333;
}

.ds-seva-category-count {
    font-size: 0.85rem;
    color: #777;
}

.ds-seva-options {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0.25rem 0.25rem;
}

.ds-seva-option {
    text-align: left;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.ds-seva-option.active {
    border-color: #c0392b;
    color: #c0392b;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.08);
}

.ds-seva-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px dashed #e7b9b2;
    background: #fff7f5;
}

.ds-seva-summary-label {
    color: #666;
    font-size: 0.9rem;
}

.ds-seva-summary-value {
    flex: 1;
    font-weight: 600;
    color: #c0392b;
}

.ds-seva-edit {
    border: none;
    background: transparent;
    color: #c0392b;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.ds-quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ds-quick-amount {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.ds-quick-amount:hover,
.ds-quick-amount.active {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

.ds-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ds-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.ds-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ds-payment-methods {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    color: #888;
    font-size: 0.85rem;
}

.ds-payment-methods .ds-methods {
    display: block;
    margin-top: 0.25rem;
    font-weight: 500;
    color: #666;
}

/* Messages */
.ds-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.ds-error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.ds-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Thank You Page */
.ds-thankyou-wrapper {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.ds-thankyou-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
}

.ds-thankyou-wrapper h2 {
    color: #27ae60;
    margin-bottom: 1rem;
}

.ds-receipt-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    text-align: left;
}

.ds-receipt-table th,
.ds-receipt-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}

.ds-receipt-table th {
    color: #666;
    font-weight: 500;
    width: 40%;
}

.ds-receipt-note {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

.ds-share-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 8px;
}

.ds-share-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
}

.ds-whatsapp {
    background: #25D366;
    color: #fff;
}

.ds-donate-again {
    display: inline-block;
    margin-top: 1rem;
    color: #c0392b;
    text-decoration: none;
    font-weight: 500;
}

.ds-donate-again:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 540px) {
    .ds-donation-wrapper,
    .ds-thankyou-wrapper {
        margin: 1rem;
        padding: 1.5rem;
    }
}
