/**
 * GMSP Sponsor & Donation - Fresh Luxury UI
 * Namespace: gmsp-
 */

.gmsp-donation-widget,
.gmsp-donation-widget *,
.gmsp-donation-widget *::before,
.gmsp-donation-widget *::after {
    box-sizing: border-box;
}

.gmsp-donation-widget {
    max-width: 720px;
    margin: 60px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 0 15px;
    width: 100%;
}

.gmsp-header {
    text-align: center;
    margin-bottom: 40px;
}

.gmsp-header h1 {
    font-size: 38px;
    font-weight: 900;
    color: #071B3A;
    margin: 0 0 12px 0;
    letter-spacing: -1.5px;
}

.gmsp-header p {
    font-size: 17px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.gmsp-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 45px;
    box-shadow: 0 20px 60px rgba(7, 27, 58, 0.1);
    border: 1px solid rgba(7, 27, 58, 0.05);
}

/* Segmented Switch */
.gmsp-type-switch {
    display: flex;
    position: relative;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 16px;
    margin-bottom: 35px;
    border: 1px solid #e2e8f0;
}

.gmsp-type-btn {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #475569;
    font-weight: 700;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.gmsp-type-btn.active {
    color: #ffffff;
}

.gmsp-type-switch::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: #071B3A;
    border-radius: 12px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 4px 12px rgba(7, 27, 58, 0.2);
}

.gmsp-type-switch[data-active="sponsor"]::before {
    transform: translateX(100%);
}

/* Amount Grid */
.gmsp-label {
    display: block;
    font-weight: 800;
    font-size: 13px;
    color: #071B3A;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    text-align: center;
}

.gmsp-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.gmsp-amount-card {
    padding: 20px 10px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 18px;
    font-weight: 800;
    color: #071B3A;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 17px;
    text-align: center;
}

.gmsp-amount-card:hover {
    border-color: #071B3A;
    background: #f8fbff;
}

.gmsp-amount-card.active {
    background: #071B3A;
    border-color: #071B3A;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(7, 27, 58, 0.15);
}

/* Custom Input */
.gmsp-custom-amount-wrap {
    display: flex;
    margin-bottom: 35px;
    width: 100%;
}

.gmsp-custom-amount-wrap .prefix {
    background: #f8fafc;
    color: #071B3A;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    border-radius: 16px 0 0 16px;
    border: 2px solid #e5e7eb;
    border-right: none;
}

.gmsp-custom-amount-wrap input {
    flex: 1;
    height: 60px;
    padding: 0 20px;
    border: 2px solid #e5e7eb;
    border-radius: 0 16px 16px 0;
    font-size: 20px;
    font-weight: 800;
    color: #071B3A;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s;
}

.gmsp-custom-amount-wrap input:focus {
    border-color: #071B3A;
}

/* Remove Arrows */
.gmsp-custom-amount-wrap input::-webkit-outer-spin-button,
.gmsp-custom-amount-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Sponsor Form */
.gmsp-sponsor-fields {
    display: none;
    margin-top: 35px;
    padding-top: 35px;
    border-top: 1px dashed #e2e8f0;
}

.gmsp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gmsp-field {
    margin-bottom: 18px;
}

.gmsp-field label {
    display: block;
    font-weight: 700;
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.gmsp-field input,
.gmsp-field textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    background: #f9fafb;
    transition: all 0.2s;
}

.gmsp-field input:focus {
    border-color: #071B3A;
    background: #fff;
    outline: none;
}

.gmsp-field.full-width {
    grid-column: span 2;
}

/* Submit */
.gmsp-submit-btn {
    width: 100%;
    height: 64px;
    background: linear-gradient(135deg, #071B3A 0%, #1a3a6a 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 18px;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(7, 27, 58, 0.2);
}

.gmsp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(7, 27, 58, 0.25);
    background: linear-gradient(135deg, #0a254d 0%, #204a80 100%);
}

.gmsp-submit-btn:active {
    transform: translateY(0);
}

/* Error */
.gmsp-error-message {
    color: #ef4444;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    display: none;
    background: #fef2f2;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #fee2e2;
}

/* Trust */
.gmsp-trust {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
}

.gmsp-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
}

.gmsp-trust-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #10b981;
}

/* Loading */
.gmsp-spinner {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #F4B63D;
    animation: gmsp-spin 0.8s linear infinite;
}

@keyframes gmsp-spin {
    to { transform: rotate(360deg); }
}

.loading .gmsp-spinner {
    display: inline-block;
}

/* Responsive */
@media (max-width: 650px) {
    .gmsp-amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gmsp-form-grid {
        grid-template-columns: 1fr;
    }
    .gmsp-field.full-width {
        grid-column: span 1;
    }
    .gmsp-card {
        padding: 30px 20px;
    }
}
