/** Common style **/

.donate-button {
    display: inline-block;
    background-color: #4AA5D4;
    color: #FFFFFF;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1em;
    /* margin-top: 20px; */
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.donate-button:hover {
    background-color: #2E88B9;
    color: #FFFFFF;
}

#submit-donate-button {
    width: 100%;
    display: inline-block;
    background-color: #FF7043;
    color: #FFFFFF;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1em;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

#submit-donate-button:hover {
    background-color: orangered;
}

#submit-donate-button:disabled {
    background-color: #ccc;
    color: #1A237E;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.error-message,
.success-message {
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 5px;
    display: none;
    text-align: center;
}

.error-message {
    color: #b00020;
    background-color: #ffe6e6;
    border: 1px solid #b00020;
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}


/**
 * One Time Popup Form
 */
/* Overlay */
.grownex-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.grownex-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Card */
.grownex-popup-content {
    background: #fff;
    padding: 40px 35px 30px 35px;
    border-radius: 18px;
    width: 380px;
    max-width: 95%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    text-align: center;
    position: relative;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.25, 1.25, 0.5, 1), opacity 0.5s ease;
}

.grownex-popup-overlay.active .grownex-popup-content {
    transform: scale(1);
    opacity: 1;
}

/* Close Button */
.grownex-close {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 24px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
}

.grownex-close:hover {
    color: #DA2738;
    transform: rotate(90deg);
}

/* Heading */
.grownex-popup-content h3 {
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937; /* text color */
}

/* Floating label inputs */
.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-wrapper input {
    display: block;
    width: 100%;
    padding: 14px 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    color: #1f2937;
}

.input-wrapper label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 5px;
    color: #aaa;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s ease;
}

/* Move label on focus or input */
.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label {
    top: -8px;
    left: 12px;
    font-size: 12px;
    color: #DA2738;
}

/* Input focus border */
.input-wrapper input:focus {
    border-color: #DA2738;
    box-shadow: 0 0 8px rgba(218, 39, 56, 0.2);
}

/* Button */
#grownex-form button {
    display: block;
    width: 100%;
    padding: 14px 0;
    border: none;
    border-radius: 12px;
    background: #DA2738; /* primary solid color */
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(218,39,56,0.3);
}

#grownex-form button:hover {
    background: #b21f2d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(218,39,56,0.4);
}

/* Success/Error Message */
#grownex-message {
    margin-top: 18px;
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    transition: all 0.3s ease;
}
