/* PSM Donation Manager - Frontend Styles */

.psm-dm-form-wrapper {
    max-width: 600px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}

.psm-dm-form-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.psm-dm-form-title {
    margin: 0 0 25px 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Legacy Partner Button */
.psm-dm-legacy-button-wrapper {
    text-align: center;
    margin-bottom: 25px;
}

.psm-dm-legacy-button {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.psm-dm-legacy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.psm-dm-legacy-button:active {
    transform: translateY(0);
}

.psm-dm-section {
    margin-bottom: 25px;
}

.psm-dm-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* Fund Selection */
.psm-dm-fund-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.psm-dm-fund-select:focus {
    outline: none;
    border-color: #5683bf;
}

/* Fund Display */
.psm-dm-fund-display {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #5683bf;
}

.psm-dm-fund-image {
    margin-bottom: 15px;
}

.psm-dm-fund-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.psm-dm-fund-description {
    color: #555;
    line-height: 1.6;
}

/* Frequency Options */
.psm-dm-frequency-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.psm-dm-radio-option {
    display: block;
    position: relative;
    cursor: pointer;
}

.psm-dm-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.psm-dm-radio-option span {
    display: block;
    padding: 12px 20px;
    text-align: center;
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.psm-dm-radio-option:hover span {
    background: #e8e8e8;
    border-color: #bbb;
}

.psm-dm-radio-option.active span {
    background: #5683bf;
    border-color: #5683bf;
    color: #fff;
}

/* Amount Presets */
.psm-dm-amount-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.psm-dm-amount-btn {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.psm-dm-amount-btn:hover {
    background: #e8e8e8;
    border-color: #bbb;
}

.psm-dm-amount-btn.active {
    background: #5683bf;
    border-color: #5683bf;
    color: #fff;
}

/* Custom Amount */
.psm-dm-custom-amount label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.psm-dm-amount-input-wrapper {
    position: relative;
}

.psm-dm-currency-symbol {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 600;
    color: #5683bf;
}

.psm-dm-amount-input {
    width: 100%;
    padding: 12px 15px 12px 35px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.psm-dm-amount-input:focus {
    outline: none;
    border-color: #5683bf;
}

/* Submit Button */
.psm-dm-submit-btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: #e09900;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.psm-dm-submit-btn:hover {
    background: #e8ac3a;
}

.psm-dm-submit-btn:active {
    background: #c88700;
}

/* Messages */
.psm-dm-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

.psm-dm-message-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
}

.psm-dm-message-success {
    background: #efe;
    border: 1px solid #cfc;
    color: #0a0;
}

.psm-dm-message-loading {
    background: #e8f4fd;
    border: 1px solid #b3d9f2;
    color: #0066a1;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
    .psm-dm-form-wrapper {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .psm-dm-form-container {
        padding: 4px !important;
        box-sizing: border-box !important;
    }

    .psm-dm-form-title {
        font-size: 26px;
    }

    .psm-dm-label {
        font-size: 17px;
    }

    .psm-dm-fund-select {
        font-size: 17px;
        padding: 14px 15px;
    }

    .psm-dm-frequency-options {
        grid-template-columns: 1fr;
    }

    .psm-dm-radio-option span {
        padding: 14px 20px;
        font-size: 17px;
    }

    .psm-dm-amount-presets {
        grid-template-columns: repeat(2, 1fr);
    }

    .psm-dm-amount-btn {
        padding: 14px 20px;
        font-size: 17px;
    }

    .psm-dm-amount-input {
        font-size: 19px;
        padding: 14px 15px 14px 35px;
    }

    .psm-dm-currency-symbol {
        font-size: 19px;
    }

    .psm-dm-submit-btn {
        font-size: 19px;
        padding: 16px 30px;
    }

    .psm-dm-fund-description {
        font-size: 16px;
    }

    .psm-dm-legacy-button {
        font-size: 19px;
        padding: 16px 40px;
    }
}
