.ai-card {
    width: 520px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
    font-family: 'Cairo', sans-serif;
}

.ai-lang-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 22px;
    color: #17c8c8;
    cursor: pointer;
}

.ai-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 25px;
    font-weight: 700;
}

.ai-steps {
    display: flex;
    justify-content: space-between;
    margin: 20px 0 30px;
}

.ai-step {
    flex: 1;
    text-align: center;
    color: #bfbfbf;
}

.ai-step.active {
    color: #17c8c8;
    font-weight: 600;
}

.ai-subtitle {
    font-size: 22px;
    text-align: center;
    margin-bottom: 25px;
}

.ai-input-group {
    margin-bottom: 18px;
    position: relative;
}




.ai-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #17c8c8;
}

.ai-button {
    width: 100%;
    background: linear-gradient(90deg, #13a7a7, #19dfdf);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
}

.ai-row {
    display: flex;
    gap: 12px;
}

/* نفس الارتفاع لكلا المدخلين */
.ai-input-group input,
.ai-input-group select {
    height: 48px !important;
    padding: 0 16px;
    font-size: 16px;
    border: 2px solid #17c8c8;
    border-radius: 12px;
    outline: none;
    box-sizing: border-box;
}

/* تعديل select ليظهر مرتب */
.ai-input-group.small select {
    appearance: none;
    background-color: #fff;
    padding-left: 40px; /* مساحة الأيقونة */
}

/* الأيقونة داخل select */
.ai-input-group.small .ai-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #17c8c8;
}





/* الاتجاه الافتراضي للكارد */
.ai-card {
    direction: rtl; /* لأن اللغة الافتراضية عربي */
    text-align: right;
}

/* لو الكارد LTR */
.ai-card.ltr {
    direction: ltr;
    text-align: left;
}

/* ترتيب الرو داخل RTL */
.ai-card[dir="rtl"] .ai-row {
    flex-direction: row-reverse;
}

/* مكان الأيقونة في RTL */
.ai-card[dir="rtl"] .ai-icon {
    right: 12px;
    left: auto;
}

/* في LTR نخليها عاليسار */
.ai-card[dir="ltr"] .ai-icon {
    left: 12px;
    right: auto;
}



.ai-phone-display {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #17c8c8;
}

.ai-otp-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ai-otp {
    width: 55px;
    height: 55px;
    font-size: 24px;
    text-align: center;
    border: 2px solid #17c8c8;
    border-radius: 12px;
    outline: none;
}

.ai-otp:focus {
    box-shadow: 0 0 10px rgba(23, 200, 200, 0.35);
}

.ai-resend {
    text-align: center;
    color: #17c8c8;
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
}
.ai-helper-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

#ai-business-name {
    height: 52px;
    padding: 0 16px;
    border: 2px solid #17c8c8;
    border-radius: 12px;
    font-size: 16px;
}

#ai-business-name:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(23, 200, 200, 0.25);
}
.ai-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.ai-tag {
    padding: 10px 16px;
    border: 2px solid #17c8c8;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.ai-tag.active {
    background-color: #17c8c8;
    color: white;
}
.ai-locations-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-location-item {
    background: #f5f8fa;
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-location-remove {
    cursor: pointer;
    font-weight: bold;
    color: #d00;
}
.ai-input-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.ai-tag-removable {
    background: #d8eef0;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

.ai-tag-removable::after {
    content: "×";
    margin-left: 8px;
    color: #d00;
    font-weight: bold;
}
.ai-input-block {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.ai-textarea {
    width: 100%;
    height: 110px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    resize: none;
    font-size: 15px;
}
.ai-loading-container {
    text-align: center;
    margin-top: 40px;
}

.ai-spinner {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    border: 6px solid #e0e0e0;
    border-top-color: #00c0d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.ai-loading-container p {
    font-size: 16px;
    margin: 5px 0;
    opacity: 0.8;
}
