/* Importing Google font - Open Sans */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");

* {
    font-family: "Open Sans", sans-serif;
}

.bg-wrapper {
    min-height: 100vh;
    width: 100%;
    background: url("/assets/images/wallpaper removed.jpg") center/cover fixed no-repeat;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.content-wrapper {
    position: relative;
    z-index: 1;

}

.donate-container {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.donate-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
}

.donate-form h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.form-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.fancy-input {
    width: calc(100% - 32px);
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.fancy-input:focus {
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.fancy-input[type="date"] {
    color-scheme: dark;

    }

.fancy-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Upload Area */
.upload-area {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 37px;
}

.upload-preview {
    width: 100%;
    max-width: 300px;
    min-height: 200px;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-preview img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

/* Button Styles */
.upload-btn, .submit-btn {
    background: #4CAF50;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.1rem;
}

.upload-btn:hover, .submit-btn:hover {
    background: #388E3C;
    transform: translateY(-2px);
}

/* Radio Buttons */
.category-buttons, .condition-buttons, .donation-type-buttons {
    display: flex;
    gap: 10px;
}

.category-buttons input[type="radio"],
.condition-buttons input[type="radio"],
.donation-type-buttons input[type="radio"] {
    display: none;
}

.category-label, .condition-label, .donation-type-label {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-buttons input[type="radio"]:checked + .category-label,
.condition-buttons input[type="radio"]:checked + .condition-label,
.donation-type-buttons input[type="radio"]:checked + .donation-type-label {
    background: #4CAF50;
    border-color: #4CAF50;
}

.return-date-container {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
}

.security-amount-container {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 10px;
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 9999;
    animation: confettiFall linear forwards;
}

/* Celebration Animations */
@keyframes popIn {
    0% { transform: translate(-50%, -50%) scale(0); }
    70% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes popOut {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg) scale(0);
    }
    10% {
        transform: translateY(-80vh) rotate(45deg) scale(1);
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.celebration-message h1 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.celebration-message p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-layout {
        grid-template-columns: 1fr;
    }
    
    .category-buttons, .condition-buttons {
        flex-wrap: wrap;
    }
}
.submit-btn.loading {
    background: #388E3C;
    cursor: not-allowed;
    opacity: 0.7;
}

.submit-btn.loading .button-text {
    opacity: 1;
}
