/* ===== DONATE FORM STYLES ===== */

.donate-container {
    max-width: 720px;
    margin: 50px auto;
    background: var(--bg-card);
    padding: 48px 44px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.donate-container h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.donate-container .subtitle {
    color: var(--text-light);
    font-size: 0.97rem;
    margin-bottom: 36px;
}

/* ===== FORM SECTIONS ===== */
.form-section {
    margin-bottom: 36px;
    padding: 28px;
    background: var(--bg-light);
    border-radius: 14px;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px 0 0 4px;
}

.form-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.form-section h3 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ===== FORM ROWS ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-medium);
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.97rem;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

/* ===== CHECKBOX / RADIO GROUPS ===== */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"],
.checkbox-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    margin-bottom: 0;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* ===== TAG PILLS ===== */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.tag-checkbox {
    display: none;
}

.tag-label {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    background: var(--bg-white);
    color: var(--primary-dark);
    border: 1.5px solid var(--border-color);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.9rem;
    user-select: none;
    letter-spacing: 0.01em;
}

.tag-label:hover {
    border-color: var(--primary-color);
    background: rgba(46, 125, 50, 0.06);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.tag-checkbox:checked+.tag-label {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.3);
    transform: translateY(-1px);
}

/* ===== FILE UPLOAD ===== */
.file-upload {
    display: flex;
    flex-direction: column;
}

.file-input-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 36px 24px;
    border: 2px dashed var(--primary-light);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.03), rgba(102, 187, 106, 0.06));
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.97rem;
    flex-direction: column;
    text-align: center;
}

.file-input-label i {
    font-size: 2rem;
    opacity: 0.7;
}

.file-input-label:hover {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.07), rgba(102, 187, 106, 0.12));
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.12);
}

.file-name {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-top: 10px;
    text-align: center;
    font-style: italic;
}

/* ===== INFO BOX ===== */
.info-box {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05), rgba(102, 187, 106, 0.08));
    border-left: 4px solid var(--primary-color);
    padding: 16px 18px;
    border-radius: 10px;
    margin: 14px 0;
    font-size: 0.92rem;
    color: var(--text-medium);
    line-height: 1.65;
}

/* ===== LOCATION BUTTON ===== */
.location-btn-wrapper {
    position: relative;
    margin-bottom: 14px;
}

.location-btn {
    width: 100%;
    padding: 13px 18px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.97rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.02em;
}

.location-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
    transform: translateY(-2px);
}

.location-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* ===== LOCATION STATUS ===== */
.location-status {
    font-size: 0.88rem;
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    display: none;
    font-weight: 500;
    animation: fadeSlide 0.25s ease;
}

.location-status.loading {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 193, 7, 0.1);
    color: #e67e00;
    border-left: 4px solid #f59e0b;
}

.location-status.success {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 125, 50, 0.08);
    color: var(--primary-dark);
    border-left: 4px solid var(--primary-color);
}

.location-status.error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(211, 47, 47, 0.08);
    color: #c62828;
    border-left: 4px solid #ef4444;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.25);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    box-shadow: 0 8px 28px rgba(46, 125, 50, 0.35);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .donate-container {
        margin: 24px 16px;
        padding: 28px 20px;
    }

    .form-section {
        padding: 20px 16px;
    }
}
/* Dark mode dropdown */
body.dark-mode #unit {
    background-color: #1e1e2e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2366bb6a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-right: 44px;
    -webkit-appearance: none;
    appearance: none;
    background-clip: padding-box;
    color: #ffffff;
    border: 1px solid #555;
    color-scheme: dark;
}

body.dark-mode #unit option {
    background-color: #1e1e2e;
    color: #ffffff;
}
/* Dark mode date & time inputs */
body.dark-mode #expiryDate,
body.dark-mode #expiryTime {
    background-color: #1e1e2e;
    color: #ffffff;
    border: 1px solid #555;
    color-scheme: dark;
}
