/* General Wrapper */
.help-me-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}

/* Form Styles */
.fancy-box, .fancy-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #f0f0f0;
}

.fancy-form h3, .fancy-box h3 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
}

.guest-notice {
    font-size: 14px;
    color: #555;
    background: #f9f9f9;
    padding: 12px;
    border-left: 4px solid #ccc;
    border-radius: 4px;
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group.half {
    width: 50%;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 15px;
    background: #fcfcfc;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus, .form-group select:focus {
    background: #fff;
    border-color: #aaa;
    outline: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.form-group select {
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23555" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 96%;
    background-position-y: center;
}

.form-group input.amount-input {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
}

/* Buttons */
.help-me-btn {
    width: 100%;
    padding: 18px;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* NEW: Special Shining Button (Glow has been removed) */
.help-me-glow-btn {
    padding: 15px 30px;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    
    /* NEW: Setup for the shining effect */
    position: relative; /* Base for the pseudo-element */
    overflow: hidden; /* Important to contain the shine */
    z-index: 1; /* Keep text on top */
}

/* Standard buttons don't have the shine, just the color from PHP */
.help-me-glow-btn:hover { 
    transition: background 0.3s;
}

/* NEW: Pseudo-element creating the moving shine */
.help-me-glow-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    
    /* Shimmering diagonal light strip */
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    
    transform: skewX(-20deg); /* Angles the shine */
    pointer-events: none; /* User clicks pass through */
    
    /* Assign the shining animation */
    animation: helpMeShine 3s infinite;
}

/* NEW: Define the Shine Animation Keyframes */
@keyframes helpMeShine {
    0% {
        left: -100%;
    }
    /* Add a slight delay at the end before repeating */
    50% {
        left: 200%;
    }
    100% {
        left: 200%;
    }
}

/* Loading Animation */
.hidden { display: none !important; }

#help-me-loading { text-align: center; padding: 60px 0; }

.circular-spinner {
    border: 6px solid #f3f3f3;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.loading-text { font-size: 26px; font-weight: bold; color: #333; }

/* Success & QR Screen */
#help-me-success { text-align: center; }

.qr-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.qr-box img {
    max-width: 190px !important; /* As requested, max width on PC/Desktop */
    border-radius: 12px;
    border: 3px solid #eee;
    padding: 15px;
    background: #fff;
}

/* Modal Styles */
.help-me-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.help-me-modal.show-modal {
    opacity: 1;
    visibility: visible;
}

.help-me-modal-content {
    background-color: transparent;
    width: 100%;
    max-width: 800px;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
    padding: 20px;
}

.help-me-modal.show-modal .help-me-modal-content {
    transform: scale(1);
}

.help-me-close {
    position: absolute;
    right: 35px;
    top: 30px;
    color: #aaa;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.help-me-close:hover { color: #333; }

/* Responsive */
@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 0; }
    .form-group.half { width: 100%; }
}