﻿.ui-datepicker-prev,
.ui-datepicker-next {
    font-family: 'FontAwesomeMedical' !important;
}

.admin-panel {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 1em 0;
    background-color: #ffffff;
}

.admin-panel__action {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: calc(100% - 1em);
    margin: 0.4em 0.5em;
    padding: 0.8em;
    -webkit-box-shadow: 0 2px 5px 0 rgba(30, 30, 30, 0.3), 0 2px 10px 0 rgba(30, 30, 30, 0.12);
    box-shadow: 0 2px 5px 0 rgba(30, 30, 30, 0.3), 0 2px 10px 0 rgba(30, 30, 30, 0.12);
    -webkit-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
    background-color: #407EC9;
    color: #ffffff;
    text-align: center;
}

    .admin-panel__action:visited {
        color: #ffffff;
    }

    .admin-panel__action:hover,
    .admin-panel__action:focus {
        -webkit-box-shadow: 0 5px 10px 0 rgba(30, 30, 30, 0.3), 0 2px 10px 0 rgba(30, 30, 30, 0.15);
        box-shadow: 0 5px 10px 0 rgba(30, 30, 30, 0.3), 0 2px 10px 0 rgba(30, 30, 30, 0.15);
        background-color: #407EC9;
        color: #ffffff;
        text-decoration: none;
        outline: none;
    }

    .admin-panel__action:before {
        display: block;
        font-size: 1.3em;
        margin-bottom: 0.4em;
    }

@media (min-width: 768px) {
    .admin-panel__action {
        width: calc(100% / 3 - 1em);
    }

        .admin-panel__action:before {
            font-size: 1.8em;
        }
}

.alert--info,
.alert--success,
.alert--warning,
.alert--danger,
.dnnFormMessage {
    position: relative;
    margin: 1em 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-shadow: 0 2px 5px 0 rgba(30, 30, 30, 0.3), 0 2px 10px 0 rgba(30, 30, 30, 0.12);
    box-shadow: 0 2px 5px 0 rgba(30, 30, 30, 0.3), 0 2px 10px 0 rgba(30, 30, 30, 0.12);
    color: #1e1e1e;
    max-width: 100%;
    background-color: #ffffff;
}

    .alert--info:before,
    .alert--success:before,
    .alert--warning:before,
    .alert--danger:before,
    .dnnFormMessage:before {
        -ms-flex-negative: 0;
        flex-shrink: 0;
        -ms-flex-preferred-size: 2em;
        flex-basis: 2em;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        font-size: 1.3em;
        color: #ffffff;
    }

    .alert--info p,
    .alert--success p,
    .alert--warning p,
    .alert--danger p,
    .dnnFormMessage p {
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        margin-bottom: 0;
        padding: 1em;
    }

.alert__dismiss {
    position: absolute;
    top: 0.5em;
    right: 0.3em;
    background-color: transparent;
    color: #1e1e1e;
    -webkit-box-shadow: none;
    box-shadow: none;
    margin-top: 0;
}

    .alert__dismiss:visited,
    .alert__dismiss:active {
        color: #1e1e1e;
    }

    .alert__dismiss:hover,
    .alert__dismiss:focus {
        text-decoration: none;
        outline: none;
        color: #2dc6d6;
    }

.alert__message {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}

.alert--modal {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    position: fixed;
    top: 50%;
    left: 50%;
    width: calc(100% - 2em);
    margin: 0;
    -webkit-box-shadow: 0 10px 18px 0 rgba(30, 30, 30, 0.35), 0 14px 40px 0 rgba(30, 30, 30, 0.25);
    box-shadow: 0 10px 18px 0 rgba(30, 30, 30, 0.35), 0 14px 40px 0 rgba(30, 30, 30, 0.25);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: 9000;
}

    .alert--modal p {
        padding-bottom: 0.5em;
    }

@media (min-width: 768px) {
    .alert--modal {
        max-width: 30em;
    }
}

.alert__close {
    float: right;
    background-color: transparent;
    color: #1e1e1e;
    -webkit-box-shadow: none;
    box-shadow: none;
    margin-top: 0;
}

    .alert__close:visited,
    .alert__close:active {
        color: #1e1e1e;
    }

    .alert__close:hover,
    .alert__close:focus {
        -webkit-box-shadow: none;
        box-shadow: none;
        color: #ffffff;
    }

