/* ============================================================
 * Lead Capture Form - Styles
 * ============================================================ */

.lcf-form-wrapper {
    max-width: 560px;
    margin: 0 auto;
    direction: rtl;
    text-align: right;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Heebo", "Rubik", Arial, sans-serif;
}

.lcf-form {
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

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

.lcf-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
}

.lcf-req {
    color: #e53935;
    margin-right: 2px;
}

.lcf-form input[type="text"],
.lcf-form input[type="tel"],
.lcf-form input[type="email"],
.lcf-form input[type="number"],
.lcf-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    direction: rtl;
    text-align: right;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.lcf-form input[type="tel"],
.lcf-form input[type="email"] {
    direction: ltr;
    text-align: right;
}

.lcf-form input:focus,
.lcf-form textarea:focus {
    outline: none;
    border-color: #2271b1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.12);
}

.lcf-form textarea {
    resize: vertical;
    min-height: 80px;
}

.lcf-submit {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    margin-top: 8px;
    font-family: inherit;
}

.lcf-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 113, 177, 0.3);
}

.lcf-submit:active:not(:disabled) {
    transform: translateY(0);
}

.lcf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lcf-submit.loading {
    position: relative;
    color: transparent;
}

.lcf-submit.loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-top: -9px;
    margin-left: -9px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: lcf-spin 0.7s linear infinite;
}

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

.lcf-message {
    margin-top: 14px;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
}

.lcf-message.success {
    padding: 12px 14px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 8px;
    border-right: 4px solid #2e7d32;
}

.lcf-message.error {
    padding: 12px 14px;
    background: #ffebee;
    color: #c62828;
    border-radius: 8px;
    border-right: 4px solid #c62828;
}

.lcf-error-box {
    padding: 16px 20px;
    background: #fff3e0;
    color: #e65100;
    border-radius: 8px;
    border-right: 4px solid #e65100;
    text-align: center;
}

.lcf-error-box p {
    margin: 0;
}

/* Mobile */
@media (max-width: 600px) {
    .lcf-form {
        padding: 20px 18px;
        border-radius: 8px;
    }

    .lcf-form input,
    .lcf-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
