/* Modern AI-focused design with light gray background */
:root {
    --primary-bg: #000000;
    --secondary-bg: #121212;
    --form-bg: #f7f7f7;
    --text-color: #ffffffe3;
    --button-color: #1e90ff;
    --button-hover: #0078f2;
    --input-bg: #ffffff;
    --input-text: #333333;
    --focus-color: rgba(30, 144, 255, 0.5);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    padding: 0px;
    text-align: center;
}

.site-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
}

h1 .elementor-heading-title .elementor-size-default {
    margin-bottom: 50px;
}

.elementor-default .elementor-widget-text-editor p:last-child .elementor-18124 .elementor-element.elementor-element-8befeff{
    margin-bottom: 50px;
}

.elementor-18124 .elementor-element.elementor-element-f63dff3 .elementor-button {
    background-color: #7052ec;
    color: white;
    fill: white;
}

.elementor-18124 .elementor-element.elementor-element-593243b .elementor-button {
    background-color: #7052ec;
    color: white;
    fill: white;
}

#ai-trading-form {
    padding: 40px 0 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-wrapper {
    background-color: var(--form-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-color), 
                0 5px 15px rgba(0, 0, 0, 0.05),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    padding: 40px;
    position: relative;
    overflow: hidden;
    color: var(--input-text);
}

/* Add modern AI pattern to background */
.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(30, 144, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(30, 144, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

h2 {
    color: var(--input-text);
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.alert-message {
    display: none;
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border-right: 4px solid #e74c3c;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

form {
    display: grid;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 500;
    color: var(--input-text);
}

input, select, textarea {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--input-bg);
    color: var(--input-text);
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--button-color);
    box-shadow: 0 0 0 3px var(--focus-color), 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.form-submit {
    margin-top: 10px;
    text-align: center;
}

button {
    background-color: #7052ec;
    color: #fff;
    padding: 14px 30px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 4px 6px rgba(30, 144, 255, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

button:hover {
    background-color: #7052ec;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(30, 144, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(30, 144, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Add pulse effect on button */
button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 100%;
    transform: scale(0);
    opacity: 1;
    animation: ripple 1s ease-out infinite;
    animation-play-state: paused;
}

button:hover::after {
    animation-play-state: running;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(40);
        opacity: 0;
    }
}

.hidden {
    display: none;
}

footer {
    background-color: var(--primary-bg);
    padding: 20px 0;
    text-align: center;
}

footer p {
    font-size: 14px;
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 12px;
    opacity: 0.7;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

.invalid-input {
    border-color: #e74c3c;
    animation: shake 0.5s linear;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    button {
        width: 100%;
        font-size: 16px;
        padding: 12px 20px;
    }
}