.legmed-donation-box-sm * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.legmed-donation-box-sm {
    background: #ffffff;
    max-width: 320px;
    height: auto;
    margin: 10px auto;
    border-radius: 8px;
    border: 3px solid #ad0000;
    box-shadow: 0 4px 12px rgba(173, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-header-sm {
    background: #ad0000;
    padding: 15px 20px;
    text-align: center;
}

.form-header-sm h3 {
    font-size: 16px;
    color: white;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-bar-sm {
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.progress-fill-sm {
    height: 100%;
    background: #ffffff;
    width: 33.33%;
    transition: width 0.3s ease;
}

.step-indicators-sm {
    display: flex;
    justify-content: center;
    padding: 12px;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.step-indicator-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    margin: 0 8px;
    position: relative;
    transition: all 0.3s ease;
}

.step-indicator-sm.active {
    background: #ad0000b0;
    color: white;
}

.step-indicator-sm.completed {
    background: #28a745;
    color: white;
}

.step-indicator-sm::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 16px;
    height: 1px;
    background: #e0e0e0;
    transform: translateY(-50%);
}

.step-indicator-sm:last-child::after {
    display: none;
}

.form-content-sm {
    padding: 20px;
}

.step-sm {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-sm.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group-sm {
    margin-bottom: 15px;
    position: relative;
}

.form-group-sm label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.required-sm {
    color: #ad0000;
}

.form-control-sm {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control-sm:focus {
    outline: none;
    border-color: #ad0000;
    box-shadow: 0 0 0 2px rgba(173, 0, 0, 0.1);
}

.form-control-sm:invalid {
    border-color: #ad0000;
}

.help-text-sm {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
    font-style: italic;
}

.currency-prefix-sm {
    font-size: 16px;
    margin-right: 6px;
    color: #333;
    font-weight: 600;
}

.amount-input-wrapper-sm {
    display: flex;
    align-items: center;
    gap: 4px;
}

.amount-field-sm {
    max-width: 280px;
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.amount-field-sm:focus {
    outline: none;
    border-color: #ad0000;
    box-shadow: 0 0 0 2px rgba(173, 0, 0, 0.1);
}

.radio-group-sm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option-sm {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option-sm:hover {
    border-color: #ad0000;
    background: #fef5f5;
}

.radio-option-sm input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.1);
    accent-color: #ad0000;
}

.button-group-sm {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-sm {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-primary-sm {
    background: #ad0000;
    color: white;
}

.btn-primary-sm:hover {
    background: #8a0000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(173, 0, 0, 0.3);
}

.btn-secondary-sm {
    background: #666;
    color: white;
}

.btn-secondary-sm:hover {
    background: #555;
    transform: translateY(-1px);
}

.thank-you-sm {
    text-align: center;
    padding: 30px 15px;
}

.thank-you-icon-sm {
    width: 60px;
    height: 60px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 24px;
}

.thank-you-sm h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.thank-you-sm p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .legmed-donation-box-sm {
        max-width: 95%;
        margin: 5px auto;
    }
    
    .form-content-sm {
        padding: 15px;
    }
    
    .button-group-sm {
        flex-direction: column;
        gap: 8px;
    }
    
    .step-indicators-sm {
        padding: 10px;
    }
    
    .step-indicator-sm {
        margin: 0 6px;
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    
    .form-header-sm h3 {
        font-size: 15px;
    }
}
