/* donate.css - Styles specific to donate.html */

/* Reset main styles for this page */
main {
    text-align: center;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Donate Section */
.donate-section {
    padding: 60px 40px;
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: flex-start;
    gap: 4%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Donation Art Container */
.donation-art {
    flex: 0 0 48%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donation-art img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* Direct Donation Form */
.donation-form-container {
    flex: 0 0 48%;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.donation-form-container h2 {
    text-align: center;
    color: #364f66;
    margin-bottom: 0px;
    margin-top: 0;
}

/* Placeholder Table Styles */

.donation-table {
    width: 100%;
	padding: 0px 0px 0px 0px;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
}

.donation-table th {
    background: #f8f9fa;
    color: #364f66;
    font-weight: 600;
    padding: 9px 6px;
    border-bottom: 2px solid #eee;
}

.donation-table th:first-child {
    text-align: right;
    width: 15%;
    padding-left: 0;
}

.donation-table th:last-child {
    text-align: left;
    border-left: 2px solid #ddd;
}

.donation-table td {
    padding: 6px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.donation-table td:first-child {
    text-align: right;
    font-weight: 600;
    width: 15%;
    padding-left: 0;
}

.donation-table td:last-child {
    text-align: left;
    border-left: 2px solid #ddd;
}

.donation-table tr:last-child td {
    border-bottom: none;
}

.donation-table tr:hover {
    background-color: #f8f9fa;
}

.table-btn {
    background: #f2a45b;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.table-btn:hover {
    background: #e67e22;
}

#paypal-button-container {
    margin-top: 25px;
    min-height: 50px;
}

/* PayPal Giving Fund Integration Styles */
.giving-fund-integration {
    text-align: center;
}

.donation-benefits {
    margin-top: 10px;
    text-align: left;
}

.donation-benefits p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.donate-action-button {
    background: linear-gradient(135deg, #f2a45b 0%, #f39c12 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(242, 164, 91, 0.3);
}

.donate-action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 164, 91, 0.4);
    background: #ffffff;
}

@media (max-width: 1024px) {
    .donate-section {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 900px) {
    .donate-section {
        flex-direction: column;
        gap: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .donation-art {
        flex: none;
        width: 100%;
    }
    
    .donation-form-container {
        flex: none;
        width: 100%;
        padding: 20px;
        margin: 0;
        box-sizing: border-box;
    }
    
    .donation-art img {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .donate-section {
        flex-direction: column;
        gap: 30px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .donation-art {
        flex: none;
        width: 100%;
    }
    
    .donation-form-container {
        flex: none;
        width: 100%;
        padding: 15px;
        margin: 0;
        box-sizing: border-box;
    }
    
    .donation-art img {
        max-width: 400px;
    }
    
    .donation-table td, .donation-table th {
        padding: 8px 6px;
        font-size: 14px;
        word-wrap: break-word;
    }
    
    .amount-buttons {
        justify-content: center;
    }
    
    .amount-btn {
        flex: 1;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .donate-section {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .donation-form-container {
        padding: 10px;
    }
    
    .donation-table td, .donation-table th {
        padding: 6px 4px;
        font-size: 12px;
    }
    
    .donation-table td:first-child {
        width: 20%;
    }
}

.donate-content {
    width: 75%;
    min-width: 300px;
    margin: 0 auto;
    padding: 0 20px;
}

.donate-content h1 {
    font-weight: 600;
    color: #364f66;
    margin-bottom: 30px;
    text-align: center;
}

.highlight {
    color: #ed9543;
}

.subtitle {
    color: #666;
    margin-bottom: 50px;
    text-align: center;
    line-height: 1.6;
}

/* Sponsorship Grid */
.sponsorship-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.sponsorship-card {
    background: #EFEFEF;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.tier-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tier-info h3 {

    font-weight: 600;
    color: #364f66;
    margin-bottom: 10px;
    line-height: 1.3;
}

.price {

    font-weight: 700;
    color: #ed9543;
}

.benefits {

    color: #666;
    line-height: 1.5;
    text-align: left;
}

.benefits p {
    margin: 8px 0;
}

.benefits strong {
    color: #364f66;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 50px 0;
}

.donate-btn {
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    transform: translateY(0);
}

.donate-btn:hover {
    transform: translateY(-2px);
}

/* Thank You Section */
.thank-you-section {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 2px solid #e9ecef;
}

.thank-you-section h2 {

    font-weight: 600;
    color: #364f66;
    margin-bottom: 50px;
    text-align: center;
}

.sponsor-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sponsor-category h3 {

    font-weight: 600;
    color: #364f66;
    margin-bottom: 20px;
    text-align: center;
    text-decoration: underline;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    min-height: 100px;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {

    .sponsorship-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sponsorship-card {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 15px;
    }
    
    .benefits {
        text-align: left;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .donate-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .donate-content {
        width: 95%;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .sponsorship-card {
        padding: 20px;
    }
}

/* Overlay styles - matching contribute.css */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.overlay-content {
    position: relative;
    background-color: white;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Form container */
#volunteer-form-container {
    max-width: 100%;
    margin: 0;
    padding: 60px;
    box-sizing: border-box;
}

/* Responsive form padding */
@media screen and (max-width: 768px) {
    #volunteer-form-container {
        padding: 30px;
    }
}

/* Close button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;

    font-weight: normal;
    color: #999;
    cursor: pointer;
    z-index: 10;
}

.close-btn:hover {
    color: #333;
}

/* Form title */
#volunteer-form-container h2 {
    font-weight: 600;
    color: #4a5568;
    margin: 0 0 30px 0;
    padding: 0;
    text-align: left;
    line-height: 1.2;
    font-size: 2em;
}

/* Form description - properly aligned */
.form-description {
    margin-bottom: 40px;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

.form-description p {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 20px 0;
    text-align: left;
}

.form-note {
    font-size: 16px;
    color: #999;
    margin-top: 30px;
    text-align: left; /* Changed from right to left */
    font-style: italic;
}

/* Form styles */
#volunteer-form {
    padding: 0;
    width: 100%;
    margin: 0;
}

.form-row {
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.form-row label {
    display: block;
    margin-bottom: 0; /* Removed bottom padding */
    font-weight: 400;

    color: #f2a45b;
    line-height: 1.4;
    text-align: left;
    font-size: 14px;
}

.form-row input, 
.form-row textarea, 
.form-row select {
    width: 100%;
    padding: 0 0 4px 0; /* Removed top padding, minimal bottom padding for text positioning */
    border: none;
    border-bottom: 2px solid #d9d9d9; /* Changed to light gray */
    background-color: transparent;

    font-family: inherit;
    color: #4a5568;
    transition: border-color 0.3s ease, border-width 0.3s ease;
    box-sizing: border-box;
    text-align: left;
}

.form-row input:hover, 
.form-row textarea:hover, 
.form-row select:hover {
    border-bottom-color: #f2a45b; /* Orange on hover */
    border-bottom-width: 3px; /* Thicker on hover */
}

.form-row input:focus, 
.form-row textarea:focus, 
.form-row select:focus {
    outline: none;
    border-bottom-color: #f2a45b;
    border-bottom-width: 3px; /* Thicker on focus */
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: #a0aec0;
    text-align: left;
}

/* File input styling */
.form-row input[type="file"] {
    padding: 15px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f7fafc;
    cursor: pointer;

}

.form-row input[type="file"]:hover {
    background-color: #edf2f7;
    border-color: #cbd5e0;
}

/* Checkbox and radio containers */
.checkbox-container, 
.radio-container {
    display: flex;
    align-items: flex-start;
    text-align: left;
}

.checkbox-container input[type="checkbox"],
.radio-container input[type="radio"] {
    margin-right: 12px;
    margin-top: 2px;
    width: auto;
    padding: 0;
    min-width: 16px;
    flex-shrink: 0;
}

.checkbox-container label,
.radio-container label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 400;

    color: #4a5568;
    flex: 1;
    line-height: 1.4;
    text-align: left;
    font-size: 14px;
}

/* Section headers */
.section-header {

    font-weight: 600;
    color: #4a5568;
    margin: 40px 0 20px 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    text-align: left;
}

.form-section-header {
    padding-bottom: 10px;
}

.form-section-header p {
    font-size: 16px;
    text-align: left;
}

/* Submit button */
.submit-btn {
    padding: 15px 40px;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px; /* Reduced from 30px to 20px */
    display: block;
    margin-left: auto;
    margin-right: auto; /* Center the button */
    width: fit-content;
}

.submit-btn:hover {
    transform: translateY(-1px);
}

/* Form message styling */
.message {
    font-size: 16px;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: left; /* Changed from center to left */
}

.message.success {
    background-color: #f0fff4;
    color: #2d5a3d;
    border: 1px solid #9ae6b4;
}

.message.error {
    background-color: #fff5f5;
    color: #822727;
    border: 1px solid #feb2b2;
}

/* Conditional field styling */
.conditional-field {
    margin-top: 15px;
    padding: 20px;
    background-color: #f7fafc;
    border-radius: 8px;
    border-left: 3px solid #f2a45b;
}

/* Small text styling */
.form-row small {
    display: block;
    margin-top: 8px;

    color: #a0aec0;
    font-style: italic;
}

/* Form responsive adjustments */
@media (max-width: 992px) {
    #volunteer-form-container {
        padding: 60px 80px;
    }
}

@media (max-width: 768px) {
    #volunteer-form-container {
        padding: 40px 30px;
    }
    
    #volunteer-form-container h2 {
        font-size: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .form-description {
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }
}

@media (max-width: 480px) {
    #volunteer-form-container {
        padding: 30px 20px;
    }
    
    #volunteer-form-container h2 {
        font-size: 1.3rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .form-description {
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }
    
    .form-description p {
        font-size: 14px;
        text-align: left;
    }
}
