/* FIFA Abstract Submission Form Styles */

/* Import Vazirmatn Font */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Override Elementor and theme button styles */
.fifa-abstract-form button,
.fifa-abstract-form .fifa-btn-primary,
.fifa-abstract-form .fifa-btn-secondary,
.fifa-abstract-form .fifa-btn-ghost,
.fifa-abstract-form .fifa-start-button,
.elementor-page .fifa-abstract-form button,
.elementor-page .fifa-abstract-form .fifa-btn-primary,
.elementor-page .fifa-abstract-form .fifa-btn-secondary,
.elementor-page .fifa-abstract-form .fifa-btn-ghost,
.elementor-page .fifa-abstract-form .fifa-start-button {
    font-family: inherit !important;
}

/* Base Styles - Override Elementor styles */
.fifa-abstract-form,
.fifa-abstract-form * {
    box-sizing: border-box;
}

.fifa-abstract-form {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    direction: ltr;
    text-align: left;
    position: relative;
}

/* Full page background - Override Elementor styles */
body:has(.fifa-abstract-form),
body .fifa-abstract-form-wrapper,
.elementor-page .fifa-abstract-form,
.elementor-page:has(.fifa-abstract-form) {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #3b82f6 100%) !important;
    min-height: 100vh !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    position: relative;
}

/* Animated background overlay */
body:has(.fifa-abstract-form)::before,
body .fifa-abstract-form-wrapper::before,
.elementor-page:has(.fifa-abstract-form)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 60, 114, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@media (min-width: 768px) {
    body:has(.fifa-abstract-form),
    body .fifa-abstract-form-wrapper,
    .elementor-page .fifa-abstract-form,
    .elementor-page:has(.fifa-abstract-form) {
        padding: 40px 0 !important;
    }
}

/* Ensure form container has proper styling */
.fifa-abstract-form {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

.fifa-abstract-form[data-lang="fa"],
.fifa-abstract-form[data-lang="ar"] {
    direction: rtl;
    text-align: right;
    font-family: 'Vazirmatn', 'Tajawal', 'Arial', sans-serif;
}

body.fifa-rtl {
    direction: rtl;
}

/* Landing Page */
.fifa-landing-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.95) 0%, rgba(42, 82, 152, 0.95) 50%, rgba(59, 130, 246, 0.95) 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.fifa-landing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.fifa-landing-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.fifa-poster-container {
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.fifa-poster-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    max-height: 500px;
    object-fit: contain;
}

.fifa-landing-text {
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out;
}

.fifa-landing-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.fifa-landing-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.6;
}

.fifa-landing-language {
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease-out;
}

.fifa-landing-language label {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.fifa-landing-lang-select {
    padding: 15px 25px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-size: 16px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    min-width: 200px;
    font-weight: 500;
}

.fifa-landing-lang-select:hover,
.fifa-landing-lang-select:focus {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    outline: none;
}

.fifa-landing-lang-select option {
    background: #667eea;
    color: #fff;
}

.fifa-start-button {
    padding: 18px 50px;
    font-size: 20px;
    font-weight: 600;
    background: #fff !important;
    color: #1e3c72 !important;
    border: none !important;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 0 rgba(255,255,255,0.4);
    animation: fadeInUp 1.4s ease-out, pulse 2s infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

.fifa-start-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(30, 60, 114, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.fifa-start-button:hover::before,
.fifa-start-button:focus::before {
    width: 300px;
    height: 300px;
}

.fifa-start-button:hover,
.fifa-start-button:focus {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4), 0 0 0 4px rgba(255,255,255,0.2);
    background: #fff !important;
    color: #1e3c72 !important;
    border: none !important;
}

.fifa-start-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.fifa-start-button:active {
    transform: translateY(-1px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 10px 40px rgba(255,255,255,0.5);
    }
}

/* Language Switcher */
.fifa-lang-switcher {
    text-align: right;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.9);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fifa-lang-switcher label {
    margin-right: 10px;
    font-weight: 500;
    color: #333;
}

.fifa-lang-switcher select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.fifa-lang-switcher select:hover {
    border-color: #0073aa;
}

/* Main Form */
.fifa-main-form {
    background: #fff !important;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .fifa-main-form {
        padding: 50px;
        margin: 30px 0;
    }
}

/* Header */
.fifa-form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #2563eb;
    position: relative;
}

