/**
 * Donate Page Styles
 * Extracted and consolidated from donate.php
 */

/* Package Selection Styles */
.donate-package-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.package-box {
    position: relative;
    width: 150px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.package-box-inner {
    background-image: url(../../../layouts/tibiarl/images/payment/serviceid_icon_normal.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    padding: 10px;
    text-align: center;
    border-radius: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 150px;
    height: 150px;
    border: none;
    outline: none;
    box-sizing: border-box;
}

.package-box:hover .package-box-inner {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.package-box.selected .package-box-inner {
    background-image:
        url(../../../layouts/tibiarl/images/payment/serviceid_icon_selected.png),
        url(../../../layouts/tibiarl/images/payment/serviceid_icon_normal.png) !important;
    background-size: 100% 100%, 100% 100% !important;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
}

.package-box.selected:hover .package-box-inner {
    background-image:
        url(../../../layouts/tibiarl/images/payment/serviceid_icon_selected.png),
        url(../../../layouts/tibiarl/images/payment/serviceid_icon_normal.png) !important;
    background-size: 100% 100%, 100% 100% !important;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.package-label {
    font-size: 12px;
    font-weight: bold;
    color: #FFFFFF;
    margin: 0;
    margin-top: 9px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    align-self: stretch;
}

.package-icon {
    width: 126px;
    height: 64px;
    margin: auto 0;
    flex-shrink: 0;
}

.package-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.package-price {
    font-size: 12px;
    font-weight: bold;
    color: #FFFFFF;
    margin: 0;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    align-self: stretch;
}

.package-box input[type="radio"] {
    display: none;
}

/* Payment Methods Container */
.payment-methods-container {
    margin-top: 40px;
    display: none;
}

.payment-methods-container.show {
    display: block;
}

.payment-method-box {
    display: inline-block;
    margin: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.payment-method-box-inner {
    background-image: url(../../../layouts/tibiarl/images/payment/serviceid_icon_normal_pagament.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    padding: 10px;
    text-align: center;
    border-radius: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 150px;
    height: 150px;
    border: none;
    outline: none;
    box-sizing: border-box;
}

.payment-method-box:hover .payment-method-box-inner {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.payment-method-box.selected .payment-method-box-inner {
    background-image:
        url(../../../layouts/tibiarl/images/payment/serviceid_icon_selected.png),
        url(../../../layouts/tibiarl/images/payment/serviceid_icon_normal_pagament.png) !important;
    background-size: 100% 100%, 100% 100% !important;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
}

.payment-method-box.selected:hover .payment-method-box-inner {
    background-image:
        url(../../../layouts/tibiarl/images/payment/serviceid_icon_selected.png),
        url(../../../layouts/tibiarl/images/payment/serviceid_icon_normal_pagament.png) !important;
    background-size: 100% 100%, 100% 100% !important;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.payment-method-icon {
    width: 80px;
    height: 40px;
    margin-top: 5px;
    flex-shrink: 0;
}

.payment-method-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-method-box input[type="radio"] {
    display: none;
}

.payment-method-label {
    font-size: 14px;
    font-weight: bold;
    color: #FFFFFF;
    margin-top: -1px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    align-self: stretch;
}

.payment-method-speed {
    font-size: 10px;
    color: #FFFFFF;
    margin: 0;
    margin-bottom: 13px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    align-self: stretch;
    opacity: 0.9;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #5A2800;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #D4C0A1;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #5A2800;
    outline: none;
}

.error-message {
    color: #ff0000;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* QR Code and PIX Styles */
.qr-code-container {
    text-align: center;
    padding: 20px;
}

.qr-code-container img {
    max-width: 300px;
    margin: 20px auto;
    display: block;
}

.pix-code-box {
    background-color: #f1e0c6;
    padding: 15px;
    border-radius: 5px;
    margin: 20px auto;
    max-width: 600px;
    word-break: break-all;
}

.copy-button {
    background-color: #5A2800;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.copy-button:hover {
    background-color: #7A3800;
}

/* Success Page Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

.success-icon {
    font-size: 80px;
    animation: bounce 1.5s ease-in-out infinite;
    display: inline-block;
}

.success-container {
    animation: fadeIn 0.5s;
}
