/* ========== Root Colors ========== */
:root {
    --ggf-cream: #F5E6D3;
    --ggf-dark-cream: #E8D4BC;
    --ggf-burgundy: #A43E4A;
    --ggf-dark-burgundy: #8B3338;
    --ggf-gold: #D4AF7C;
    --ggf-light-gold: #E8C9A0;
    --ggf-text-dark: #2A2A2A;
    --ggf-text-mid: #4A4A4A;
    --ggf-text-light: #777777;
    --ggf-white: #FFFFFF;
    --ggf-off-white: #FFFAF5;
    --ggf-success: #2E7D32;
    --ggf-error: #D32F2F;
    --ggf-info: #1565C0;
}

/* ========== Container ========== */
.ggf-donation-container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--ggf-cream) 0%, var(--ggf-dark-cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

.ggf-donation-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(164, 62, 74, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.ggf-donation-box {
    background: var(--ggf-white);
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(164, 62, 74, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    padding: 0;
    max-width: 680px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(212, 175, 124, 0.3);
    position: relative;
    z-index: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== Header Section ========== */
.ggf-header-section {
    background: linear-gradient(135deg, var(--ggf-burgundy) 0%, var(--ggf-dark-burgundy) 100%);
    padding: 45px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ggf-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ggf-gold), var(--ggf-light-gold), var(--ggf-gold));
    z-index: 2;
}

.ggf-header-section::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.ggf-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.ggf-logo-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ggf-logo-text {
    text-align: left;
}

.ggf-logo-text h3 {
    margin: 0;
    font-size: 24px;
    color: var(--ggf-white);
    font-weight: 800;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ggf-logo-text p {
    margin: 4px 0 0 0;
    font-size: 11px;
    color: rgba(245, 230, 211, 0.9);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.ggf-header-section h2 {
    margin: 0 0 12px 0;
    font-size: 36px;
    font-weight: 800;
    color: var(--ggf-white);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.ggf-subtitle {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--ggf-light-gold);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.ggf-description {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* ========== Form Styling ========== */
.ggf-form {
    padding: 45px 40px;
    background: var(--ggf-white);
}

.ggf-form-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ggf-burgundy);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ggf-gold);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ggf-form-section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--ggf-burgundy);
    border-radius: 2px;
}

.ggf-form-group {
    margin-bottom: 24px;
    position: relative;
}

.ggf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ggf-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ggf-text-dark);
    font-size: 13px;
    letter-spacing: 0.3px;
}

.ggf-form-group .optional-badge {
    color: var(--ggf-text-light);
    font-weight: 500;
    font-size: 11px;
    margin-left: 4px;
    background: #F0F0F0;
    padding: 2px 6px;
    border-radius: 10px;
}

.ggf-form-group input,
.ggf-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E8D4BC;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background: var(--ggf-off-white);
    color: var(--ggf-text-dark);
}

.ggf-form-group input:focus,
.ggf-form-group textarea:focus {
    outline: none;
    border-color: var(--ggf-burgundy);
    box-shadow: 
        0 0 0 4px rgba(164, 62, 74, 0.1),
        0 2px 8px rgba(164, 62, 74, 0.08);
    background: var(--ggf-white);
    transform: translateY(-1px);
}

.ggf-form-group input::placeholder,
.ggf-form-group textarea::placeholder {
    color: #A0A0A0;
    font-size: 13px;
}

.ggf-form-group textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
}

/* ========== Button Styling ========== */
.ggf-btn-donate {
    width: 100%;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--ggf-burgundy) 0%, var(--ggf-dark-burgundy) 100%);
    color: var(--ggf-white) !important;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(164, 62, 74, 0.25);
}

.ggf-btn-donate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.ggf-btn-donate:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(164, 62, 74, 0.35),
        0 5px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #8B3338 0%, #72292E 100%);
}

.ggf-btn-donate:hover::before {
    left: 100%;
}

.ggf-btn-donate:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(164, 62, 74, 0.3);
}

.ggf-btn-donate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-icon {
    font-size: 18px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ========== Security Badge ========== */
.ggf-secure {
    text-align: center;
    color: var(--ggf-text-light);
    font-size: 12px;
    margin-top: 20px;
    margin-bottom: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ggf-secure::before {
    content: '🔒';
    font-size: 14px;
}

/* ========== Message Alerts ========== */
.ggf-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 10px;
    display: none;
    font-size: 14px;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ggf-message.error {
    display: block;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1) 0%, rgba(211, 47, 47, 0.05) 100%);
    color: var(--ggf-error);
    border-left-color: var(--ggf-error);
}

.ggf-message.success {
    display: block;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(46, 125, 50, 0.05) 100%);
    color: var(--ggf-success);
    border-left-color: var(--ggf-success);
}

.ggf-message.loading {
    display: block;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.1) 0%, rgba(21, 101, 192, 0.05) 100%);
    color: var(--ggf-info);
    border-left-color: var(--ggf-info);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========== Spinner ========== */
