* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 400px;
    margin: 50px auto;
}

.open-modal-btn {
    width: 100%;
    background-color: #7f1d1d;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.open-modal-btn:hover {
    background-color: #991b1b;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

.modal-title {
    text-align: left;
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #374151;
}

.modal-body {
    padding: 20px;
}

.amount-section {
    text-align: left;
    margin-bottom: 20px;
}

.help-type {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.current-amount {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.amount-btn {
    padding: 12px 8px;
    border: none;
    border-radius: 8px;
    background-color: #e5e7eb;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.amount-btn:hover {
    background-color: #d1d5db;
}

.amount-btn.selected {
    background-color: #7f1d1d;
    color: white;
}

.custom-amount {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
}

.donation-type {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: 16px;
    height: 16px;
}

.radio-group label {
    font-size: 14px;
    cursor: pointer;
}

.frequency-section {
    display: none;
    margin-bottom: 15px;
}

.frequency-header {
    background-color: #fef2f2;
    padding: 16px;
    border-radius: 8px;
}

.frequency-title {
    color: #991b1b;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}

.frequency-buttons {
    display: flex;
    gap: 8px;
}

.frequency-btn {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid #7f1d1d;
    border-radius: 6px;
    background: white;
    color: #7f1d1d;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.frequency-btn.active {
    background-color: #7f1d1d;
    color: white;
}

.donor-type {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.donor-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #7f1d1d;
    border-radius: 8px;
    background: white;
    color: #7f1d1d;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.donor-btn.active {
    background-color: #7f1d1d;
    color: white;
}

.form-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}

.form-field:focus {
    outline: none;
    border-color: #7f1d1d;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.checkbox-group label {
    font-size: 14px;
    cursor: pointer;
}

.warning-box {
    background-color: #fefce8;
    border-left: 4px solid #eab308;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: none;
}

.warning-text {
    color: #a16207;
    font-size: 13px;
    line-height: 1.4;
}

.warning-text strong {
    font-weight: 700;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.primary-btn {
    background-color: #7f1d1d;
    color: white;
}

.primary-btn:hover {
    background-color: #ffffff;
    color: #701F27;
    outline: 1px solid;
}

.secondary-btn {
    background-color: #6b7280;
    color: white;
}

.secondary-btn:hover {
    background-color: #4b5563;
}
