/* Public Styles for InnoGIVE */

.ig-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.ig-form {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ig-form-group {
    margin-bottom: 20px;
}

.ig-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ig-text-color);
}

.ig-form-group input[type="text"],
.ig-form-group input[type="email"],
.ig-form-group input[type="password"],
.ig-form-group input[type="number"],
.ig-form-group input[type="tel"],
.ig-form-group input[type="url"],
.ig-form-group input[type="date"],
.ig-form-group select,
.ig-form-group textarea,
.ig-input,
.ig-textarea,
.ig-select {
    width: 100%;
    max-width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.ig-form-group input[type="file"] {
    padding: 5px 0;
}

.ig-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.ig-radio-group,
.ig-checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ig-radio-group label,
.ig-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

/* Custom field specific styling */
.ig-custom-field {
    margin-bottom: 20px;
}

.ig-custom-field .ig-input,
.ig-custom-field .ig-textarea,
.ig-custom-field .ig-select {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ig-radio-label,
.ig-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: normal;
}

/* Pricing field styling */
.ig-price-badge {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 10px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ig-custom-amount-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.ig-custom-amount-wrapper .ig-currency-symbol {
    color: #059669;
    font-weight: 700;
    font-size: 18px;
}

/* Number field wrapper */
.ig-number-field-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ig-number-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.ig-number-input {
    width: 100%;
    padding: 10px 85px 10px 12px !important;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    -moz-appearance: textfield;
    pointer-events: auto !important;
    cursor: text;
    background: white;
    min-height: 44px;
    box-sizing: border-box;
    line-height: 24px;
}

.ig-number-input::-webkit-outer-spin-button,
.ig-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ig-number-input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.ig-number-buttons {
    position: absolute !important;
    right: 10px !important;
    top: 50%;
    transform: translateY(-50%);
    display: flex !important;
    align-items: center;
    z-index: 1;
    pointer-events: none;
}

.ig-number-buttons .ig-number-btn {
    pointer-events: auto;
}

.ig-number-buttons .ig-number-btn:first-child {
    margin-left: 0;
}

.ig-number-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
    padding: 0;
    margin-left: 10px;
    flex-shrink: 0;
}

.ig-number-btn:hover {
    background: #059669;
    color: white;
    border-color: #059669;
}

.ig-number-btn:active {
    background: #047857;
    border-color: #047857;
    transform: scale(0.95);
}

.ig-number-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.ig-field-description {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #059669;
    font-style: italic;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ig-field-description::before {
    content: "💚";
    font-size: 14px;
}

.ig-radio-label input[type="radio"],
.ig-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.ig-checkbox-label span,
.ig-radio-label span {
    margin-left: 8px;
}

.ig-checkbox-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 4px;
}

.ig-field-error {
    color: #dc2626;
    font-size: 14px;
    margin-top: 4px;
}


.ig-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--ig-primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ig-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.ig-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ig-btn-secondary {
    background: #6c757d;
}

.ig-teams-grid {
    margin: 30px 0;
}

.ig-teams-grid > * {
    display: flex !important;
    flex-direction: column !important;
}

.ig-team-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.ig-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Item type labels (Team / Deelnemer) */
.ig-item-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ig-item-label-team {
    background-color: #1e87f0;
    color: #ffffff;
}

.ig-item-label-participant {
    background-color: #32d296;
    color: #ffffff;
}

.ig-team-card .uk-card-media-top {
    flex-shrink: 0;
}

.ig-team-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
}

/* Photo placeholder styling */
.ig-photo-placeholder {
    width: 100%;
    height: 200px;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.ig-photo-placeholder svg {
    width: 50%;
    height: 50%;
    max-width: 80px;
    max-height: 80px;
}

/* Ensure the img and placeholder in grid view have same dimensions */
.ig-team-photo.ig-photo-placeholder {
    height: 200px;
}

.ig-team-photo-placeholder {
    width: 100%;
    height: 300px;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 8px;
}

.ig-team-photo-placeholder svg {
    width: 80px;
    height: 80px;
}

/* ig-team-content padding is handled by uk-card-body */

/* Make team card body a flex column to align footer elements */
.ig-team-card .uk-card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: 0 !important;
}

.ig-team-card .ig-team-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    height: 100% !important;
}

.ig-team-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: 0 !important;
}

.ig-team-content-top {
    flex: 1 1 auto !important;
}

