/* Modern Two-Column Donation Form */
* {
    box-sizing: border-box;
}

/* Main Container - Two Column Layout */
.sdp-donation-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 40px auto;
    min-height: 700px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    box-sizing: border-box;
}

/* Left Section - Image & CTA */
.sdp-left-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.sdp-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sdp-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sdp-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.sdp-cta-content {
    color: #ffffff;
    text-align: center;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.sdp-cta-heading {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.sdp-cta-text {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 40px 0;
    opacity: 0.95;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Impact Stats */
.sdp-impact-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.sdp-stat {
    text-align: center;
}

.sdp-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.sdp-stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Right Section - Donation Form */
.sdp-right-section {
    padding: 50px 40px;
    background: #ffffff;
    box-sizing: border-box;
    overflow-x: hidden;
}

.sdp-donation-form {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.sdp-form-header {
    margin-bottom: 35px;
}

.sdp-form-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
}

.sdp-form-description {
    font-size: 16px;
    color: #718096;
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sdp-form-group {
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

.sdp-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-wrap: break-word;
}

/* Amount Buttons */
.sdp-amount-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sdp-amount-btn {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.sdp-amount-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sdp-amount-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.sdp-amount-btn.active .sdp-amount-value {
    color: #ffffff;
}

.sdp-amount-value {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

/* Custom Amount Input */
.sdp-input-wrapper {
    position: relative;
}

.sdp-currency-symbol {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 700;
    color: #4a5568;
}

#sdp-custom-amount {
    width: 100%;
    padding: 16px 18px 16px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-sizing: border-box;
    max-width: 100%;
}

#sdp-custom-amount:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Form Row for Two Columns */
.sdp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.sdp-form-group.sdp-half {
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

#sdp-donor-name,
#sdp-donor-email {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
}

#sdp-donor-name:focus,
#sdp-donor-email:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Secure Badge */
.sdp-secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.sdp-secure-badge svg {
    color: #16a34a;
    flex-shrink: 0;
}

.sdp-secure-badge span {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* PayPal Button */
#paypal-button-container {
    margin-top: 8px;
}

/* Trust Indicators */
.sdp-trust-indicators {
    margin-top: 24px;
    text-align: center;
}

.sdp-trust-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #718096;
    margin: 0;
}

.sdp-trust-text svg {
    flex-shrink: 0;
}

/* Messages */
.sdp-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 10px;
    display: none;
    font-size: 15px;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sdp-message.success {
    background: #d1fae5;
    border: 2px solid #6ee7b7;
    color: #065f46;
}

.sdp-message.error {
    background: #fee2e2;
    border: 2px solid #fca5a5;
    color: #991b1b;
}

.sdp-message.info {
    background: #dbeafe;
    border: 2px solid #93c5fd;
    color: #1e40af;
}

.sdp-message p {
    margin: 0;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sdp-error {
    background: #fee2e2;
    border: 2px solid #fca5a5;
    color: #991b1b;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* License Expired Message */
.sdp-license-expired {
    max-width: 600px;
    margin: 40px auto;
    background: #fee2e2;
    border: 3px solid #fca5a5;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    width: calc(100% - 40px);
}

.sdp-license-expired h3 {
    color: #991b1b;
    font-size: 24px;
    margin: 0 0 15px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sdp-license-expired p {
    color: #7f1d1d;
    font-size: 16px;
    line-height: 1.6;
    margin: 10px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sdp-license-expired strong {
    color: #991b1b;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 992px) {
    .sdp-donation-container {
        grid-template-columns: 1fr;
        margin: 20px auto;
        max-width: 100%;
    }
    
    .sdp-left-section {
        min-height: 350px;
    }
    
    .sdp-cta-heading {
        font-size: 26px;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    .sdp-cta-text {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .sdp-impact-stats {
        gap: 20px;
    }
    
    .sdp-stat-number {
        font-size: 24px;
    }
    
    .sdp-stat-label {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .sdp-donation-container {
        margin: 15px auto;
        border-radius: 12px;
        max-width: calc(100% - 30px);
    }
    
    .sdp-right-section {
        padding: 25px 20px;
    }
    
    .sdp-form-title {
        font-size: 24px;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    .sdp-form-description {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .sdp-amount-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .sdp-amount-value {
        font-size: 18px;
    }
    
    .sdp-form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sdp-form-group.sdp-half {
        margin-bottom: 0;
    }
    
    .sdp-label {
        font-size: 13px;
    }
    
    #sdp-custom-amount,
    #sdp-donor-name,
    #sdp-donor-email {
        font-size: 15px;
        padding: 14px 15px 14px 40px;
    }
    
    #sdp-donor-name,
    #sdp-donor-email {
        padding-left: 15px;
    }
    
    .sdp-currency-symbol {
        font-size: 16px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .sdp-donation-container {
        margin: 10px auto;
        max-width: calc(100% - 20px);
        border-radius: 10px;
    }
    
    .sdp-left-section {
        min-height: 280px;
    }
    
    .sdp-image-overlay {
        padding: 20px 15px;
    }
    
    .sdp-cta-heading {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .sdp-cta-text {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 25px;
    }
    
    .sdp-impact-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .sdp-stat-number {
        font-size: 22px;
    }
    
    .sdp-stat-label {
        font-size: 11px;
    }
    
    .sdp-right-section {
        padding: 20px 15px;
    }
    
    .sdp-form-title {
        font-size: 22px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .sdp-form-description {
        font-size: 13px;
    }
    
    .sdp-amount-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .sdp-amount-btn {
        padding: 14px 16px;
    }
    
    .sdp-amount-value {
        font-size: 18px;
    }
    
    .sdp-label {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    #sdp-custom-amount,
    #sdp-donor-name,
    #sdp-donor-email {
        font-size: 16px;
        padding: 12px 12px 12px 38px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    #sdp-donor-name,
    #sdp-donor-email {
        padding-left: 12px;
    }
    
    .sdp-currency-symbol {
        font-size: 15px;
        left: 12px;
    }
    
    .sdp-secure-badge {
        font-size: 12px;
        padding: 10px 12px;
        word-wrap: break-word;
    }
    
    .sdp-trust-text {
        font-size: 11px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .sdp-donation-container {
        margin: 8px auto;
        max-width: calc(100% - 16px);
    }
    
    .sdp-right-section {
        padding: 18px 12px;
    }
    
    .sdp-form-title {
        font-size: 20px;
    }
    
    .sdp-form-description {
        font-size: 12px;
    }
    
    .sdp-cta-heading {
        font-size: 18px;
    }
    
    .sdp-cta-text {
        font-size: 13px;
    }
    
    .sdp-amount-value {
        font-size: 16px;
    }
    
    #sdp-custom-amount,
    #sdp-donor-name,
    #sdp-donor-email {
        font-size: 14px;
        padding: 10px 10px 10px 35px;
    }
    
    #sdp-donor-name,
    #sdp-donor-email {
        padding-left: 10px;
    }
    
    .sdp-currency-symbol {
        font-size: 14px;
        left: 10px;
    }
}

/* License Expired Mobile Fixes */
@media (max-width: 768px) {
    .sdp-license-expired {
        padding: 30px 20px;
        margin: 30px auto;
        width: calc(100% - 30px);
    }
    
    .sdp-license-expired h3 {
        font-size: 20px;
    }
    
    .sdp-license-expired p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .sdp-license-expired {
        padding: 25px 15px;
        margin: 20px auto;
        width: calc(100% - 20px);
    }
    
    .sdp-license-expired h3 {
        font-size: 18px;
    }
    
    .sdp-license-expired p {
        font-size: 13px;
    }
}