.ggf-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(164, 62, 74, 0.2);
    border-radius: 50%;
    border-top-color: var(--ggf-burgundy);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .ggf-donation-container {
        padding: 20px 15px;
    }

    .ggf-header-section {
        padding: 35px 25px;
    }

    .ggf-header-section h2 {
        font-size: 28px;
    }

    .ggf-form {
        padding: 35px 25px;
    }

    .ggf-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ggf-logo-section {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .ggf-logo-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ggf-donation-container {
        padding: 15px 10px;
    }

    .ggf-header-section {
        padding: 30px 20px;
    }

    .ggf-header-section h2 {
        font-size: 24px;
    }

    .ggf-subtitle {
        font-size: 16px;
    }

    .ggf-form {
        padding: 30px 20px;
    }

    .ggf-btn-donate {
        padding: 16px;
        font-size: 15px;
    }
}

/* ========== Modal Styles ========== */
.ggf-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

.ggf-modal-content {
    background: var(--ggf-white);
    margin: 5% auto;
    padding: 0;
    max-width: 520px;
    border-radius: 16px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(164, 62, 74, 0.2);
    animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 124, 0.3);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ggf-modal-header {
    background: linear-gradient(135deg, var(--ggf-burgundy) 0%, var(--ggf-dark-burgundy) 100%);
    padding: 20px 25px;
    text-align: right;
    position: relative;
    overflow: hidden;
}

.ggf-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ggf-gold), var(--ggf-light-gold), var(--ggf-gold));
}

.ggf-modal-close {
    color: var(--ggf-white);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ggf-modal-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

.ggf-modal-body {
    padding: 45px 40px;
    text-align: center;
    background: var(--ggf-white);
}

.ggf-success-icon {
    font-size: 72px;
    margin-bottom: 20px;
    display: inline-block;
    animation: successBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 4px 15px rgba(46, 125, 50, 0.3));
}

@keyframes successBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.ggf-modal-body h2 {
    margin: 0 0 15px 0;
    font-size: 32px;
    font-weight: 800;
    color: var(--ggf-burgundy);
    letter-spacing: -0.5px;
}

.ggf-success-text {
    font-size: 17px;
    color: var(--ggf-text-mid);
    margin: 0 0 30px 0;
    line-height: 1.6;
    font-weight: 500;
}

.ggf-success-details {
    background: linear-gradient(135deg, var(--ggf-off-white) 0%, #F8F1E6 100%);
    border: 2px solid var(--ggf-gold);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(212, 175, 124, 0.15);
}

.ggf-success-details p {
    margin: 12px 0;
    font-size: 15px;
    color: var(--ggf-text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ggf-success-details strong {
    color: var(--ggf-burgundy);
    font-weight: 700;
    min-width: 140px;
}

.ggf-success-message {
    font-size: 14px;
    color: var(--ggf-text-mid);
    margin-bottom: 30px;
    line-height: 1.7;
    text-align: center;
    padding: 0 10px;
}

.ggf-modal-btn-primary,
.ggf-modal-btn-secondary {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ggf-modal-btn-primary {
    background: linear-gradient(135deg, var(--ggf-burgundy) 0%, var(--ggf-dark-burgundy) 100%);
    color: var(--ggf-white);
    box-shadow: 0 8px 25px rgba(164, 62, 74, 0.25);
}

.ggf-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(164, 62, 74, 0.35);
    background: linear-gradient(135deg, #8B3338 0%, #72292E 100%);
}

.ggf-modal-btn-secondary {
    background: linear-gradient(135deg, var(--ggf-cream) 0%, var(--ggf-dark-cream) 100%);
    color: var(--ggf-burgundy);
    border: 2px solid var(--ggf-gold);
    box-shadow: 0 4px 15px rgba(212, 175, 124, 0.15);
}

.ggf-modal-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 124, 0.25);
    background: linear-gradient(135deg, var(--ggf-dark-cream) 0%, #E0CBB0 100%);
}

/* ========== Modal Responsive ========== */
@media (max-width: 768px) {
    .ggf-modal-content {
        margin: 10% auto;
        max-width: 90%;
    }

    .ggf-modal-body {
        padding: 35px 25px;
    }

    .ggf-success-icon {
        font-size: 60px;
    }

    .ggf-modal-body h2 {
        font-size: 28px;
    }

    .ggf-success-details {
        padding: 20px;
    }

    .ggf-success-details p {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .ggf-success-details strong {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .ggf-modal-content {
        margin: 15% auto;
        max-width: 95%;
    }

    .ggf-modal-body {
        padding: 30px 20px;
    }

    .ggf-success-icon {
        font-size: 48px;
    }

    .ggf-modal-body h2 {
        font-size: 24px;
    }

    .ggf-modal-btn-primary,
    .ggf-modal-btn-secondary {
        padding: 14px;
        font-size: 14px;
    }
}

/* ========== Print Styles ========== */
@media print {
    .ggf-donation-container,
    .ggf-form,
    .ggf-btn-donate,
    .ggf-secure,
    .ggf-modal {
        display: none;
    }
}

/* ========== Floating Elements ========== */
.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(164, 62, 74, 0.05);
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 124, 0.2);
    z-index: 0;
    animation: float 20s infinite linear;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: -5s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(20px) rotate(270deg);
    }
}