.ig-team-content-bottom {
    margin-top: auto !important;
    flex-shrink: 0 !important;
}

/* Ensure footer elements align at same height across all cards */
.ig-teams-grid .ig-team-item {
    display: flex !important;
    flex-direction: column !important;
}

.ig-teams-grid .ig-team-item > .ig-team-card {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    height: 100% !important;
}

/* Ensure stats and actions maintain consistent height */
.ig-team-stats,
.ig-team-actions {
    flex-shrink: 0 !important;
}

/* Remove duplicate rule - handled above */

.ig-team-name {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: var(--ig-primary-color);
}

.ig-team-stats {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    flex-shrink: 0 !important;
}

.ig-team-stat {
    flex: 1;
    text-align: center;
}

.ig-team-stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--ig-primary-color);
}

.ig-team-stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-top: 5px;
}

.ig-team-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 70px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ig-team-actions {
    margin-top: 15px;
    flex-shrink: 0;
}

.ig-members-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.ig-member-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.ig-member-item.ig-member-clickable:hover {
    background: #efefef;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ig-member-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #ddd;
    flex-shrink: 0;
}

.ig-member-photo-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e5e5;
    color: #999;
}

.ig-member-photo-placeholder svg {
    width: 30px;
    height: 30px;
}

.ig-member-info {
    flex: 1;
}

.ig-member-name {
    font-weight: 600;
    color: var(--ig-text-color);
}

.ig-member-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ig-member-link:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Team Captain Controls */
.ig-captain-controls {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.ig-captain-controls button {
    margin: 0;
    background: white !important;
    color: #667eea !important;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.ig-captain-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ig-captain-controls::before {
    content: '👑';
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}

.ig-member-role {
    font-size: 14px;
    color: #666;
}

.ig-member-role.captain {
    color: var(--ig-primary-color);
    font-weight: 600;
}

.ig-progress-bar {
    width: 100%;
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
}

.ig-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ig-primary-color), #0099ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: width 0.5s ease;
}

.ig-goal-info {
    text-align: center;
    margin: 10px 0;
    color: #666;
}

.ig-donation-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.ig-amount-btn {
    padding: 15px;
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ig-amount-btn:hover,
.ig-amount-btn.active {
    background: var(--ig-primary-color);
    color: #fff;
    border-color: var(--ig-primary-color);
}

.ig-qr-code {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ig-qr-code img {
    max-width: 300px;
    height: auto;
}

.ig-timeline {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.ig-timeline-item {
    position: relative;
    padding: 0 0 30px 40px;
    border-left: 2px solid #ddd;
}

.ig-timeline-item:last-child {
    border-left: none;
}

.ig-timeline-icon {
    position: absolute;
    left: -10px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--ig-primary-color);
    border-radius: 50%;
}

.ig-timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ig-timeline-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.ig-sponsors-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.ig-sponsors-grid.equal {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.ig-sponsor-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ig-sponsor-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.ig-sponsor-name {
    font-weight: 600;
    margin: 10px 0;
}

.ig-sponsor-amount {
    color: var(--ig-primary-color);
    font-weight: 600;
}

.ig-alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.ig-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ig-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ig-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
    
    .ig-team-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .ig-donation-amounts {
        grid-template-columns: 1fr 1fr;
    }
}

/* Shortcode Titles */
.ig-shortcode-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--ig-text-color, #333);
}

/* Hide default titles in shortcode output when using custom title or no-title mode */
.ig-shortcode-no-title > h1:first-child,
.ig-shortcode-no-title > h2:first-child,
.ig-shortcode-no-title > h3:first-child {
    display: none;
}

/* Team Choice Cards */
.ig-team-choice-card {
    transition: all 0.3s ease;
    border: 3px solid transparent;
    padding: 30px 20px !important;
    position: relative;
    overflow: visible;
}

.ig-team-choice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Active state - both :has() for modern browsers and class for compatibility */
.ig-team-choice-card:has(input:checked),
.ig-team-choice-card.ig-team-choice-active {
    border-color: #1e87f0 !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #e3f2fd 100%);
    box-shadow: 0 8px 24px rgba(30, 135, 240, 0.25) !important;
}

.ig-team-choice-card:has(input:checked)::after,
.ig-team-choice-card.ig-team-choice-active::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: #1e87f0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.ig-team-choice-card [uk-icon] {
    color: #ff8903;
    transition: color 0.3s ease;
}

