/* ============================================
   Special Contribution Page Styles
   ============================================ */

/* Hero Section */
.contribution-hero {
    background: linear-gradient(135deg, #05309cff 0%, #1d4b66 100%);
    padding: 100px 0 80px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contribution-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.contribution-hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* Form Section */
.contribution-form-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.form-wrapper {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.form-header {
    background: linear-gradient(135deg, #05309cff 0%, #1d4b66 100%);
    color: #fff;
    padding: 40px;
    text-align: center;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-header p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.form-body {
    padding: 50px;
}

/* Form Groups */
.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #05309cff;
    box-shadow: 0 0 0 4px rgba(5, 48, 156, 0.1);
}

.form-control.is-valid {
    border-color: #28a745;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.radio-item {
    position: relative;
}

.radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
}

.radio-item input[type="radio"]:checked + label {
    border-color: #05309cff;
    background: rgba(5, 48, 156, 0.05);
}

.radio-item input[type="radio"]:checked + label .radio-custom {
    background: #05309cff;
    border-color: #05309cff;
}

.radio-item input[type="radio"]:checked + label .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-text {
    font-size: 15px;
    color: #333;
}

/* Section Titles */
.form-section-title {
    margin: 40px 0 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.form-section-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #05309cff;
    margin: 0;
}

/* Input Group */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group-text {
    padding: 14px 18px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-weight: 600;
    color: #05309cff;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.input-group .form-control:focus {
    border-left: 2px solid #05309cff;
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #05309cff;
}

.checkbox-wrapper label {
    margin: 0;
    cursor: pointer;
    font-size: 15px;
    color: #333;
}

/* Invalid Feedback */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 8px;
    font-size: 14px;
    color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback,
.form-group:has(.is-invalid) .invalid-feedback {
    display: block;
}

/* Submit Button */
.form-submit {
    margin-top: 40px;
    text-align: center;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #05309cff 0%, #1d4b66 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 48, 156, 0.3);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 48, 156, 0.4);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-submit:hover:not(:disabled) .btn-icon {
    transform: translateX(5px);
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert .btn-close {
    float: right;
    font-size: 20px;
    font-weight: bold;
    line-height: 20px;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-left: 15px;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .form-body {
        padding: 35px;
    }
}

@media (max-width: 768px) {
    .contribution-hero {
        padding: 60px 0 50px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .contribution-form-section {
        padding: 50px 0;
    }
    
    .form-header {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .form-body {
        padding: 25px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-section-title h3 {
        font-size: 1.2rem;
    }
    
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .form-body {
        padding: 20px;
    }
    
    .form-control {
        padding: 12px 15px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Login Section */
.login-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid #e0e0e0;
}

.section-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 0;
}

.btn-verify {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #05309cff 0%, #1d4b66 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-verify:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 48, 156, 0.3);
}

.btn-verify:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.verification-status {
    margin-top: 15px;
}

.verification-status .alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.verification-status .alert i {
    font-size: 18px;
}

.login-help {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.login-help p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.login-help a {
    color: #05309cff;
    text-decoration: none;
    font-weight: 600;
}

.login-help a:hover {
    text-decoration: underline;
}

/* Disabled input styling */
.form-control:disabled {
    background-color: #e9ecef;
    opacity: 1;
    cursor: not-allowed;
}

/* Recipient help text */
.form-label small {
    font-weight: normal;
    display: block;
    margin-top: 5px;
}

#recipient_name_wrapper {
    margin-top: 15px;
}

#recipient_name_wrapper .form-text {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #6c757d;
}

/* File Upload Styling */
input[type="file"] {
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: #05309cff;
    background: #f0f4ff;
}

input[type="file"]:focus {
    outline: none;
    border-color: #05309cff;
    box-shadow: 0 0 0 4px rgba(5, 48, 156, 0.1);
}

.file-preview {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.file-preview img {
    display: block;
    margin: 0 auto;
}

.btn-remove-file {
    padding: 8px 20px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove-file:hover {
    background: #c82333;
    transform: translateY(-1px);
}

