/* Lead Automation Styles */

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 3rem;
    border-radius: 32px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.form-title {
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.lead-form-dark .form-title {
    color: #fff;
}

.lead-form-light .form-title {
    color: #1a1a1a;
}

/* Base Inputs */
.lead-form input,
.lead-form select,
.form-group-select {
    width: 100%;
    padding: 1.1rem 1.2rem;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Dark Theme (Glassmorphism) */
.lead-form-dark {
    background: rgba(18, 34, 58, 0.45);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    padding: 2.5rem;
}

.lead-form-dark .form-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.lead-form-dark input {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    height: 55px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.lead-form-dark select,
.lead-form-dark .form-group-select {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    height: 55px;
    padding-left: 20px;
    padding-right: 45px;
    font-size: 1rem;
    margin-bottom: 15px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1rem;
}

.lead-form-dark input:focus,
.lead-form-dark select:focus {
    background-color: rgba(255, 255, 255, 0.08); /* use background-color to preserve image */
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
    box-shadow: none;
}

.lead-form-dark input::placeholder {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.lead-form-dark select:invalid,
.lead-form-dark select option[value=""][disabled] {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.lead-form-dark .btn-submit {
    height: 55px;
    border-radius: 12px;
    margin-top: 10px;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* RTL Specific Adjustments */
html[dir="rtl"] .lead-form-dark input {
    padding-right: 20px;
    padding-left: 20px;
}

html[dir="rtl"] .lead-form-dark select {
    padding-right: 20px;
    padding-left: 45px;
    background-position: left 1.5rem center;
}

/* Light Theme (Clean Premium) */
.lead-form-light {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.lead-form-light input,
.lead-form-light select,
.lead-form-light .form-group-select {
    background: #f8f9fa;
    color: #1a1a1a;
    border-color: rgba(0,0,0,0.08);
}

.lead-form-light input:focus,
.lead-form-light select:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

.lead-form-light input::placeholder {
    color: #666;
}

.lead-form-light select:invalid,
.lead-form-light select option[value=""][disabled] {
    color: #666;
}

.lead-form select option {
    background: #fff;
    color: #1a1a1a;
}

.lead-form-dark select option {
    background: #12223a;
    color: #fff;
}

@media (max-width: 600px) {
    .lead-form {
        padding: 2.5rem 2rem;
    }
    .lead-form-dark {
        padding: 3rem 2rem;
    }
    .lead-form-dark input,
    .lead-form-dark select,
    .lead-form-dark .btn-submit {
        height: 60px;
        font-size: 1rem;
    }
}

.lead-form button {
    padding: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #c5a059 0%, #a68545 100%);
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lead-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.wa-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.wa-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
    color: #fff;
}

.wa-link i {
    font-size: 1.4rem;
}

/* Floating WhatsApp Version */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-float:hover {
    transform: scale(1.1) rotate(10deg);
    color: #fff;
}

/* RTL Support */
[dir="rtl"] .wa-float {
    right: auto;
    left: 30px;
}