.ig-team-choice-card:has(input:checked) [uk-icon],
.ig-team-choice-card.ig-team-choice-active [uk-icon] {
    color: #1e87f0;
}

.ig-team-choice-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Responsive: Stack cards on mobile */
@media (max-width: 640px) {
    .ig-team-choice-card {
        padding: 25px 15px !important;
    }
}

/* Team Fields Animation */
#new-team-fields,
#existing-team-fields {
    overflow: hidden;
}

/* UIkit Spinner in Button */
button[type="submit"] [uk-spinner] {
    display: inline-block;
    vertical-align: middle;
}

/* WCAG-Compliant Form Validation */
.ig-field-error {
    border-color: #f0506e !important;
    background-color: #fff5f7 !important;
}

.ig-field-error:focus {
    border-color: #f0506e !important;
    box-shadow: 0 0 0 3px rgba(240, 80, 110, 0.1) !important;
}

.ig-error-message {
    display: block;
    color: #f0506e;
    font-size: 14px;
    margin-top: 5px;
    padding: 8px 12px;
    background: #fff5f7;
    border-left: 3px solid #f0506e;
    border-radius: 4px;
    font-weight: 500;
}

.ig-error-message::before {
    content: '⚠ ';
    font-weight: bold;
    margin-right: 4px;
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* Skip to main content link (WCAG) */
.ig-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1e87f0;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.ig-skip-link:focus {
    top: 0;
}

/* ========================================
   ENHANCED DONATION FORM STYLING
   ======================================== */

.ig-donation-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    /* padding: 20px; */
}

