/* Niaz Foundation Donation Form Styles */

.nfd-donation-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Logo Section */
.nfd-logo-section {
    padding: 30px 30px 20px;
    text-align: center;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.nfd-logo {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Progress Container */
.nfd-progress-container {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.nfd-step {
    padding: 30px;
}

.nfd-step-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.nfd-back-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    margin-right: 15px;
    color: #666;
    transition: color 0.3s;
}

.nfd-back-btn:hover {
    color: #333;
}

.nfd-step-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #333;
    flex-grow: 1;
}

.nfd-progress {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.nfd-progress-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nfd-progress-step.active {
    background: #4CAF50 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    transform: scale(1.1);
}

/* Amount Selection */
.nfd-amount-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.nfd-amount-btn {
    padding: 15px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.nfd-amount-btn:hover,
.nfd-amount-btn.selected {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.nfd-other-amount-input {
    margin-bottom: 25px;
}

.nfd-other-amount-input input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Donation Info */
.nfd-donation-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

.nfd-info-icon {
    font-size: 18px;
}

/* Donation Type */
.nfd-donation-type {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.nfd-type-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.nfd-type-btn.active {
    border-color: #4CAF50;
    background: #f0f8f0;
    color: #4CAF50;
}

/* Continue Button */
.nfd-continue-btn {
    width: 100%;
    padding: 18px;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nfd-continue-btn:hover {
    background: #555;
}

.nfd-arrow-right {
    font-size: 18px;
}

/* Form Styles */
.nfd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.nfd-form-group {
    margin-bottom: 20px;
}

.nfd-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.nfd-required {
    color: #d32f2f;
    font-weight: 700;
    margin-left: 2px;
}

.nfd-form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.nfd-form-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

.nfd-form-group input.error {
    border-color: #d32f2f;
}

.nfd-form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Error Messages */
.nfd-error-message {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* Address Section */
.nfd-address-section {
    margin-bottom: 25px;
}

.nfd-address-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.nfd-address-section .nfd-form-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.nfd-address-section .nfd-form-group {
    flex: 1;
    margin-bottom: 0;
}

.nfd-search-btn {
    padding: 12px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.nfd-search-btn:hover {
    background: #45a049;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.nfd-search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nfd-search-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nfd-search-btn:disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

/* Checkbox Styles */
.nfd-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.nfd-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Contact Preferences */
.nfd-contact-preferences {
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.nfd-contact-preferences p {
    margin-bottom: 25px;
    line-height: 1.7;
    color: #495057;
    font-size: 15px;
    text-align: center;
    font-weight: 500;
}

.nfd-contact-section {
    margin-bottom: 25px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nfd-contact-section:last-child {
    margin-bottom: 0;
}

.nfd-contact-section h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #212529;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nfd-contact-section h4::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #4CAF50;
    border-radius: 2px;
    display: inline-block;
}

/* Enhanced Checkbox Styles */
.nfd-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nfd-checkbox:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.nfd-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #4CAF50;
    cursor: pointer;
}

.nfd-checkbox span {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    flex: 1;
}

.nfd-checkbox input[type="checkbox"]:checked + span {
    color: #4CAF50;
    font-weight: 600;
}

/* Manual Address Checkbox */
.nfd-address-section .nfd-checkbox {
    background: #e8f5e8;
    border: 1px solid #c8e6c9;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.nfd-address-section .nfd-checkbox:hover {
    background: #d4edda;
    border-color: #a8d5aa;
}

.nfd-address-section .nfd-checkbox span {
    font-weight: 600;
    color: #2e7d32;
}

/* Contact Section Specific Styling */
.nfd-contact-section:first-child {
    border-left: 4px solid #4CAF50;
}

.nfd-contact-section:last-child {
    border-left: 4px solid #dc3545;
}

.nfd-contact-section:last-child h4::before {
    background: #dc3545;
}

.nfd-contact-section:last-child .nfd-checkbox input[type="checkbox"]:checked + span {
    color: #dc3545;
}

.nfd-contact-section:last-child .nfd-checkbox input[type="checkbox"] {
    accent-color: #dc3545;
}

/* Payment Methods */
.nfd-payment-methods {
    margin-bottom: 25px;
}

.nfd-payment-methods h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.nfd-payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nfd-payment-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.nfd-payment-square {
    flex: 1;
    aspect-ratio: 1;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 120px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
}

.nfd-payment-square:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.nfd-payment-square.active {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.nfd-payment-square .nfd-payment-icon {
    margin-bottom: 12px;
}

.nfd-payment-square .nfd-payment-icon svg {
    width: 40px;
    height: 40px;
}

.nfd-payment-square .nfd-payment-text {
    flex: none;
}

.nfd-payment-square .nfd-payment-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.nfd-payment-square.active .nfd-payment-title {
    color: #4CAF50;
}

.nfd-payment-btn {
    padding: 15px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
    width: 100%;
    margin-bottom: 10px;
}

.nfd-payment-btn:last-child {
    margin-bottom: 0;
}

.nfd-payment-btn.active {
    border-color: #4CAF50;
    background: #f0f8f0;
    color: #4CAF50;
}

.nfd-payment-btn:hover {
    border-color: #4CAF50;
    background: #f8f9fa;
}

.nfd-payment-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nfd-payment-icon svg {
    width: 24px;
    height: 24px;
}

.nfd-apple-pay-icon {
    color: #000;
}

.nfd-google-pay-icon {
    color: #4285f4;
}

.nfd-upi-icon {
    color: #5f6368;
}

.nfd-paytm-icon {
    color: #00b9f1;
}

.nfd-phonepe-icon {
    color: #5f259f;
}

.nfd-card-icon {
    color: #666;
}

.nfd-payment-btn.active .nfd-apple-pay-icon {
    color: #4CAF50;
}

.nfd-payment-btn.active .nfd-google-pay-icon {
    color: #4CAF50;
}

.nfd-payment-btn.active .nfd-upi-icon {
    color: #4CAF50;
}

.nfd-payment-btn.active .nfd-paytm-icon {
    color: #4CAF50;
}

.nfd-payment-btn.active .nfd-phonepe-icon {
    color: #4CAF50;
}

.nfd-payment-btn.active .nfd-card-icon {
    color: #4CAF50;
}

.nfd-payment-btn .nfd-payment-text {
    flex: 1;
}

.nfd-payment-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.nfd-payment-btn.active .nfd-payment-title {
    color: #4CAF50;
}

.nfd-payment-description {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    margin-top: 2px;
}

.nfd-payment-btn.active .nfd-payment-description {
    color: #4CAF50;
}

/* Gift Aid Section */
.nfd-gift-aid-section {
    margin-bottom: 25px;
}

.nfd-gift-aid-box {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.nfd-gift-aid-box h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
    line-height: 1.4;
}

.nfd-gift-aid-text {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
    font-size: 14px;
}

.nfd-read-more {
    color: #4CAF50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.nfd-read-more:hover {
    color: #45a049;
    text-decoration: underline;
}

.nfd-gift-aid-details {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #4CAF50;
    animation: fadeIn 0.3s ease-in-out;
}

.nfd-gift-aid-disclaimer {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #495057;
    font-style: italic;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nfd-gift-aid-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.nfd-gift-aid-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.nfd-gift-aid-btn.active {
    border-color: #4CAF50;
    background: #4CAF50;
    color: white;
}

/* Payment Form */
.nfd-payment-form {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

#card-element {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    min-height: 50px;
    transition: all 0.3s ease;
}

#card-element:focus-within {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

#card-errors {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 10px;
    padding: 10px;
    background: #ffebee;
    border-radius: 6px;
    border: 1px solid #ffcdd2;
    display: none;
}

.nfd-error-message {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* Donate Button */
.nfd-donate-btn {
    width: 100%;
    padding: 18px;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nfd-donate-btn:hover {
    background: #555;
}

/* Success Message */
.nfd-success {
    padding: 40px 30px;
    text-align: center;
}

.nfd-success-content h2 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.nfd-success-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.nfd-new-donation-btn {
    padding: 15px 30px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.nfd-new-donation-btn:hover {
    background: #45a049;
}

/* Responsive Design */
@media (max-width: 600px) {
    .nfd-donation-container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .nfd-step {
        padding: 20px;
    }
    
    .nfd-progress-container {
        padding: 15px 20px 0;
    }
    
    .nfd-amount-selection {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nfd-form-row {
        grid-template-columns: 1fr;
    }
    
    .nfd-step-title {
        font-size: 20px;
    }
    
    .nfd-address-section .nfd-form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nfd-search-btn {
        min-width: auto;
        font-size: 13px;
        padding: 10px 15px;
        height: auto;
    }
} 

/* Manual Address Fields */
.nfd-manual-address-fields {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.nfd-manual-address-fields .nfd-form-group {
    margin-bottom: 0;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.nfd-manual-address-fields .nfd-form-group:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.nfd-manual-address-fields .nfd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 0;
    padding: 20px;
}

.nfd-manual-address-fields .nfd-form-row .nfd-form-group {
    padding: 0;
    border-bottom: none;
    margin-bottom: 0;
}

.nfd-manual-address-fields textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #fafafa;
}

.nfd-manual-address-fields textarea:focus {
    outline: none;
    border-color: #4CAF50;
    background: white;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.nfd-manual-address-fields select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #fafafa;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

.nfd-manual-address-fields select:focus {
    outline: none;
    border-color: #4CAF50;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.nfd-manual-address-fields input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #fafafa;
    height: 50px;
}

.nfd-manual-address-fields input:focus {
    outline: none;
    border-color: #4CAF50;
    background: white;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.nfd-manual-address-fields input::placeholder {
    color: #999;
    font-size: 14px;
}

.nfd-gift-aid-note {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-style: normal;
    font-weight: 400;
}

/* Smooth transition for showing/hiding address fields */
.nfd-manual-address-fields {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-15px);
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
}

.nfd-manual-address-fields.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .nfd-manual-address-fields .nfd-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .nfd-manual-address-fields .nfd-form-group {
        padding: 15px;
    }
    
    .nfd-manual-address-fields textarea,
    .nfd-manual-address-fields select,
    .nfd-manual-address-fields input {
        padding: 12px;
    }
    
    .nfd-manual-address-fields input {
        height: 45px;
    }
} 

/* Apple Pay and Google Pay Button Containers */
#apple-pay-button,
#google-pay-button {
    margin-bottom: 20px;
    min-height: 50px;
}

#apple-pay-button .stripe-payment-request-button,
#google-pay-button .stripe-payment-request-button {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#apple-pay-button .stripe-payment-request-button:hover,
#google-pay-button .stripe-payment-request-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
} 