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

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

/* Pledge Section */
.pledge-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.pledge-content {
    width: 75%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 992px) {
    #pledge-form-container {
        padding: 60px 80px;
    }
}

.pledge-info h1 {

    font-weight: 600;
    color: #364f66;
    margin-bottom: 20px;
    margin-top: 0;
}

.description {

    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
    text-align: left;
}

.highlight {
    color: #ed9543;
    font-weight: 600;
}

.pledge-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px;
}

.stat-icon {
    color: #666;
    padding: 15px;
}

.pledge-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pledge-icon:hover {
    transform: scale(1.1);
}

.pledge-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    width: 150px;
    min-width: 150px;
}

.count-number {
    font-size: 40px;
    font-weight: 700;
    color: #ed9543;
    line-height: 1;
}

.count-label {
    color: #666;
    font-weight: 600;
    letter-spacing: 1px;
    white-space: nowrap;
}

.pledge-btn {
    padding: 20px 40px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f2a45b;
    color: white;
    border: 2px solid #f2a45b;
    text-decoration: none;
    display: inline-block;
}

/* Ensure anchor tag doesn't interfere with button styling */
a > .pledge-btn {
    border-radius: 25px;
    display: inline-block;
}

a:has(.pledge-btn) {
    display: inline-block;
    text-decoration: none;
}

/* Fallback for browsers without :has() support */
a > button.pledge-btn {
    border-radius: 25px;
}

.pledge-btn:hover {
    background-color: transparent;
    color: #f2a45b;
    border: 2px solid #f2a45b;
    transform: translateY(-2px);
}

.pledge-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.pledge-poster {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Overlay Styles */
.overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    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 */
#pledge-form-container {
    max-width: 100%;
    margin: 0;
    padding: 60px;
    box-sizing: border-box;
}

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

.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 */
#pledge-form-container h2 {

    font-weight: 600;
    color: #4a5568;
    margin: 0 0 30px 0;
    padding: 0;
    text-align: left;
    line-height: 1.2;
}

/* 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 */
#pledge-form {
    padding: 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;
}

/* Responsive Design */
@media (max-width: 992px) {
    #pledge-form-container {
        padding: 60px 80px;
    }
}

@media (max-width: 768px) {
    .pledge-content {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 95%;
        text-align: center;
    }
    
    .pledge-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .count-number {
        font-size: 32px;
    }
    
    /* Form responsive adjustments */
    #pledge-form-container {
        padding: 40px 30px;
    }
    
    #pledge-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) {
    /* Form responsive adjustments */
    #pledge-form-container {
        padding: 30px 20px;
    }
    
    #pledge-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;
    }
    
    .pledge-btn {
        padding: 12px 24px;

    }
}