.fifa-form-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 2px;
}

.fifa-page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e3c72;
    background: linear-gradient(135deg, #1e3c72 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fifa-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* Stepper */
.fifa-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    padding: 0 20px;
}

.fifa-stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.fifa-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.fifa-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.fifa-step.active .fifa-step-number {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transform: scale(1.1);
}

.fifa-step.completed .fifa-step-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.fifa-step-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.fifa-step.active .fifa-step-label {
    color: #2563eb;
    font-weight: 600;
}

/* Progress Text */
.fifa-progress-text {
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

/* Step Content */
.fifa-step-content {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    padding: 40px !important;
    margin-bottom: 30px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: all 0.3s;
    display: none !important;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.fifa-step-content[style*="display: block"],
.fifa-step-content[style*="display:block"] {
    display: block !important;
}

.fifa-step-content:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
    border-color: #2563eb;
}

.fifa-step-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1e3c72;
    border-bottom: 3px solid #2563eb;
    padding-bottom: 15px;
    position: relative;
}

.fifa-step-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #3b82f6;
    border-radius: 2px;
}

.fifa-section {
    margin-bottom: 30px;
}

.fifa-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Form Fields */
.fifa-field {
    margin-bottom: 20px;
}

.fifa-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.fifa-field .required {
    color: #dc3232;
}

.fifa-field input[type="text"],
.fifa-field input[type="email"],
.fifa-field input[type="tel"],
.fifa-field select,
.fifa-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #f8fafc;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s, transform 0.2s;
}

.fifa-field input[type="text"]:focus,
.fifa-field input[type="email"]:focus,
.fifa-field input[type="tel"]:focus,
.fifa-field select:focus,
.fifa-field textarea:focus {
    outline: none;
    border-color: #1d4ed8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 6px 16px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.fifa-field select[multiple] {
    min-height: 120px;
}

.fifa-field textarea {
    resize: vertical;
    min-height: 100px;
}

.fifa-help-text {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.fifa-error {
    display: block;
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.fifa-field.error .fifa-error {
    display: block;
}

.fifa-field.error input,
.fifa-field.error select,
.fifa-field.error textarea {
    border-color: #dc3232;
}

/* Word Counter */
.fifa-word-counter {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-align: right;
}

.fifa-word-counter.exceeded {
    color: #dc3232;
    font-weight: 600;
}

/* Co-Authors */
#fifa-coauthors-list {
    margin-bottom: 15px;
}

.fifa-coauthor-row {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1fr auto;
    gap: 10px;
    margin-bottom: 15px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    align-items: center;
}

.fifa-abstract-form[data-lang="fa"] .fifa-coauthor-row,
.fifa-abstract-form[data-lang="ar"] .fifa-coauthor-row {
    grid-template-columns: auto 1fr 2fr 1fr 2fr;
}

.fifa-coauthor-row input,
.fifa-coauthor-row select {
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

/* Buttons */
.fifa-btn-primary,
.fifa-btn-secondary,
.fifa-btn-ghost {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.5;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.fifa-btn-primary:disabled,
.fifa-btn-secondary:disabled,
.fifa-btn-ghost:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.fifa-btn-primary,
.fifa-abstract-form .fifa-btn-primary,
.fifa-abstract-form button.fifa-btn-primary,
.elementor-page .fifa-abstract-form .fifa-btn-primary,
.elementor-page .fifa-abstract-form button.fifa-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    background-image: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    background-color: #2563eb !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4), 0 2px 4px rgba(0,0,0,0.1) !important;
    border: none !important;
    border-color: transparent !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.fifa-btn-primary::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: left 0.5s;
}

.fifa-btn-primary:hover::before,
.fifa-btn-primary:focus::before {
    left: 100%;
}

.fifa-btn-primary:hover,
.fifa-btn-primary:focus,
.fifa-abstract-form .fifa-btn-primary:hover,
.fifa-abstract-form .fifa-btn-primary:focus,
.fifa-abstract-form button.fifa-btn-primary:hover,
.fifa-abstract-form button.fifa-btn-primary:focus,
.elementor-page .fifa-abstract-form .fifa-btn-primary:hover,
.elementor-page .fifa-abstract-form .fifa-btn-primary:focus {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%) !important;
    background-image: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%) !important;
    background-color: #1d4ed8 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5), 0 4px 8px rgba(0,0,0,0.15) !important;
    border: none !important;
    border-color: transparent !important;
}