.ig-donation-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Header */
.ig-donation-header {
    background: linear-gradient(135deg, #1e87f0 0%, #0f6ecd 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.ig-donation-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.ig-donation-icon {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

/* Target Section */
.ig-donation-target {
    background: linear-gradient(135deg, #f0f9ff 0%, #e3f2fd 100%);
    padding: 25px 30px;
    border-bottom: 3px solid #1e87f0;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.ig-donation-target-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 200px;
}

.ig-donation-target-item > span {
    color: #1e87f0;
    flex-shrink: 0;
}

.ig-donation-target-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ig-donation-target-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e87f0;
}

/* Form */
.ig-donation-form {
    padding: 40px 30px;
}

.ig-donation-section {
    margin-bottom: 40px;
}

.ig-donation-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.ig-donation-label span[uk-icon] {
    color: #1e87f0;
}

.ig-required {
    color: #f0506e;
    font-size: 18px;
}

/* Amount Buttons */
.ig-donation-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.ig-amount-btn {
    background: white;
    border: 3px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    overflow: hidden;
}

.ig-amount-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(140deg, rgba(41, 143, 45, 1) 0%, rgba(38, 189, 101, 1) 100%);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.ig-amount-btn:hover,
.ig-amount-btn:focus {
    border-color: #2b7f1e;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(41, 143, 45, 0.3);
}

.ig-amount-btn:hover::before,
.ig-amount-btn:focus::before {
    background: linear-gradient(140deg, rgba(35, 120, 38, 1) 0%, rgba(32, 158, 85, 1) 100%);
}

.ig-amount-btn:hover .ig-amount-currency,
.ig-amount-btn:hover .ig-amount-value,
.ig-amount-btn:focus .ig-amount-currency,
.ig-amount-btn:focus .ig-amount-value {
    color: white;
}

.ig-amount-btn.active {
    border-color: #1e87f0;
    box-shadow: 0 8px 24px rgba(30, 135, 240, 0.3);
    transform: translateY(-2px);
}

.ig-amount-btn.active::before {
    opacity: 1;
}

.ig-amount-currency,
.ig-amount-value {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.ig-amount-currency {
    font-size: 16px;
    color: #ffffff7a;
    font-weight: 600;
}

.ig-amount-value {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
}

.ig-amount-btn.active .ig-amount-currency,
.ig-amount-btn.active .ig-amount-value {
    color: white;
}

/* Custom Amount */
.ig-custom-amount-wrapper {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ig-custom-amount-wrapper:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ig-custom-amount-wrapper:focus-within,
.ig-custom-amount-wrapper.ig-highlight {
    border-color: #1e87f0;
    box-shadow: 0 4px 12px rgba(30, 135, 240, 0.15);
    cursor: default;
}

.ig-custom-amount-wrapper.ig-field-error {
    border-color: #f0506e;
    box-shadow: 0 4px 12px rgba(240, 80, 110, 0.15);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.ig-custom-amount-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 8px;
    font-weight: 600;
}

.ig-custom-amount-label span[uk-icon] {
    color: #1e87f0;
}

.ig-custom-amount-input {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    cursor: text;
}

.ig-custom-amount-input:hover {
    background: #ffffff;
    border-color: #1e87f0;
    box-shadow: 0 2px 8px rgba(30, 135, 240, 0.1);
}

.ig-custom-amount-input:focus-within {
    background: #ffffff;
    border-color: #1e87f0;
    box-shadow: 0 0 0 3px rgba(30, 135, 240, 0.1);
}

.ig-amount-prefix {
    font-size: 24px;
    font-weight: 700;
    color: #1e87f0;
    margin-right: 8px;
    user-select: none;
}

.ig-custom-amount-input input {
    flex: 1;
    border: none;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    padding: 0;
    background: transparent;
    box-sizing: border-box;
    min-width: 100px;
}

.ig-custom-amount-input input::placeholder {
    color: #9ca3af;
    opacity: 0.6;
}

.ig-custom-amount-input input:focus {
    outline: none;
}

/* Donor Section */
.ig-donor-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ig-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.ig-section-title span[uk-icon] {
    color: #1e87f0;
}

.ig-optional-label {
    font-size: 14px;
    font-weight: 400;
    color: #999;
    font-style: italic;
}

.ig-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ig-form-row .ig-form-group {
    margin-bottom: 0;
}

.ig-donor-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.ig-donor-section label span[uk-icon] {
    color: #1e87f0;
}

.ig-donor-section input,
.ig-donor-section textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.ig-donor-section input:focus,
.ig-donor-section textarea:focus {
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    outline: none;
}

.ig-donor-section textarea {
    resize: vertical;
    min-height: 100px;
}

.ig-field-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    font-style: italic;
}

.ig-field-hint span[uk-icon] {
    color: #1e87f0;
    opacity: 0.6;
}

/* Notice */
.ig-donation-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.ig-donation-notice > span {
    color: #ff6f00;
    flex-shrink: 0;
}

.ig-donation-notice strong {
    display: block;
    color: #ff6f00;
    font-size: 16px;
    margin-bottom: 4px;
}

.ig-donation-notice p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

/* Custom Text */
.ig-donation-custom-text {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f9ff 100%);
    border: 2px solid #1e87f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.ig-donation-custom-text > span {
    color: #1e87f0;
    flex-shrink: 0;
}

.ig-donation-custom-text div {
    flex: 1;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.ig-donation-custom-text p:first-child {
    margin-top: 0;
}

.ig-donation-custom-text p:last-child {
    margin-bottom: 0;
}

/* Footer */
.ig-donation-footer {
    text-align: center;
}

.ig-donation-submit {
    background: linear-gradient(135deg, #1e87f0 0%, #0f6ecd 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 50px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(30, 135, 240, 0.3);
    position: relative;
    overflow: hidden;
}

.ig-donation-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ig-donation-submit:hover::before,
.ig-donation-submit:focus::before {
    width: 300px;
    height: 300px;
}

.ig-donation-submit:hover,
.ig-donation-submit:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 135, 240, 0.4);
    outline: none;
}

.ig-donation-submit:focus {
    box-shadow: 0 0 0 3px rgba(30, 135, 240, 0.3), 0 8px 25px rgba(30, 135, 240, 0.4);
}

.ig-donation-submit:active {
    transform: translateY(-1px);
}

.ig-donation-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.ig-submit-icon,
.ig-submit-text,
.ig-submit-arrow {
    position: relative;
    z-index: 1;
}

.ig-submit-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ig-submit-arrow {
    transition: transform 0.3s ease;
}

.ig-donation-submit:hover .ig-submit-arrow,
.ig-donation-submit:focus .ig-submit-arrow {
    transform: translateX(5px);
}

.ig-secure-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

.ig-secure-notice span[uk-icon] {
    color: #28a745;
}

/* Responsive */
@media (max-width: 640px) {
    .ig-donation-wrapper {
        padding: 10px;
    }
    
    .ig-donation-header {
        padding: 30px 20px;
    }
    
    .ig-donation-title {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }
    
    .ig-donation-target {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .ig-donation-form {
        padding: 30px 20px;
    }
    
    .ig-donation-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ig-amount-value {
        font-size: 24px;
    }
    
    .ig-custom-amount-input input {
        font-size: 24px;
    }
    
    .ig-form-row {
        grid-template-columns: 1fr;
    }
    
    .ig-donor-section {
        padding: 20px;
    }
    
    .ig-donation-submit {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .ig-donation-title {
        font-size: 20px;
    }
    
    .ig-donation-amounts {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .ig-amount-btn {
        padding: 15px 10px;
    }
    
    .ig-amount-value {
        font-size: 20px;
    }
}

/* TinyMCE z-index fixes for UIkit modals */
.mce-panel,
.mce-floatpanel,
.mce-menu,
.mce-window,
.tox-tinymce-aux,
.tox-dialog-wrap,
.tox-dialog {
    z-index: 99999 !important;
}

/* Ensure TinyMCE toolbar is clickable in modal */
.mce-toolbar,
.mce-toolbar-grp,
.tox-toolbar,
.tox-toolbar-overlord {
    position: relative !important;
    z-index: 1 !important;
}

/* TinyMCE editor area in modal */
#ig-blog-modal .mce-edit-area,
#ig-blog-modal .mce-container-body,
#ig-blog-modal iframe {
    pointer-events: auto !important;
}

/* ================================================================
   TEAM PHOTO LIGHTBOX
   ================================================================ */

.ig-team-photo-container {
    position: relative;
    margin-bottom: 20px;
}

.ig-team-photo-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.ig-team-photo-link:hover .ig-team-photo-img {
    transform: scale(1.05);
}

.ig-team-photo-img {
    transition: transform 0.3s ease;
    display: block;
    width: 100%;
}

/* Fallback modal styles */
.ig-photo-modal {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ig-photo-modal img {
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 4px;
}

.ig-photo-modal button:hover {
    background: rgba(255,255,255,0.3) !important;
}

/* Ensure UIkit lightbox is always on top */
.uk-lightbox {
    z-index: 999999 !important;
}

.uk-lightbox-items {
    z-index: 999999 !important;
}

/* ================================================================
   TEAM STATS CARDS
   ================================================================ */

.ig-team-stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.ig-stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ig-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.ig-stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ig-stat-icon svg {
    width: 40px;
    height: 40px;
}

.ig-stat-content {
    flex: 1;
    min-width: 0;
}

.ig-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 5px;
}

.ig-stat-label {
    font-size: 14px;
    color: #7f8c8d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 992px) {
    .ig-team-stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ig-team-stats-cards {
        grid-template-columns: 1fr;
    }
    
    .ig-stat-card {
        padding: 20px;
    }
    
    .ig-stat-icon {
        width: 60px;
        height: 60px;
    }
    
    .ig-stat-value {
        font-size: 20px;
    }
}

/* ================================================================
   EMAIL CONTACT BUTTONS
   ================================================================ */

.ig-member-name-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ig-email-contact-btn {
    background: transparent;
    border: 1px solid #667eea;
    color: #667eea;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: 1;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.ig-email-contact-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ig-email-contact-btn svg {
    width: 14px;
    height: 14px;
}

/* On participant profile page */
.uk-flex .ig-email-contact-btn {
    font-size: 14px;
    padding: 6px 12px;
}

.uk-flex .ig-email-contact-btn svg {
    width: 16px;
    height: 16px;
}

/* ================================================================
   BACK TO TEAMS BUTTON
   ================================================================ */

.ig-back-to-teams-overview,
.ig-back-to-team {
    animation: slideInFromLeft 0.4s ease-out;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 1200px;
    margin: 0px auto 40px auto;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ig-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ig-back-btn:hover {
    transform: translateX(-3px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.ig-back-btn span[uk-icon] {
    transition: transform 0.3s ease;
}

.ig-back-btn:hover span[uk-icon] {
    transform: translateX(-3px);
}

/* Login Link Styling */
.ig-login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.ig-login-link:hover {
    color: #667eea;
    text-decoration: underline;
}

.ig-login-link span[uk-icon] {
    transition: all 0.3s ease;
}

.ig-login-link:hover span[uk-icon] {
    color: #667eea;
}

/* ================================================================
   TEAMS OVERVIEW CONTROLS - MODERNE BALK
   ================================================================ */

.ig-teams-controls {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    overflow: hidden;
}

.ig-teams-controls-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 15px 25px;
}

/* Search wrapper */
.ig-teams-search-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 0 15px;
    transition: all 0.3s;
}

.ig-teams-search-wrapper:focus-within {
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.ig-search-icon {
    color: #667eea;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Teams Container Wrapper */
.ig-teams-container-wrapper {
    position: relative !important;
    min-height: 200px; /* Ensure wrapper has height for overlay */
}

/* Loading Overlay */
.ig-teams-loading-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 200px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1000 !important;
    display: none !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 40px !important;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ig-teams-loading-overlay.show {
    display: flex !important;
    opacity: 1 !important;
}

.ig-teams-loading-spinner {
    color: #667eea;
}

.ig-teams-loading-spinner svg {
    display: block;
    animation: ig-spin 1s linear infinite;
}

@keyframes ig-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.ig-teams-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 12px;
    font-size: 15px;
    outline: none;
    color: #333;
    margin: 0 10px;
}

.ig-teams-search-input::placeholder {
    color: #999;
}

.ig-search-count {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* Sort wrapper */
.ig-teams-sort-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 0 15px;
    margin-left: 10px;
    transition: all 0.3s;
}

.ig-teams-sort-wrapper:hover {
    background: white;
}

.ig-sort-icon {
    color: #667eea;
    margin-right: 10px;
    flex-shrink: 0;
}

.ig-teams-sort-select {
    border: none;
    background: transparent;
    padding: 12px 8px 12px 0;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    color: #333;
}

/* View toggle wrapper */
.ig-teams-view-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px;
    border-radius: 8px;
}

.ig-view-toggle-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-view-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ig-view-toggle-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ================================================================
   TEAMS LIST VIEW
   ================================================================ */

.ig-teams-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Hidden class for filtering - works with UIKit grid */
.uk-grid .ig-hidden,
.ig-teams-grid .ig-hidden,
.ig-teams-grid > .ig-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    max-height: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
}

.ig-teams-list .ig-hidden {
    display: none !important;
}

.ig-team-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.ig-team-list-item:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.ig-team-list-photo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #e5e5e5;
}

.ig-team-list-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ig-team-list-photo .ig-photo-placeholder {
    width: 100px;
    height: 100px;
    background: #e5e5e5;
    border-radius: 8px;
}

.ig-team-list-photo .ig-photo-placeholder svg {
    width: 40px;
    height: 40px;
}

.ig-team-list-content {
    flex: 1;
    min-width: 0;
}

.ig-team-list-name {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2271b1;
}

.ig-team-list-description {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.ig-team-list-stats {
    display: flex;
    gap: 30px;
    margin-right: 20px;
}

.ig-team-list-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ig-team-list-stat-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.ig-team-list-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.ig-team-list-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    min-width: 120px;
}

.ig-team-list-actions .uk-button {
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

/* Responsive adjustments for teams controls */
@media (max-width: 992px) {
    .ig-teams-controls-inner {
        flex-wrap: wrap;
    }
    
    .ig-teams-search-wrapper {
        flex: 1 1 100%;
        margin-bottom: 10px;
    }
    
    .ig-teams-sort-wrapper {
        flex: 1;
        margin-left: 0;
    }
    
    .ig-teams-view-wrapper {
        margin-left: 10px;
    }
}

@media (max-width: 768px) {
    .ig-teams-controls-inner {
        padding: 12px;
    }
    
    .ig-teams-search-wrapper {
        padding: 0 12px;
    }
    
    .ig-teams-search-input {
        font-size: 14px;
    }
    
    .ig-teams-sort-wrapper {
        flex: 1 1 auto;
    }
    
    .ig-teams-sort-select {
        font-size: 13px;
    }
    
    .ig-view-toggle-btn {
        padding: 6px 10px;
    }
    
    /* List view on mobile */
    .ig-team-list-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .ig-team-list-photo {
        width: 100%;
        height: 200px;
    }
    
    .ig-team-list-photo .ig-photo-placeholder {
        width: 100%;
        height: 200px;
    }
    
    .ig-team-list-photo .ig-photo-placeholder svg {
        width: 60px;
        height: 60px;
    }
    
    .ig-team-list-stats {
        justify-content: space-around;
        margin-right: 0;
    }
    
    .ig-team-list-actions {
        flex-direction: row;
    }
    
    .ig-team-list-actions .uk-button {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .ig-teams-controls-inner {
        flex-direction: column;
    }
    
    .ig-teams-sort-wrapper,
    .ig-teams-view-wrapper {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .ig-teams-view-wrapper {
        justify-content: center;
    }
    
    /* Back button on mobile */
    .ig-back-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* Login link on mobile */
    .ig-login-link {
        font-size: 13px;
    }
}

/* Payment Method Focus States */
.ig-payment-method-option {
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ig-payment-method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ig-payment-method-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.ig-payment-method-option:hover .ig-payment-method-inner {
    border-color: #2b7f1e;
    box-shadow: 0 4px 12px rgba(41, 143, 45, 0.15);
    transform: translateY(-2px);
}

.ig-payment-method-option input[type="radio"]:focus + .ig-payment-method-inner {
    border-color: #2b7f1e;
    box-shadow: 0 0 0 3px rgba(41, 143, 45, 0.2), 0 4px 12px rgba(41, 143, 45, 0.15);
    outline: none;
    transform: translateY(-2px);
}

.ig-payment-method-option input[type="radio"]:checked + .ig-payment-method-inner {
    border-color: #2b7f1e;
    background: linear-gradient(140deg, rgba(41, 143, 45, 0.05) 0%, rgba(38, 189, 101, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(41, 143, 45, 0.2);
}

.ig-payment-method-option input[type="radio"]:checked:focus + .ig-payment-method-inner {
    box-shadow: 0 0 0 3px rgba(41, 143, 45, 0.25), 0 4px 12px rgba(41, 143, 45, 0.2);
}

.ig-payment-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Registration Form - Team Choice Focus States */
.ig-team-choice-card {
    transition: all 0.3s ease;
}

.ig-team-choice-card:hover {
    border-color: #2b7f1e !important;
    box-shadow: 0 4px 12px rgba(41, 143, 45, 0.15);
    transform: translateY(-2px);
}

.ig-team-choice-radio:focus + div {
    outline: none;
}

.ig-team-choice-card:has(.ig-team-choice-radio:focus) {
    border-color: #2b7f1e !important;
    box-shadow: 0 0 0 3px rgba(41, 143, 45, 0.2), 0 4px 12px rgba(41, 143, 45, 0.15);
    transform: translateY(-2px);
}

.ig-team-choice-card:has(.ig-team-choice-radio:checked) {
    border-color: #2b7f1e !important;
    background: linear-gradient(140deg, rgba(41, 143, 45, 0.05) 0%, rgba(38, 189, 101, 0.05) 100%) !important;
    box-shadow: 0 4px 12px rgba(41, 143, 45, 0.2);
}

.ig-team-choice-card:has(.ig-team-choice-radio:checked:focus) {
    box-shadow: 0 0 0 3px rgba(41, 143, 45, 0.25), 0 4px 12px rgba(41, 143, 45, 0.2);
}

/* Photo Upload Button Focus States */
[uk-form-custom] input[type="file"]:focus ~ input.uk-input {
    border-color: #2b7f1e;
    box-shadow: 0 0 0 3px rgba(41, 143, 45, 0.2);
    outline: none;
}

[uk-form-custom]:hover input.uk-input {
    border-color: #2b7f1e;
    box-shadow: 0 2px 8px rgba(41, 143, 45, 0.1);
}

/* Legend Icons - Large Size with Bottom Aligned Text */
.uk-legend {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.uk-legend .ig-legend-icon {
    flex-shrink: 0;
}

.uk-legend .ig-legend-text {
    line-height: 1.2;
    padding-bottom: 3px;
}

.uk-form-custom {
   left: 3px;
}

/* Fee Recovery Amount - Responsive */
@media (max-width: 640px) {
    /* On small screens, put fee amount on new line */
    #fee-recovery-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .ig-fee-recovery-amount {
        display: block;
        margin-top: 4px;
    }
    
    /* Also adjust fee summary on small screens */
    #fee-summary > div {
        flex-wrap: wrap;
    }
    
    #fee-summary > div > span:last-child {
        width: 100%;
        text-align: right;
        margin-top: 2px;
    }
}

.uk-modal-dialog {
    position: relative;
    box-sizing: border-box;
    margin: 0 auto;
    width: 800px !important;
    max-width: 100% !important;
    background: #fff;
    opacity: 0;
    transform: translateY(-100px);
    transition: .3s linear;
    transition-property: opacity, transform;
}