/*
 * Plugin Name: PLAG Donation Module
 * File: style.css
 */

.donation-mod__main {
    max-width: 500px;
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.donation-mod__menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
}

.donation-mod__menu li {
    flex: 1;
}

.donation-mod__menu__itm {
    width: 100%;
    padding: 15px 10px;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    /* Gray-700 */
    transition: all 0.3s ease;
    border-radius: 0;
    /* No rounded corners for menu items */
}

.donation-mod__menu__itm:hover {
    color: #2b6cb0;
    /* Blue-700 */
}

.donation-mod__menu__itm.active {
    color: #2b6cb0;
    /* Blue-700 */
    border-bottom-color: #2b6cb0;
    /* Blue-700 */
}

.donation-mod__content {
    padding: 20px;
}

.donation-mod__panel {
    display: none;
}

.donation-mod__panel.active {
    display: block;
}

.donation-mod__panelwrap {
    text-align: center;
}

.donation-mod__form__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.donation-mod__form__list.has2cols {
    grid-template-columns: repeat(2, 1fr);
    /* Example for 2 columns on larger screens */
}


.donation-mod__choice {
    padding: 12px 20px;
    background-color: #edf2f7;
    /* Gray-200 */
    border: 1px solid #cbd5e0;
    /* Gray-300 */
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #2d3748;
    /* Gray-800 */
    transition: all 0.3s ease;
    flex-grow: 1;
    min-width: 80px;
    /* Adjust as needed */
    text-align: center;
}

.donation-mod__choice:hover {
    background-color: #e2e8f0;
    /* Gray-100 */
    border-color: #a0aec0;
    /* Gray-400 */
}

.donation-mod__choice.active {
    background-color: #2b6cb0;
    /* Blue-700 */
    border-color: #2b6cb0;
    /* Blue-700 */
    color: #ffffff;
}

.donation-mod__form__field {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.donation-mod__form__field.haslabel {
    flex-direction: row;
}

.donation-mod__form__fieldwrap {
    flex-grow: 1;
    max-width: 180px;
    /* Limit width of input field */
}

.donation-mod__custom {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e0;
    /* Gray-300 */
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.donation-mod__custom:focus {
    outline: none;
    border-color: #2b6cb0;
    /* Blue-700 */
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
    /* Blue-500 with opacity */
}

.donation-mod__form__field label {
    font-size: 1rem;
    color: #4a5568;
    /* Gray-700 */
    margin-left: 5px;
}

.error-message {
    color: #e53e3e;
    /* Red-600 */
    font-size: 0.875rem;
    margin-top: 5px;
    text-align: left;
}

.donation-mod__calc {
    background-color: #e0f2fe;
    /* Light blue background for calculation */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    color: #2c5282;
    /* Darker blue text */
    line-height: 1.5;
}

.donation-mod__calc__l1,
.donation-mod__calc__l2 {
    display: block;
    font-size: 0.95rem;
}

.donation-mod__calc__output {
    display: block;
    font-size: 2.25rem;
    /* text-4xl */
    font-weight: 700;
    /* bold */
    color: #2b6cb0;
    /* Blue-700 */
    margin: 10px 0;
}

.donation-mod__calc__l3 {
    display: block;
    font-size: 0.95rem;
}

.donation-mod__btnwrap {
    margin-top: 20px;
}

.donation-mod__btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #3182ce;
    /* Blue-600 */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.donation-mod__btn:hover {
    background-color: #2b6cb0;
    /* Blue-700 */
    transform: translateY(-2px);
}

.donation-mod__btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 960px) {
    .donation-mod__main {
        max-width: 1200px;
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .donation-mod__menu {
        flex-direction: column;
    }

    .donation-mod__menu__itm {
        border-bottom: none;
        border-radius: 8px;
        margin: 5px 10px;
    }

    .donation-mod__menu__itm.active {
        border-bottom: none;
        background-color: #e0f2fe;
        /* Light blue background for active on mobile */
    }

    .donation-mod__form__list {
        flex-direction: column;
    }

    .donation-mod__choice {
        width: 100%;
    }

    .donation-mod__form__field.haslabel {
        flex-direction: column;
    }

    .donation-mod__form__fieldwrap {
        max-width: 100%;
        width: 100%;
    }
}