[class*="--info"] .alert__close:hover,
[class*="--info"] .alert__close:focus {
    background-color: #03A9F4;
}

[class*="--success"] .alert__close:hover,
[class*="--success"] .alert__close:focus {
    background-color: #1CB254;
}

[class*="--warning"] .alert__close:hover,
[class*="--warning"] .alert__close:focus {
    background-color: #FF8F00;
}

[class*="--danger"] .alert__close:hover,
[class*="--danger"] .alert__close:focus {
    background-color: #E53935;
}

.alert--info:before {
    background-color: #03A9F4;
}

.alert--success:before {
    background-color: #1CB254;
}

.alert--warning:before {
    background-color: #FF8F00;
}

.alert--danger:before {
    background-color: #E53935;
}

/* ===================================
   ESTILOS DEL FORMULARIO DE DONACIÓN
   =================================== */

/* Contenedor principal */
.form--donate {
    background-color: #f9f9f9;
    padding: 2em 1em;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .form--donate {
        padding: 3em 2em;
    }
}

/* Títulos y secciones */
.form-section__title {
    font-size: 1.8em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5em;
    text-align: center;
    line-height: 1.3;
}

.form-section {
    margin-top: 2.5em;
    margin-bottom: 1em;
}

.form-section__heading {
    font-size: 1.5em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5em;
    padding-bottom: 0.5em;
    border-bottom: 3px solid #407EC9;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

    .form-section__heading i {
        color: #407EC9;
        font-size: 1.2em;
    }

.form-section__subheading {
    font-size: 1.2em;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 0.5em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid #e0e0e0;
}

.form-section__content {
    background-color: #ffffff;
    padding: 0.5em;
    border-radius: 6px;
}

/* Campo de cantidad para ProjectDonation */
.quantity-label {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8em;
}

.quantity-input-wrapper {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0;
    transition: all 0.3s ease;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
}

.quantity-input {
    flex: 1;
    border: 2px solid #e0e0e0;
    padding: 0.8em 1em;
    font-size: 1.8em;
    font-weight: 700;
    color: #2c3e50;
    text-align: left;
    background-color: #ffffff;
    border-radius: 6px;
    width: 100%;
}

    .quantity-input:focus {
        outline: none;
        border-color: #407EC9;
        box-shadow: 0 0 0 3px rgba(64, 126, 201, 0.1);
    }

    .quantity-input::-webkit-outer-spin-button,
    .quantity-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .quantity-input[type=number] {
        -moz-appearance: textfield;
        appearance: textfield;
    }

.quantity-currency {
    position: absolute;
    right: 0.8em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
    font-weight: 600;
    color: #7f8c8d;
    pointer-events: none;
}

/* Sección de cantidades de donación */
.donation-amounts {
    margin-bottom: 2em;
}

.donate-opt {
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5em 1em;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1em;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .donate-opt:hover {
        border-color: #407EC9;
        box-shadow: 0 4px 12px rgba(64, 126, 201, 0.15);
        transform: translateY(-2px);
    }

.donate-opt--selected {
    border-color: #407EC9;
    background-color: #f0f7ff;
    box-shadow: 0 4px 12px rgba(64, 126, 201, 0.25);
}

.donate-opt--bizum {
    background: linear-gradient(135deg, #00A5E3 0%, #0077B6 100%);
    border-color: #0077B6;
    color: #ffffff;
}

    .donate-opt--bizum:hover {
        background: linear-gradient(135deg, #0077B6 0%, #005f8c 100%);
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 119, 182, 0.3);
    }

.donate-opt__title {
    font-size: 1.8em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.3em;
    display: block;
}

.donate-opt--selected .donate-opt__title {
    color: #ffffff;
}

.donate-opt--bizum .donate-opt__title {
    color: #ffffff;
}

.donate-opt__text {
    font-size: 0.95em;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.4;
}

.donate-opt--selected .donate-opt__text {
    color: #faf8f0;
}

.donate-opt--bizum .donate-opt__text {
    color: #ffffff;
}

.otherQuantity {
    position: relative;
    width: 100%;
    max-width: 150px;
    margin-top: 0.5em;
}

    .otherQuantity input {
        width: 100%;
        padding: 0.5em 2em 0.5em 0.8em;
        border: 2px solid #e0e0e0;
        border-radius: 4px;
        font-size: 1.2em;
        font-weight: 600;
        text-align: center;
        transition: all 0.3s ease;
    }

        .otherQuantity input:focus {
            outline: none;
            border-color: #407EC9;
            box-shadow: 0 0 0 3px rgba(64, 126, 201, 0.1);
        }

.otherQuantity--selected input {
    border-color: #407EC9;
}

.otherQuantity span {
    position: absolute;
    right: 0.8em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    font-weight: 600;
    color: #7f8c8d;
    pointer-events: none;
}

/* Campos de formulario */
.form-group {
    margin-bottom: 1.2em;
}

.form-control {
    width: 100%;
    padding: 0.75em 1em;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

    .form-control:focus {
        outline: none;
        border-color: #407EC9;
        box-shadow: 0 0 0 3px rgba(64, 126, 201, 0.1);
    }

    .form-control::placeholder {
        color: #95a5a6;
    }

/* Mensajes de validación */
.text-alert--danger {
    color: #E53935;
    font-size: 0.85em;
    margin-top: 0.3em;
    display: block;
    font-weight: 500;
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    padding: 0;
    background-color: transparent;
    border-radius: 6px;
    justify-content: center;
}

.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    padding: 0.8em 2em;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: #e9ecef;
    border: 2px solid #dee2e6;
    min-width: 150px;
}

    .radio-label:hover {
        background-color: #dee2e6;
        border-color: #614B79;
    }

    .radio-label input[type="radio"] {
        display: none;
    }

        .radio-label input[type="radio"]:checked + .radio-label__text {
            color: #ffffff;
        }

    .radio-label:has(input[type="radio"]:checked) {
        background-color: #614B79;
        border-color: #614B79;
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(64, 126, 201, 0.3);
    }

.radio-label__text {
    font-size: 1em;
    transition: color 0.3s ease;
}

/* Checkboxes */
.checkbox-group {
    margin-bottom: 0;
}

.form-group.checkbox-group {
    margin-bottom: 0.3em;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .checkbox-label:hover {
        background-color: #e9ecef;
        border-color: #dee2e6;
    }

    .checkbox-label input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 0.8em;
        margin-top: 0.2em;
        cursor: pointer;
        flex-shrink: 0;
        accent-color: #407EC9;
    }

.checkbox-label__text {
    font-size: 0.95em;
    line-height: 1.5;
    color: #34495e;
}

    .checkbox-label__text a {
        color: #407EC9;
        text-decoration: underline;
        font-weight: 500;
    }

        .checkbox-label__text a:hover {
            color: #2c5fa3;
        }

/* Acciones del formulario */
.form-actions {
    display: flex;
    justify-content: center;
    padding: 2em 0 1em 0;
    margin-top: 1.5em;
    border-top: 2px solid #e0e0e0;
}

.btn-donate {
    padding: 1em 3em;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(64, 126, 201, 0.3);
}

.btn-primary.btn-donate {
    background: linear-gradient(135deg, #407EC9 0%, #2c5fa3 100%);
    color: #ffffff;
}

    .btn-primary.btn-donate:hover:not(:disabled) {
        background: linear-gradient(135deg, #2c5fa3 0%, #1a4780 100%);
        box-shadow: 0 6px 16px rgba(64, 126, 201, 0.4);
        transform: translateY(-2px);
    }

    .btn-primary.btn-donate:active:not(:disabled) {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(64, 126, 201, 0.3);
    }

    .btn-primary.btn-donate:disabled {
        background: #bdc3c7;
        cursor: not-allowed;
        box-shadow: none;
        opacity: 0.6;
    }

/* Responsive */
@media (max-width: 767px) {
    .form-section__title {
        font-size: 1.5em;
    }

    .form-section__heading {
        font-size: 1.3em;
    }

    .donate-opt__title {
        font-size: 1.5em;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.8em;
    }

    .btn-donate {
        width: 100%;
        padding: 1em 2em;
    }
}