.fifa-btn-primary:active,
.fifa-abstract-form .fifa-btn-primary:active,
.fifa-abstract-form button.fifa-btn-primary:active {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
    background-image: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
    background-color: #1e40af !important;
    color: #fff !important;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

.fifa-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.fifa-btn-secondary {
    background: #f8fafc !important;
    color: #1e3c72 !important;
    border: 2px solid #e2e8f0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.fifa-btn-secondary:hover,
.fifa-btn-secondary:focus {
    background: #f1f5f9 !important;
    color: #1e40af !important;
    border-color: #3b82f6 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
}

.fifa-btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.fifa-btn-ghost {
    background: transparent !important;
    color: #2563eb !important;
    border: 2px solid #2563eb !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fifa-btn-ghost:hover,
.fifa-btn-ghost:focus {
    background: rgba(37, 99, 235, 0.1) !important;
    color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}

.fifa-btn-ghost:active {
    background: rgba(37, 99, 235, 0.15) !important;
    transform: translateY(0);
}

/* Form Actions */
.fifa-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 2px solid #e2e8f0;
    margin-top: 30px;
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 10;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.fifa-form-actions-left {
    display: flex;
    gap: 10px;
}

.fifa-nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 768px) {
    .fifa-form-actions {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    
    .fifa-form-actions-left {
        width: 100%;
    }
    
    .fifa-form-actions-left button {
        width: 100%;
    }
    
    .fifa-nav-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .fifa-nav-buttons button {
        width: 100%;
    }
}

/* Checkbox */
.fifa-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.fifa-checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    cursor: pointer;
}

/* Signature Section */
.fifa-signature-section {
    margin-top: 15px;
}

.fifa-signature-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.fifa-signature-tab {
    padding: 10px 20px;
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    color: #1e3c72 !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 14px;
}

.fifa-signature-tab:hover {
    background: #f1f5f9 !important;
    background-color: #f1f5f9 !important;
    border-color: #3b82f6 !important;
    transform: translateY(-1px);
}

.fifa-signature-tab.active {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    background-image: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    background-color: #2563eb !important;
    color: #fff !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

#fifa-signature-canvas {
    display: block;
    width: 100%;
    max-width: 500px;
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: crosshair;
}

#fifa-clear-signature {
    margin-top: 10px;
    padding: 10px 20px;
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    color: #1e3c72 !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 14px;
}

#fifa-clear-signature:hover,
#fifa-clear-signature:focus {
    background: #f1f5f9 !important;
    background-color: #f1f5f9 !important;
    border-color: #3b82f6 !important;
    color: #1e40af !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Success Message */
#fifa-success-message {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 3px solid #10b981;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.2);
}

.fifa-success-content h2 {
    color: #059669;
    font-size: 28px;
    margin: 0;
    line-height: 1.6;
}

#fifa-abstract-id,
.fifa-success-content h2 strong {
    font-weight: 700;
    color: #10b981;
    font-size: 32px;
    display: inline-block;
    margin: 0 5px;
    padding: 5px 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
    #fifa-success-message {
        padding: 40px 20px;
        margin: 20px 0;
    }
    
    .fifa-success-content h2 {
        font-size: 22px;
    }
    
    #fifa-abstract-id,
    .fifa-success-content h2 strong {
        font-size: 24px;
        padding: 4px 12px;
        display: block;
        margin: 10px 0;
    }
}

/* Privacy Notice */
.fifa-privacy-notice {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    font-size: 13px;
    color: #555;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .fifa-abstract-form {
        padding: 16px;
    }
    
    .fifa-page-title {
        font-size: 24px;
    }
    
    .fifa-subtitle {
        font-size: 16px;
    }
    
    .fifa-stepper {
        padding: 0 10px;
    }
    
    .fifa-step-label {
        font-size: 10px;
    }
    
    .fifa-step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .fifa-step-content {
        padding: 20px;
    }
    
    .fifa-coauthor-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .fifa-abstract-form[data-lang="fa"] .fifa-coauthor-row,
    .fifa-abstract-form[data-lang="ar"] .fifa-coauthor-row {
        grid-template-columns: 1fr;
    }
    
    .fifa-form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .fifa-nav-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .fifa-nav-buttons button {
        width: 100%;
    }
    
    #fifa-signature-canvas {
        max-width: 100%;
    }
    
    /* Keywords responsive */
    .fifa-keywords-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .fifa-keywords-tags {
        padding: 6px !important;
        gap: 6px !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .fifa-keyword-tag {
        font-size: 12px !important;
        padding: 5px 10px !important;
        max-width: calc(50% - 10px) !important;
        min-width: 0 !important;
    }
    
    .fifa-keyword-tag > span:first-child {
        max-width: 80px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    .fifa-keywords-input {
        font-size: 14px !important;
        padding: 8px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Step content responsive */
    .fifa-step-content {
        padding: 20px !important;
    }
    
    .fifa-field {
        margin-bottom: 15px;
    }
    
    .fifa-field textarea {
        min-height: 80px;
    }
}

/* RTL Specific Adjustments */
.fifa-abstract-form[data-lang="fa"] .fifa-lang-switcher,
.fifa-abstract-form[data-lang="ar"] .fifa-lang-switcher {
    text-align: left;
}

.fifa-abstract-form[data-lang="fa"] .fifa-privacy-notice,
.fifa-abstract-form[data-lang="ar"] .fifa-privacy-notice {
    border-left: none;
    border-right: 4px solid #2563eb;
}

.fifa-abstract-form[data-lang="fa"] .fifa-word-counter,
.fifa-abstract-form[data-lang="ar"] .fifa-word-counter {
    text-align: left;
}

/* Loading State */
.fifa-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Conditional Fields */
.fifa-field[style*="display: none"] {
    display: none !important;
}

/* Keywords Tags */
.fifa-keywords-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.fifa-keywords-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    min-height: 40px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
}

.fifa-keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    max-width: calc(100% - 40px);
    box-sizing: border-box;
    flex-shrink: 0;
    overflow: hidden;
}

.fifa-keyword-tag > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    display: inline-block;
}

.fifa-keyword-remove {
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    padding-left: 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.fifa-keyword-remove:hover {
    opacity: 1;
}

.fifa-keywords-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.fifa-keywords-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.fifa-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Additional Elementor Overrides */
.elementor-page .fifa-abstract-form,
.elementor-page:has(.fifa-abstract-form) {
    background: transparent !important;
}

.elementor-section:has(.fifa-abstract-form),
.elementor-container:has(.fifa-abstract-form) {
    background: transparent !important;
}

/* Ensure buttons don't inherit theme colors - Strong overrides */
.fifa-abstract-form .fifa-btn-primary,
.fifa-abstract-form button.fifa-btn-primary,
.elementor-page .fifa-abstract-form .fifa-btn-primary,
.elementor-page .fifa-abstract-form button.fifa-btn-primary,
.fifa-abstract-form #fifa-continue-btn,
.fifa-abstract-form #fifa-review-btn,
.fifa-abstract-form #fifa-submit-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    background-image: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    background-color: #2563eb !important;
    color: #fff !important;
    border: none !important;
    border-color: transparent !important;
}

.fifa-abstract-form .fifa-btn-primary:hover,
.fifa-abstract-form button.fifa-btn-primary:hover,
.elementor-page .fifa-abstract-form .fifa-btn-primary:hover,
.fifa-abstract-form #fifa-continue-btn:hover,
.fifa-abstract-form #fifa-review-btn:hover,
.fifa-abstract-form #fifa-submit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%) !important;
    background-image: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%) !important;
    background-color: #1d4ed8 !important;
    color: #fff !important;
}

.fifa-abstract-form .fifa-btn-secondary,
.fifa-abstract-form button.fifa-btn-secondary,
.fifa-abstract-form #fifa-save-draft {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    background-image: none !important;
    color: #1e3c72 !important;
    border: 2px solid #e2e8f0 !important;
}

.fifa-abstract-form .fifa-btn-ghost,
.fifa-abstract-form button.fifa-btn-ghost,
.fifa-abstract-form #fifa-back-btn {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #2563eb !important;
    border: 2px solid #2563eb !important;
}

.fifa-abstract-form .fifa-start-button,
.fifa-abstract-form button.fifa-start-button,
.fifa-abstract-form #fifa-start-btn {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    color: #1e3c72 !important;
    border: none !important;
    width: 100% !important;
    max-width: 400px !important;
    display: block !important;
    margin: 0 auto !important;
}
